Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upLinked hash map map memory implementation comes with extreme cpu use #26372
Comments
This comment has been minimized.
This comment has been minimized.
cadyb
commented
Oct 23, 2018
|
I also noticed a very high cpu 97% usage when running 7a7bec0 All CPU %s where tested in an open field. |
Leland
added
the
Code: Performance
label
Oct 23, 2018
ZhilkinSerg
added
the
(S1 - Need confirmation)
label
Oct 24, 2018
This comment has been minimized.
This comment has been minimized.
|
Can you provide lagging savegame? |
This comment has been minimized.
This comment has been minimized.
|
Are you seeing this on tiles or curses? |
This comment has been minimized.
This comment has been minimized.
|
Thanks for reporting that it's happening when snow effects are displaying, that's a valuable clue. If that's correct, I can probably somewhat resurrect the batching/finalization method and eliminate this slowdown. |
This comment has been minimized.
This comment has been minimized.
|
I'm on curses, and i didn't touch the animation settings. |
This comment has been minimized.
This comment has been minimized.
kevingranade
added this to Need Confirmation
in 0.D Release
via automation
Oct 24, 2018
kevingranade
added this to the 0.D milestone
Oct 24, 2018
This comment has been minimized.
This comment has been minimized.
|
After a peek at a profile the animation code, it's clear that at least a component of the problem is that it's calling game::draw_ter() to clear the map instead of doing targeted erasures like I thought it was. This results in a huge number of useless calls to memorize_symbol() and unordered_map::find(). |
ZhilkinSerg
closed this
in
#26397
Oct 25, 2018
0.D Release
automation
moved this from Need Confirmation
to Closed Issues
Oct 25, 2018
This comment has been minimized.
This comment has been minimized.
|
The provided save file still demonstrates >10s per step outside of the car, but better than it used to be. |
This comment has been minimized.
This comment has been minimized.
|
Hmm... I cannot reproduce this - the game runs just fine. Though I tried on i7 CPU. Did you download pre-compiled binary or compiled by yourself? Also have you tried tiles version? |
This comment has been minimized.
This comment has been minimized.
|
On Thu, Oct 25, 2018 at 01:45:04PM -0700, ZhilkinSerg wrote:
Did you download pre-compiled binary or compiled by yourself? Also have you tried tiles version?
I've built it myself; no i haven't tried it.
…--
() ascii ribbon campaign - against html mail
/\ http://arc.pasp.de/ - against proprietary attachments
|
This comment has been minimized.
This comment has been minimized.
|
What was your compilation command line? Did you use |
This comment has been minimized.
This comment has been minimized.
|
Just |
This comment has been minimized.
This comment has been minimized.
|
Debug builds were always slow. It is currently terribly slow even for debug build and we should do something, but if release builds are okay that is not a priority. Could you try compiling and running with |
This comment has been minimized.
This comment has been minimized.
|
On Fri, Oct 26, 2018 at 03:36:36AM -0700, ZhilkinSerg wrote:
Debug builds were always slow. It is currently terribly slow even for debug build and we should do something, but if release builds are okay that is not a priority.
Could you try compiling and running with `RELEASE=1` to make sure it is playable on your system?
Yeah, with RELEASE=1 it is playable.
…--
() ascii ribbon campaign - against html mail
/\ http://arc.pasp.de/ - against proprietary attachments
|
l29ah commentedOct 23, 2018
Describe the bug
9bfc9b3 is the first bad commit
It even makes running snow slow!
To Reproduce
Steps to reproduce the behavior:
Build the game.
Load an existing game.
Enjoy.