SDL limit FPS in Fullscreen mode #39
Replies: 36 comments 17 replies
-
|
Make sure vertical sync is disabled (set swap interval to 0) and is not forced on by your driver. Apart from that, this will most likely be driver & implementation specific for which I can do nothing about. |
Beta Was this translation helpful? Give feedback.
-
|
By disabling it does work but it should possible to override this variable and set it to false. |
Beta Was this translation helpful? Give feedback.
-
|
I'm assuming your global setting is to have vertical sync enabled? It is not possible to override this value, as a global value is forced by the driver, regardless of the application's settings. You should select "use application setting". |
Beta Was this translation helpful? Give feedback.
-
|
"use application setting" does not exist, and what use other games to fix this issue? |
Beta Was this translation helpful? Give feedback.
-
|
There should be a setting similar to it. I haven't used the nvidia control panel in a long time so I don't remember the exact name. This sounds to me like a driver setting. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, sry it is wrong translaited if i set it to it and it does not work. |
Beta Was this translation helpful? Give feedback.
-
|
I will have to test on a windows machine. However I don't think there is any solution to this problem. |
Beta Was this translation helpful? Give feedback.
-
|
And SDL does not have any method to disable VSync or any other method to disable it... |
Beta Was this translation helpful? Give feedback.
-
|
i found something: https://www.gamedev.net/forums/topic/665862-how-to-disable-vsync-in-sdl-2/ |
Beta Was this translation helpful? Give feedback.
-
|
SDL does itself not handle vertical sync at all. SDL just interfaces with the underlying window system. |
Beta Was this translation helpful? Give feedback.
-
But what is that? https://wiki.libsdl.org/SDL2/SDL_GL_SetSwapInterval |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
well but GL has the same problem |
Beta Was this translation helpful? Give feedback.
-
|
As I've said, I have no control over what SDL does when setting the swap interval. However since all the function does is call the window manager functions, I have even less control as those functions are directly handled by the window manager and display driver. |
Beta Was this translation helpful? Give feedback.
-
|
Did you googled it already if any user has the same issue? |
Beta Was this translation helpful? Give feedback.
-
|
No, as this sounds like a driver related issue, especially since you are getting the same issue with OpenGL (this is however a known "feature" of Direct3D, with the only solution being to set a swapchain parameter, which is beyond the scope of Pie). I would suggest however making sure your swap interval is indeed 0 as if it is >1 then vertical sync will be enabled. |
Beta Was this translation helpful? Give feedback.
-
|
how can i check this? |
Beta Was this translation helpful? Give feedback.
-
|
Check the value that is being passed into If you want to go a step further, you can also check the value that is being passed into |
Beta Was this translation helpful? Give feedback.
-
|
I will check on Windows now to see if there is anything I have missed however I have tried to fix this issue with Direct3D and have been unable to. However I did last check with the old windowing system so there is a chance things may have changed since I implemented SDL, and there is a chance that things that did not work before will now start working. |
Beta Was this translation helpful? Give feedback.
-
|
I've added a couple of swapchain parameters in f00802c that should allow for vertical sync to be disabled in borderless fullscreen windows, if the driver allows it. I've done extensive tests and OpenGL and Direct3D behave the same for both windowed, borderless, and exclusive fullscreen windows. |
Beta Was this translation helpful? Give feedback.
-
|
Nice! but i can just try it if Pie get updated in Easel. |
Beta Was this translation helpful? Give feedback.
-
|
has been done. |
Beta Was this translation helpful? Give feedback.
-
|
nice thx! |
Beta Was this translation helpful? Give feedback.
-
need i to set something or should it work automaticlly? |
Beta Was this translation helpful? Give feedback.
-
|
It will work automatically. |
Beta Was this translation helpful? Give feedback.
-
|
well then it does not work :/ |
Beta Was this translation helpful? Give feedback.
-
|
Have you checked to make sure that the swap interval is actually 0? Try cloning Pie.Tests and running it to see if the issue persists. It prints the current FPS to the console every second. You can experiment with setting the swap interval in |
Beta Was this translation helpful? Give feedback.
-
|
It is 0, yes |
Beta Was this translation helpful? Give feedback.
-
|
Idk why but OpenGl works without any bugs! Window = Fine
ExclusiveFullscreen = Fine
BorderlessFullscreen = FineBut DirectX11 has still this wierd issue Window = Fine
ExclusiveFullscreen = broken
BorderlessFullscreen = broken |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Hello, by setting the game into fullscreen, the fps get limit to 60 FPS.
Info:
With SDL D3D11 and OpenGL get limited!
Beta Was this translation helpful? Give feedback.
All reactions