Hi all!
I was wondering if there was a way for a userland homebrew to have a fps limiter or controller with millisecond precision or more. I have found svcSleepThread(nanoseconds), but I think this needs arm9 and I still need a way to tic/toc (check the amount of time a code block has taken) at least in milliseconds. time.h has time(null) which gives you unixtime but unfortunately this is down to second precision. The main goal is to have the system idling (sleeping) if the system can run accross a homebrew's logic and rendering cycle in less time than necessary or be able to actively do things it the system can't keep up with a desired framerate (ie 30).
Any clues for me?
I was wondering if there was a way for a userland homebrew to have a fps limiter or controller with millisecond precision or more. I have found svcSleepThread(nanoseconds), but I think this needs arm9 and I still need a way to tic/toc (check the amount of time a code block has taken) at least in milliseconds. time.h has time(null) which gives you unixtime but unfortunately this is down to second precision. The main goal is to have the system idling (sleeping) if the system can run accross a homebrew's logic and rendering cycle in less time than necessary or be able to actively do things it the system can't keep up with a desired framerate (ie 30).
Any clues for me?
Last edited by Urbanshadow,