Author Topic: Does a time increment that takes 5 minutes to calculate depend on you cpu?  (Read 980 times)

0 Members and 1 Guest are viewing this topic.

Offline leonidas1283

  • Warrant Officer, Class 2
  • ****
  • l
  • Posts: 73
Does a time increment that takes 5 minutes to calculate depend on you cpu?

Offline Profugo Barbatus

  • Chief Petty Officer
  • ***
  • P
  • Posts: 43
  • Thanked: 7 times
I don't think this really has anything to do with C#, but it can be awnsered regardless. The current biggest throttle point by far for Aurora is that everything is saved and loaded directly to the database, every time, without really living in memory. Your CPU has very little to do with the throttle, its all about disk access. Using an SSD or a RAMdisk can help, but its still a large number of operations that have to be performed just to update a fleets position, or a planets position. CPU centric operations like AI decisions, or damage/detection/combat calculations are a far smaller part of the turns right now.

C# heavily cuts into this by keeping content in memory when possible, cutting out all those save/load operations that are constantly being performed. Steve's already posted some preliminary numbers showing significant increases.
The following users thanked this post: leonidas1283

Offline Odin

  • Chief Petty Officer
  • ***
  • O
  • Posts: 33
  • Thanked: 4 times
To add more, the game is written on a dead ancient language called visual basic 6.0 (from 1998) and the database is in access from the same age, you can't expect good performance with those premises.
The new version of aurora is written in c# and the database will be in sqlite, wich is faster than access.

To avoid slow down you should not put NPR at the start of the game and asteroid orbital movements. If you are trying to save your game from slowing you can try to disable planet orbital movements.

Offline sloanjh

  • Global Moderator
  • Admiral of the Fleet
  • *****
  • Posts: 2749
  • Thanked: 81 times
Two things:

1) I just made a "C# Aurora v0.x Questions" thread:

Going forward, could everyone please put questions like this one in that thread?  If we don't, then Steve's posts will age off the front page VERY quickly, which I don't think any of us want.

2) Several (maybe 5-7) years ago Steve made a major performance change so that the DB is only hit at the start and at the end of movement.  IIRC that solved most of the disk I/O bandwidth problems and put the performance bottleneck back on the CPU.  My recollection is that it was too hard to solve the N^2 complexity for sensor detection phase though, which is what's burning up the CPU.  Happy to be correct by someone with experimental evidence that SSD is a lot faster, (or a better memory :) ) though.



Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55