EasyTok improvement?

Blitz3D Forums/Blitz3D Userlibs/EasyTok improvement?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?