Hey There,
I am using your fog of war system in an iPad3 game and am finding the performance to be horrendous.
I really like the system and have integrated it fairly deeply into my game, so I'd like to keep using it. I'm seeing a framerate of about 25FPS with the FOW system turned on. If I turn off the shader then I get around 80FPS. The FOWSystem.Update() causes substantial spikes every few seconds (6ms) too in addition.
Unity profiler shows my game is spending significant time(11-30ms) in Device.Present, so I am fairly certain the issue is the shader. I've attached two screenshots of the unity profiler with both Device.Present() and FOWSystem.Update() selected.
I've tried twiddling different configuration options in FOWSystem, but can't seem to find any that reduce perf impact. I'm using a 256 world size and 256 texture size, 0.1 update time, and 0.4 blend time. None of my objects are below Y=0, and i am using some line of sight. All works fine... just slow on device..
Have you tested this on iOS before? Am I doing something stupid?
Thanks!