11-12-2024, 05:10 PM
(11-12-2024, 04:54 PM)Tepe Wrote: I wonder if you don't have significant performance drops. I'd have to test it myself. I struggled with it a lot to get reasonably good results and I managed to do it, although I still have some drops from time to time.
THAT... is why I crafted the customized moving? method, one that checks to see if any NPC just 'starts' moving from one tile to another.
Were I to have the method that reveals the fog execute based on the default 'moving?' method, the 'fog-revealing' method would execute over-and-over from the start of the NPC's move into a tile space to when it finishes walking into the tile and stop.... That's a lot given it need to only reveal that area once, and not over and over for the same area. With four NPCs, it reduced FPS from 39 to 36 on my PC.
So, the use of the custom moving test that allows the fog erasal to be performed only at the start of their movement into a new tile.... that lag appeared to have vanished.