Hi Jarrod,
just how often does the TPGGraphicalTestCase.UpdateFrame actually get called??
I have had trouble with "The Probe" in getting animation timings correct as it seems to be called much more than once per frame
At first I thought it was just me getting timings incorrect, but now it really shows since I've just added a time count of how long a level has lasted (hours:minutes:seconds).
I have this code that gets called each UpdateFrame call, but in order to make the seconds acually be close to seconds and not super quick, I need to compare the FTimeCount accumulation against 30 instead of the expected 1 (for a single second)!!!
This is rather annoying!!
[pascal] FTimeCount := FTimeCount + aElapsedTime;
if FTimeCount >= 30 then begin //<-- here I would have expected 1 instead of 30!!
FTimeCount := 0;
Inc(FTime.Seconds);
if FTime.Seconds >= 60 then begin
FTime.Seconds := 0;
Inc(FTime.Minutes);
if FTime.Minutes >= 60 then begin
FTime.Minutes := 0;
Inc(FTime.Hours);
end;
end;
end;[/pascal]
Any ideas?
Oh, I am definitely using the latest Pyrogine code + dlls too...
cheers,
Paul
Bookmarks