I am calculating the time of the RenderWorld.
time1 = Millisecs()
RenderWorld
time2 = Millisecs() - time1
Then i am making tests loading lot of models with different textures to see the speed results.
But some times, when loading lot of models, the render time keeps a value of 2-3 ms (same as when all goes good) but the rotation and movement of the camera is really slow. What more should I take into account when measuring the time of calculations? What is taking so much time?.
My While is:
EDITED: This happens when i am really close the objects with the camera. Beeing far the trisrendered and the ms of renderworld calculation is the same, but speed is good! i can't understand...
time1 = Millisecs()
RenderWorld
time2 = Millisecs() - time1
Then i am making tests loading lot of models with different textures to see the speed results.
But some times, when loading lot of models, the render time keeps a value of 2-3 ms (same as when all goes good) but the rotation and movement of the camera is really slow. What more should I take into account when measuring the time of calculations? What is taking so much time?.
My While is:
While (Not KeyHit(1)) If (KeyDown(200)) MoveEntity camera,0,0,1 If (KeyDown(208)) MoveEntity camera,0,0,-1 If (KeyDown(203)) MoveEntity camera,-1,0,0 If (KeyDown(205)) MoveEntity camera,2,0,0 time1 = MilliSecs() RenderWorld time2 = MilliSecs() - time1 Text 0,0,"TR = " + TrisRendered() Text 0,20,"MS = " + time2 Flip Wend
EDITED: This happens when i am really close the objects with the camera. Beeing far the trisrendered and the ms of renderworld calculation is the same, but speed is good! i can't understand...