Skip to content

SDL2 FPS limit #7518

Closed
Closed
@XITRIX

Description

@XITRIX

/Is there any build in FPS limiter in SDL2?

I am running my app on different devices and I have very stable FPS count, so there is definitely some sort of FPS limit, but the problem that this limit is pretty random, on my MacBook it's 120fps, it's screen is also 120 hz so it's great. On my Nintendo Switch it's also 120, it's screen is only 60 hz, but I could limit it by my self, so it's not a problem, but on my iOS device it's 60 fps, while screen is 120 hz, so window looks really laggy on it. Moreover iOS app in MacOS mode works on 240 fps, while running it in iOS simulator shows ... maybe 1 fps ... (Update. Nevermind about simulator, it seems it has broken OpenGL)

I am using SDL_WINDOW_OPENGL flag to create a Window if it's matters.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions