Re: [MOD 0.12.16] Displaying range of turrets [v1.1.2]
Posted: Fri Feb 26, 2016 8:02 am
Generating sprites to display turret range from 1 to - lets say - 256 is not a problem. The problem is with displaying it. Factorio doesn't display sprites that don't fit on the screen, so sprites for long range turrets would never be displayed. You can see it even in the vanilla game when it comes to displaying working range of roboports and substations - and there are (modded) turrets that have range way longer than roboports.
I think I will try to improve performance in different way, by splitting number of entities representing range of a turret into groups and spawning only one group per tick (currently all entities are spawned at once). This should help a lot. The problem is that I can't really test it, because I have never had any performance issues with this mod... not even a slightest slowdown while using turret range probe tool for me So I will have to rely on your feedback for that. I think it would be best to make the entire spawning process configurable, i.e. how many entities can be spawned in one tick and how big should be interval (should entities be spawned in every tick, every two ticks etc.). This way everybody could adjust it to match their needs.
I think I will try to improve performance in different way, by splitting number of entities representing range of a turret into groups and spawning only one group per tick (currently all entities are spawned at once). This should help a lot. The problem is that I can't really test it, because I have never had any performance issues with this mod... not even a slightest slowdown while using turret range probe tool for me So I will have to rely on your feedback for that. I think it would be best to make the entire spawning process configurable, i.e. how many entities can be spawned in one tick and how big should be interval (should entities be spawned in every tick, every two ticks etc.). This way everybody could adjust it to match their needs.