Here PBsnake in 2 variants:
TimeBased and with SetFrameRate(15) implemented.
What is your opinion?
PBsnakeTBM.exe = PBsnake TimeBasedMovement
PBsnakeFPS.exe = PBsnake FramesPerSecond
Download:
PBsnakeTBMvsFPS.zip
TimeBasedMovement vs FramesPerSecond (PBsnake as example)
TimeBasedMovement vs FramesPerSecond (PBsnake as example)
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
- Hroudtwolf
- Addict

- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
Right! I will make a better example at home.Hroudtwolf wrote:Hi,
I think the time based movement could be better if you would use a hires timer.
'Cause EllapsedMilliseconds is updating in 15/16 milliseconds-steps.
With this (new) example you will see why a TBM implementation gives you a smooth look an a game like PBsnake.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Sadly hehe... I stumbled across this oddity also ( under linux its 1ms ). Under win2k also delay(1) is more like 10 ms.'Cause EllapsedMilliseconds is updating in 15/16 milliseconds-steps.
Thalius
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
"
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
Thats bad! We need a solution which is working for all supported OS.Thalius wrote:Sadly hehe... I stumbled across this oddity also ( under linux its 1ms ). Under win2k also delay(1) is more like 10 ms.'Cause EllapsedMilliseconds is updating in 15/16 milliseconds-steps.
Thalius
I want port PBsnake to all supported OS versions at a later time.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
