Xors3D Loop Question..

BlitzMax Forums/BlitzMax Programming/Xors3D Loop Question..

Hardcoal(Posted April) [#1]
Hi.. I know most of you probably dont use Xors 3D
but still maybe you can solve me this very important problem..

This my Xors3D Basic loop..

but when I run it and if I got some physical bodies on a move.
The physical bodies sometimes start to like drop frames..
and the smoothness is gone for a sec


Strict

Import xorsteam.xors3d

xGraphics3D 800, 600, 32, False, True

repeat

   Xcls

   Xrenderworld
   xupdateworld

  'Here is some Code

  Delay (2)
  Xflip

Forever



thats basically the loop.. Any Ideas?


Yue(Posted April) [#2]
xUpdateWorld(3.0)
xRenderWorld



I did not get it understood, but a problem I had with the tires of the car, solve it the previous way.


Hardcoal(Posted April) [#3]
the problem is that every few second the physical parts are starting to move in low frames.. like something suffocating the engine..

you mean i need to type update world twice?


also what is the difference from updateworld and renderworld..
and whats the right order to put them?

is my above order ok?


Yue(Posted April) [#4]
No, sorry, first UpdateWord, last renderwordl.


KronosUK(Posted April) [#5]
Check the documentation, its all in the .chm file.