So I am using SDL2.0 for making a Game Engine. Where I am having a problem is using SDL_Delay().
SDL_Delay's minimum delay time is 15ms, I've tried everything, and my FPS is Stuck at 64 because of this. I have seen another post about this but it does not seem to answer the question with SDL_Delay.
I can turn on VSYNC, and I Get a fixed 60FPS, Please explain what the SDL Library is doing that I cannot implement Myself?
This is very weird, I dont think I need to post my code for this, the code is not wrong, Its the SDL_Delay(), wether it be SDL_Delay(1) or SDL_Delay(15) , it will always delay for 15ms, does anyone know a way of fixing this so I can still use SDL_Delay.
I have seen on SDL Documentation they say this is expected, because of OS Scheduling.
Then I read OS Scheduling does this to save power consumption... I have High Performance turned on my computer, not Power Saver.
Does anyone know a workaround for this? I am very hardheaded and do not want to use VSYNC.
Or I might just have to. LOL Thanks in advance!!