Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve listview performance #36787

Merged
merged 1 commit into from Jan 8, 2020
Merged

Improve listview performance #36787

merged 1 commit into from Jan 8, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 7, 2020

Summary

SUMMARY: Performance "remove superfluous refresh calls from list views"

Purpose of change

Item/monster (shift-v) views are slow to traverse - there seem to be too many refresh calls done.

Describe the solution

remove superfluous refresh calls from list item/monster views
set item list width to match default/minimal monster list width (44->45)

Testing

Tested on curses and tiles.

Nb. It seems msys2 dosn't like static linking tiles build, adding DYNAMIC_LINKING=1 solved all issues.

remove superfluous refresh calls from list item/monster views
set item list width to match default/minimal monster list width
@ifreund ifreund added [C++] Changes (can be) made in C++. Previously named `Code` Code: Performance Performance boosting code (CPU, memory, etc.) Info / User Interface Game - player communication, menus, etc. labels Jan 7, 2020
@ZhilkinSerg
Copy link
Contributor

Nb. It seems msys2 dosn't like static linking tiles build, adding DYNAMIC_LINKING=1 solved all issues.

Yeah, it is noted in compiling doc - https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/COMPILING/COMPILING-MSYS.md#cloning-and-compilation

@kevingranade kevingranade merged commit 44b584e into CleverRaven:master Jan 8, 2020
fengjixuchui added a commit to fengjixuchui/Cataclysm-DDA that referenced this pull request Jan 8, 2020
@8street
Copy link
Contributor

8street commented Jan 8, 2020

Perhaps this will also help with performance #36722

va5h added a commit to va5h/Cataclysm-DDA that referenced this pull request Jan 27, 2020
An attempt to fix a recent minimap bug
(when it only updates once per turn and NOT per player's move)
va5h added a commit to va5h/Cataclysm-DDA that referenced this pull request Jan 28, 2020
This reverts commit b66c391.

Definitely needs more reverts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Performance Performance boosting code (CPU, memory, etc.) Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants