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

Fix overmap UI blinking on curses build #40375

Merged
merged 1 commit into from
May 9, 2020

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented May 9, 2020

Summary

SUMMARY: None

Purpose of change

Fixes #40248.

Describe the solution

Do not call catacurses::erase() and catacurses::refresh() before redrawing overmap.

Testing

Compiled with MSYS2 ncurses and it does not blink now when taking input, which means it should also fix the blinking mentioned in #40248, though I'm not sure if it also fixes "spending my precious battery and heating my pants", because afaik overmap UI has always been completely redrawn when input times out even before migrating it to ui_adaptor.

@l29ah
Copy link
Contributor

l29ah commented May 9, 2020

You're right that cataclysm itself consumes 3% CPU both before and after that change, but when it's blinking, there's additionally 12% consumption from X (at least when running it in urxvt).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

map is blinking, completely redrawing ~twice a second
3 participants