Renderworld tween#?

Blitz3D Forums/Blitz3D Programming/Renderworld tween#?

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.

The purpose of the tween in RenderWorld(tween#) is for games that use a constant game clock and want to fill the inbetween frames with interpolated renders. If say the user has a super computer capable of rendering / refreshing your game at 100 hz and you have designed it to use a game clock that is running at 20 hz a tweened program will look like this:

captureworld
updategame
renderworld .2
flip
renderworld .4
flip
renderworld .6
flip
renderworld .8
flip
renderworld 1
flip
captureworld
updategame
renderworld .2
flip
renderworld .4
flip
renderworld .6
flip
renderworld .8
flip
renderworld 1

which allows all movement and rotation of your game including the camera to look silky smooth on one computer while another may only render half as many frames per gameupdate.

an alternative game design is to run your game clock at a high frequency - say 300 hz, then you get multiple updates per frame for perfectly smooth update,

network games and ones with intense physics requirements can benefit from a low frequency game clock hence the tweening option available in blitz3d