EasyTok improvement?

Blitz3D Forums/Blitz3D Userlibs/EasyTok improvement?

Boiled Sweets(Posted 2006) [#1]
Hi Filax,

still playing around with EasyTok and discovered this, I wasn't getting hugely accurate positioning of TOK entities so I changes this...

For FrameLimit = 1 To FrameTicks
   If FrameLimit = FrameTicks Then
      CaptureWorld
   EndIf
   FrameTime = FrameTime + FramePeriod
   update_game()
   UpdateWorld
Next

TOK_RefreshEasyTOK()	
RenderWorld FrameTween


to this...

For FrameLimit = 1 To FrameTicks
   If FrameLimit = FrameTicks Then
      CaptureWorld
   EndIf
   FrameTime = FrameTime + FramePeriod
   update_game()
   UpdateWorld
   TOK_RefreshEasyTOK()
Next

RenderWorld FrameTween


Note the placement of the TOK_RefreshEasyTok()

It seems to be more accurate now. Do you have any thoughts on this?


Boiled Sweets(Posted 2006) [#2]
*bump*

Filax?


H&K(Posted 2006) [#3]
That works if you dont mind Tokamak running more than once a frame. A better thing to do would be to increase the AppFps from the start


Filax(Posted 2006) [#4]
Hi :)

With this stuff i'm not sure ? because why refresh physic
one more time by frame ?