THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/09/2011 at 10:02, xxxxxxxx wrote:
Cinema 4D Version:
How to get the current fps of the viewport? Or how can I calculate them?
I do not find any method execpt of doc->GetFps(), but this is the fps for animation.
On 13/09/2011 at 12:43, xxxxxxxx wrote:
I'd think the simplest way to do it would be to measure the time between redraws in a scenehook or something like that. I don't know if Cinema has a built in function for this.
On 14/09/2011 at 03:22, xxxxxxxx wrote:
You should get a fps by dividing 1000ms with time difference.
Time being system time that you get with: time()
var lastTime = 0;
var fps = 1000.0 / (time() - lastTime);
lastTime = time(); // <- store time
On 14/09/2011 at 05:50, xxxxxxxx wrote:
Thank you both, got it now by my own.