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

Updated groundwar planet surface rendering #1170

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

hemoridos
Copy link
Contributor

A "quick" and mostly dirty commit addressing #1163

  • Surface and radar minimap are drawn into a buffered image that is then drawn to the screen. The images are redrawn only in case of an event that changes the visual appearance of the planet surface.
  • Radar minimap is transformed to a proper rectangle, leveled it horizontal and added an orange rectangle as a frame to resemble the og ig minimap.

After this on my laptop I saw the frame times being halved.
For the time being the battle and non-battle rendering codes are separated. I intend to have this on the non-battle colony screen as well to at least make the code not this ugly. For that I need to implement some system to notify the render that a colony state change happened that warrants a visual update. ie. night time happening, or construction scaffolding updates and such.

 - Surface and radar minimap are drawn into a buffered image that is then drawn to the screen. The images are redrawn only in case of an event that changes the visual appearance of the planet surface.
  - Radar minimap is transformed to a rectangle and added an orange rectangle as a frame to resemble the og ig minimap.
@akarnokd akarnokd merged commit 2e2d455 into akarnokd:master Sep 4, 2024
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.

2 participants