Maintenance update with several optimizations to improve performance.
v4.0158b
3/25 - used Thinker.STAT_HDLIGHT for hd_light actors (optimize)
3/25 - limit reflections on non-anim flats by rl_colored_perceived only (optimize)
3/25 - added sprite height check for TNT1A0 actors in hd_shadow (optimize)
3/25 - fixed DIV/0 error line 1754
3/25 - adjust dynamic light intensity per # hd_lights (optimize)
3/25 - limit shadows within fov (optimize)
3/25 - eliminated sight function checks for player shadow (optimize)
3/25 - eliminated BlockedCheckSight for non-monster casters (optimize)
3/27 - adjust visible light distance by light scale (optimize)
The following limit shadow thinkers for improved performance: raising Sprite Min Size eliminates shadows on smaller items; lowering Shadow Distance reduces the number of active thinkers although won't change the iterator itself; increasing Shadow Lifespan decreases the number of thinkers running at any one tic. Limiting the maximum number of shadows may also help - these are in-game counters that are increased or decreased depending - but at present it can cause some sprites that should have shadows not having shadows.
This comment is currently awaiting admin approval, join now to view.