[Plib-devel] ssg animation
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-07-17 17:41:07
|
Proposed changes: ssgSelector would allow more than 32 frames by adding a max_kids param to the constructor ssgSelector ( int max_kids = 32 ) ; the derived classed ssgRangeSelector and ssgTimedSelector would also take this param. also, i would like to move this _ssgFrameCounter++ ; from the top of ssgCullAndDraw() to the bottom of ssgCullAndDraw() because i want the animation rate to be based on logic frames and not render frames. I'll just call ssgSetFrameCounter(fc) before calling ssgCullAndDraw(). My logic frames are scheduled with a timer so that I always have 60 logic frames per second regardless of my render frame rate. My animation plays correctly on slow machines and fast ones. I prefer this over non-determistic simulations where the number of logic frames varies and uses floating point time intervals. Please tell me your thoughts --Dave |