Rewrote most logic behind /vp_recache (reconstruct server cache by scanning world files) - #92
Conversation
Move NotEnoughIDs into separate method
Move EndlessIDs into separate method
Also add a few checks
…ding on VeinSource
Bunch of other quick wins
… speed comparable to fast one.
tiffit
left a comment
There was a problem hiding this comment.
small things. What are the steps to test this code?
I got my head so much in VP lately that I forgot to explain this, sorry. The way I get a full display is you can actually copy paste the server cache into the client cache, it will work. Process I went for in testing:
In all this you can also write time it took, it log that at the end. In term of final result, from blank cache it should at least be as good as original output, usually a bit better (you can see in my comparisons pics it's still perfect in TF, my map do have a lot of holes but not that many). |
This ended up being a lot more changes than the few little tweaks I originally wanted to go for.
Looking at my commits in order:
From what I've seen it's never slower than before, It's even usually a bit faster.
Comparison
4th column is to accurately compare what scan find without preserving any entries.
You'll see it's overall a bit better or identical but never worse.