EasyTok improvement?

Blitz3D Forums/Blitz3D Userlibs/EasyTok improvement?

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?

*bump*

Filax?

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

Hi :)

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