2025-07-20 04:53 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003612Spring engineGeneralpublic2013-04-04 03:33
Reportersilentwings 
Assigned Tozerver 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1 
Target VersionFixed in Version 
Summary0003612: self destructing units use huge amount of cpu in 94.0
Descriptionsee demo & screenshots. asking 200 corvamps to self d at the same time causes close to 100% cpu usage of simframe and unit::slowupdate while they count down to the explosion.

asking about >50 units to self d at once causes lag for me (with i7, good gfx card), with both st and mt. demo is with tabula v4 and ba 7.72.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
duplicate of 0003664closedKloot Ctrl-a ctrl-d massive fps drop 
+Relationships

-Notes

~0010170

silentwings (reporter)

tested same thing again with lua off, added another screenshot to show its not a widget/gadget error.

~0010171

Kloot (developer)

doesn't reproduce for me (not with 200 vamps, not with 2000)

~0010174

silentwings (reporter)

Yes, I asked a few others and it seems it only me...

~0010177

abma (administrator)

infolog.txt maybe helps?

it could be maybe a problem with gfx drivers...

~0010180

msafwan (reporter)

Last edited: 2013-03-24 15:38

View 2 revisions

I tried same Corvamp self+d test using 2000 Corvamp. The debug info showed >10000 path-queue update request the moment those corvamps explode.

~0010183

abma (administrator)

@msafwan: "100% cpu usage of simframe and unit::slowupdate while they count down to the explosion."

~0010184

zerver (reporter)

I'm getting 20% CPU during countdown, which I agree is a bit high for just 200 units.

~0010187

zerver (reporter)

This:
(changelog)
default LogFlush to true again

~0010188

abma (administrator)

Last edited: 2013-03-24 23:39

View 4 revisions

this questions are for windows only:
is a virus-scanner involved? has your harddrive the write cache disabled? (afaik it defaults to yes) maybe this as reference: http://www.sevenforums.com/tutorials/10392-write-caching-enable-disable.html

@silentwings:

can you try if setting LogFlush=0 has any effect?

~0010190

silentwings (reporter)

Last edited: 2013-03-25 02:15

View 4 revisions

Yes, setting LogFlush=0 fixes the problem!

(There is something a little odd - if I run spring.exe and use that to change LogFlush, it seemingly only takes effect after Spring.exe has been exited and restarted. I guess this is because the setting LogFlush is loaded before the point at which it can be changed.)

I don't use a virus scanner, other than what windows has built in and my harddrives both have write caching enabled. I tried watching the "queue length" (as its called in Window's Resource Monitor, I think this is the cache) for my hard drive while self d'ing 200 vamps and with LogFlush=1; the queue length is maxed out for all the time they are self destructing. If I do the same thing with LogFlush=0 then the queue length barely rises above 5%.

~0010196

abma (administrator)

Last edited: 2013-03-25 06:36

View 2 revisions

@zerver
https://github.com/spring/spring/blob/develop/rts/System/Log/FileSink.cpp#L202


removing the commit flag should make it behave as it should...

+Notes

-Issue History
Date Modified Username Field Change
2013-03-23 22:09 silentwings New Issue
2013-03-23 22:09 silentwings File Added: 20130323_210549_Tabula-v4_94.sdf
2013-03-23 22:10 silentwings File Added: screen00011.png
2013-03-23 22:11 silentwings File Added: screen00012.png
2013-03-23 22:14 silentwings Note Added: 0010170
2013-03-23 22:14 silentwings File Added: screen00013.png
2013-03-23 23:10 Kloot Note Added: 0010171
2013-03-24 00:10 silentwings Note Added: 0010174
2013-03-24 05:23 abma Note Added: 0010177
2013-03-24 15:37 msafwan Note Added: 0010180
2013-03-24 15:38 msafwan Note Edited: 0010180 View Revisions
2013-03-24 17:34 abma Note Added: 0010183
2013-03-24 18:44 zerver Note Added: 0010184
2013-03-24 18:57 zerver Assigned To => zerver
2013-03-24 18:57 zerver Status new => assigned
2013-03-24 23:20 zerver Note Added: 0010187
2013-03-24 23:31 abma Note Added: 0010188
2013-03-24 23:33 abma Note Edited: 0010188 View Revisions
2013-03-24 23:38 abma Note Edited: 0010188 View Revisions
2013-03-24 23:39 abma Note Edited: 0010188 View Revisions
2013-03-25 01:57 silentwings Note Added: 0010190
2013-03-25 02:00 silentwings Note Edited: 0010190 View Revisions
2013-03-25 02:07 silentwings Note Edited: 0010190 View Revisions
2013-03-25 02:15 silentwings Note Edited: 0010190 View Revisions
2013-03-25 06:35 abma Note Added: 0010196
2013-03-25 06:36 abma Note Edited: 0010196 View Revisions
2013-03-25 18:46 zerver Changeset attached => spring develop d6f4900b
2013-03-25 18:46 zerver Status assigned => resolved
2013-03-25 18:46 zerver Resolution open => fixed
2013-03-31 12:23 Kloot Relationship added duplicate of 0003664
2013-04-04 03:15 zerver Changeset attached => spring MTsim2 86f15a23
2013-04-04 03:33 zerver Changeset attached => spring MTsim3 e30546ce
+Issue History