Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Roukiske

Member Since 16 Dec 2012
Offline Last Active Jul 19 2013 08:33 PM

Topics I've Started

Real time vs Set time calculation of music game note timing

16 December 2012 - 04:54 PM

Hello everyone, first post of what I hope to become many posts here at GameDev

I am creating a small music game and I've come across 2 ways I could implement timing in it. I could either have the game setup the time each note must be hit before the song starts (Set time) or have the game calculate the timing offset using the current note position and the target note position (Real time). I am asking this because I will be taking into account song charts that include different BPM throughout the song such as slow downs, speed ups, and stops. This adds more complexity to the calculations. I would just like an opinion on how someone would choose which way to implement the game. I have already made an algorithm to find out these numbers in both situations.

Some pros and cons I thought about each implementation:

Real time
+ Decrease the time it takes to setup a song
+ More accurate time
- Incease the time it takes the program to find the timing offset during gameplay

Set time
+ Decrease the time it takes the program to find the timing offset during gameplay
- Increase the time it takes to setup a song (Negligable?)
- Extra parameters such as note.hitTime in the note class
- Prone to bugs in timing since the time is a setTime that may or may not be correct

Thank you for your time everyone

- JackStylez

Real time vs Set time calculation of music game note timing

16 December 2012 - 04:29 PM

Hello everyone, first post of what I hope to become many posts here at GameDev

I am creating a small music game and I've come across 2 ways I could implement timing in it. I could either have the game setup the time each note must be hit before the song starts (Set time) or have the game calculate the timing offset using the current note position and the target note position (Real time). I am asking this because I will be taking into account song charts that include different BPM throughout the song such as slow downs, speed ups, and stops. This adds more complexity to the calculations. I would just like an opinion on how someone would choose which way to implement the game. I have already made an algorithm to find out these numbers in both situations.

Some pros and cons I thought about each implementation:

Real time
+ Decrease the time it takes to setup a song
+ More accurate time
- Incease the time it takes the program to find the timing offset during gameplay

Set time
+ Decrease the time it takes the program to find the timing offset during gameplay
- Increase the time it takes to setup a song (Negligable?)
- Extra parameters such as note.hitTime in the note class
- Prone to bugs in timing since the time is a setTime that may or may not be correct

Thank you for your time everyone

- JackStylez

PARTNERS