Hi. Jesus again.
This time I have a question regarding application timing and rendering frequency.
By using the framework, my main Display output class (which extends from scene) gets updated when the method gets called.
I have found out that if I use the provided TimerSystem utility class and update a timer each time this method is called, the number of frames per second reported by the timer will be more than 500 in my current system if I disable VSync on my graphics card's settings.
If I turn it on, the timer will instead report a number close to 60.0, as expected.
The question is, how can I impose an internal frame rate cap inside the application, regardless of the video card's VSync setting? I'm only interested in rendering at standard multimedia framerates (15.00, 29.97, 30, 60, etc.)
I've been thinking about using nanosleep calls or some other timer utility class but I'm still trying to understand what to do.
Thanks again for your time and help!
JZM