Heyas... just tested my game with the newest build, and I noticed immediately that my HD is writing a LOT of data all the time. It causes weird pauses in the game, among other issues. However, when I looked at the final data file, it's only 1.4MB in size...
I assume that this is because of the savegame feature. Is it really supposed to be slowing the game to a crawl a lot?
Furthermore, I noticed that every time I selected a builder menu, or switched menus within a builder, the HD made lots of "I'm writing data" noises, and also slowed up the game a bit. The same happened every time I selected a new Unit, which is weird, since everything's supposed to be pre-loaded, so Spring shouldn't be going back to the HD for data during the game, right?
So, is it the new code for getting and writing the AI states that's causing this? Or something else that was broken, is now working, but is having unexpected side-effects? Sorry to whine about all of this, but meh... you should've seen it- occasionally the game would just halt for a second or two, then resume as if nothing had happened, over and over again.
Replays and HD Chug
Moderator: Moderators
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
I cant confirm thisHeyas... just tested my game with the newest build, and I noticed immediately that my HD is writing a LOT of data all the time.
The savegame feature wont touch your hd until you gave command to saveI assume that this is because of the savegame feature. Is it really supposed to be slowing the game to a crawl a lot?
I noticed this too, but this bug seems to have disapeared mysteriously last week. Sure you use rev3883?Furthermore, I noticed that every time I selected a builder menu, or switched menus within a builder, the HD made lots of "I'm writing data" noises, and also slowed up the game a bit. The same happened every time I selected a new Unit, which is weird, since everything's supposed to be pre-loaded, so Spring shouldn't be going back to the HD for data during the game, right?
Code: Select all
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/CentralBuildAI.so", O_RDONLY) = 25
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/EconomyAI.so", O_RDONLY) = 25
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/MetalMakerAI.so", O_RDONLY) = 25
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/MexUpgraderAI.so", O_RDONLY) = 25
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/RadarAI.so", O_RDONLY) = 25
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/ReportIdleAI.so", O_RDONLY) = 25
open("/home/tobi/wd/taspring/trunk/game/AI/Helper-libs/SimpleFormationAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/CentralBuildAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/EconomyAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/MetalMakerAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/MexUpgraderAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/RadarAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/ReportIdleAI.so", O_RDONLY) = 25
open("/opt/spring/lib/spring/AI/Helper-libs/SimpleFormationAI.so", O_RDONLY) = 25
Not everything is supposed to be preloaded btw, Spring still lazy loads units and models and stuff: if your unit is only used very late game then it's model, COB, and, if S3O, texture, is only loaded very late game.
1. I'm using build 3881. I'll test with 3883 when it's available as a complete build. The builds have proven to be a godsend, because I don't have to rebuild and check dependencies and basically rebuild Spring every time I want to test things, so I'm simply using them, and thus am two builds behind current.This happens each time selection changes, this would probably explain it. Though it is not writing anything all the time, just reading. (O_RDONLY)
2. Whatever's going on, it seems to be reading a lot more data than is necessary. I know this isn't a scientific measurement, or whatnot, but I can hear my HD access quite clearly, and the access lasts for a good quarter-second to a half-second- that's enough time for enormous amounts of data to be pulled up.
At any rate, I'll test again when 3883 is available, and report back.
As for the lazy-load thing... yeah, I know that it doesn't load the model / skin up, sorry for posting unclearly.