Alterran / CS-PropLineTool

Cities: Skylines Mod:
http://steamcommunity.com/sharedfiles/filedetails/?id=694512541
MIT License
5 stars 3 forks source link

Small performance improvement #2

Closed originalfoo closed 5 years ago

originalfoo commented 5 years ago

Some very minor tweaks to reduce amount of code being run per frame when the tool is not active.

Make sure you do thorough testing before merging.

Updates #1

If this initial tweak works, I'd suggest publishing to workshop to reduce end user pain, then afterwards consider more performance tuning.

Ideally use tool events and possibly use a state engine to keep track of state, that way you wouldn't need to do so much per frame.

originalfoo commented 5 years ago

urg, github repo not updated in 3 years

That means I've worked on ancient code. Please push your latest code to github. I'll take another look.

originalfoo commented 5 years ago

Closing as the code this was based on is stale