Author Topic: Update optimization  (Read 984 times)

0 Members and 1 Guest are viewing this topic.

Offline Narhalles (OP)

  • Leading Rate
  • *
  • N
  • Posts: 12
  • Thanked: 2 times
Update optimization
« on: April 25, 2020, 03:57:43 PM »
As an outsider looking at the end game, I have no idea of how the game simulates on a per tick basis.   However, it appears that everything in the game is updated every tick.   (be that 5sec or 30 days) sub ticks look to run more frequently and serve to drop the sim speed if an event needs to be handled, at which point everything gets processed.   However, if this is the case then it would probably be worth only siming the affected system, or even the local area of the affected event (combat, sensor contact, etc) and if that impacts the player then it could drop the overall sim time and do standard interrupts, but in other cases only simming a limited set of data on a lower tick level than selected and putting that in the background could drastically increase performance. 

Another idea would involve seperating out simming of ships/missles from economy from stellar movement.  Thus, events that dont need to be performed every tick update (such as movement of planets on less than a 1 day scale) dont get updated when on lower tick increments.
« Last Edit: April 25, 2020, 04:00:19 PM by Narhalles »
 

Offline skoormit

  • Rear Admiral
  • **********
  • Posts: 816
  • Thanked: 328 times
Re: Update optimization
« Reply #1 on: April 25, 2020, 04:04:45 PM »
Not everything is updated every tick. 
A lot (most) of the economic stuff happens once every construction cycle (5 days by default, but changeable). 
 

Offline Father Tim

  • Vice Admiral
  • **********
  • Posts: 2162
  • Thanked: 531 times
Re: Update optimization
« Reply #2 on: April 25, 2020, 09:39:40 PM »
Also the sub-pulses pretty much only do movement & sensor checks and not even all of those.