Mouse cursor image unbounded from the game framerate
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Is your feature request related to a problem? Please describe.
Custom mouse pointer images bounded to game framerate e.g. 60 FPS.
It seems some laggy. Mouse cursor must be such fast as possible.
I want to see mouse cursor unbounded from the game framerate.
Describe the solution you'd like
See code below. It will be easy to implement in Stride.Graphics.SDL.Cursor
Workaround:
- Download SDL2-CS sources
- Compile
- Make library reference to own project
- Use these code to achieve mouse cursor unbounded from the framerate
var surface = SDL.SDL_CreateRGBSurfaceWithFormatFrom(...);
var cursor = SDL.SDL_CreateColorCursor(surface, offsetX, offsetY);
SDL.SDL_SetCursor(cursor);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Stride.Graphics.SDL.Cursor, the file named in the issue, and compare its cursor handling with the SDL2-CS calls shown in the workaround. The work is done when custom mouse pointer images update independently of the game framerate and the cursor offset and image remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100