• it/its

// the deer!
// plural deer therian θΔ, trans demigirl
// stray pet with a keyboard
// i'm 20 & account is 18+!
name-color: #ebe41e
// yeah



eniko
@eniko

always have a static Time class (or singleton) that contains:

  1. total game time
  2. elapsed game time this frame
  3. total real time
  4. elapsed real time this frame

the split between game and real is especially important if you ever introduce time speed effects

introducing the game/real split as early as possible in your project will force you to pick the correct one even if it never matters, whereas having to go back and decide everywhere in your codebase later on is a nightmare


You must log in to comment.

in reply to @eniko's post:

Remind me eve online solution to big fight, time dilatation. Basically, if too many player gathered in one place, server could have issue keeping up so everything would be slowed down, up to 50% I think? Which would give the server twice the time to compute every player action.