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 performance of Location Display (PLD) #252

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

DevBlocky
Copy link
Contributor

Improves CPU timings when turning on the PLD in Misc Settings.

I moved many of the CPU-intensive tasks (like World.GetStreetName(currentPos) and World.GetZoneLocalizedName(currentPos)) to the 200ms loop instead of being called every tick. This drastically improves the performance while having the PLD on, I noticed timings going from 0.9ms to 0.6ms (on foot and menu closed).

The warning that it takes up a large part of your CPU is still on the menu button, but it can be removed if you think that the issue is fixed!

vMenu/FunctionsController.cs Show resolved Hide resolved
vMenu/FunctionsController.cs Show resolved Hide resolved
@TomGrobbe TomGrobbe changed the base branch from master to development March 4, 2023 17:14
move many CPU-intensive tasks to delayed loop
@TomGrobbe TomGrobbe merged commit f9e5390 into TomGrobbe:development Mar 4, 2023
Drift91 pushed a commit to Drift91/vMenu that referenced this pull request Aug 3, 2023
Improve performance of Location Display (PLD)
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.

None yet

3 participants