View Single Post
Old July 15th, 2008   #96 (permalink)
Spessi
Registered User
 
Join Date: Jul 2008
Location: Germany
Posts: 14
Hello,
I've customized the throttle function, so that I can define the ThrottleFrequency in the dolphin.ini and adjust my framerate (The default value of ThrottleFrequency is fixed in SystemTimers.cpp to (int)60).

But it doesn't matter if i use ThrottleFrequency=20 or ThrottleFrequency=60., the fps are always exactly the same, 50fps. The values were definitely correctly read out of the dolphin.ini, because ThrottleFrequency=0 crashs (division by zero)


When will a better framelimiter be included? I think my programming-skills aren't good enough to do this by myself. (Except anybody of you can help me)..


Greets

Edit:
a few questions:

Code:
for (int i=0; i<HISTORYLENGTH-1; i++)
  timeHistory[i] = timeHistory[i+1];

int t = (int)timer.GetTimeDifference();
[..]
while (t - timeHistory[0] < delta)
[...]
timeHistory[HISTORYLENGTH-1] = t;
timeHistory[0] is always 1;
timeHistory[HISTORYLENGTH-1] (the last field) is always the value of the TimeDifference. But this field will never be used again. Why?
I believe that the whole array is not needed, or??
Many questions, I hope you understand me

Last edited by Spessi; July 15th, 2008 at 19:10..
Spessi is offline   Reply With Quote