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 place terrain special performance #78663

Merged

Conversation

Procyonae
Copy link
Contributor

@Procyonae Procyonae commented Dec 19, 2024

Summary

None

Purpose of change

Fixes #77341

Describe the solution

Stores whether omt was generated rather than checking every frame
Swaps the check for a cheaper approximate one seeing as we're not worried about some inaccuracies
Adds vertical and mouse movement + fixes coordinate type for overmap mouse movement
Move other calls to lookup_submap over to submap_exists where appropriate

Describe alternatives you've considered

I want to fix the off by one thing with mouse movement but that seems more awkward than I were hoping

Testing

Drastically less laggy with ascii and tiles

Additional context

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. Map / Mapgen Overmap, Mapgen, Map extras, Map display [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Dec 19, 2024
@Procyonae Procyonae force-pushed the FixPlaceTerrainSpecialPerformance branch from 9cf953a to cdeb995 Compare December 20, 2024 10:13
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Dec 20, 2024
@github-actions github-actions bot added the NPC / Factions NPCs, AI, Speech, Factions, Ownership label Dec 20, 2024
@Procyonae Procyonae marked this pull request as ready for review December 20, 2024 13:32
@github-actions github-actions bot removed the BasicBuildPassed This PR builds correctly, label assigned by github actions label Dec 20, 2024
@Procyonae Procyonae force-pushed the FixPlaceTerrainSpecialPerformance branch from 7650f5c to 240b881 Compare December 20, 2024 22:07
@github-actions github-actions bot added <Bugfix> This is a fix for a bug (or closes open issue) BasicBuildPassed This PR builds correctly, label assigned by github actions labels Dec 20, 2024
@Maleclypse Maleclypse merged commit 8fd2039 into CleverRaven:master Dec 24, 2024
21 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Placing an OMT through overmap editor lags the game
2 participants