3 ms·
Could you memoize the table for each brightness? (presumably flickering is +/- brightness).
by Scaevolus 10y ago
Could you memoize the table for each brightness? (presumably flickering is +/- brightness).
- krajzeg 10y agoSure, it's possible, and flickering is indeed the same as scaling the brightness (but randomly each line). I was under the impression that the table needed would be too big, but now that I actually calculated it (max_range^2*light_levels), it's nothing back-breaking. I'm concentrating more on the game right now than on making the engine even faster, but I'll try to look into before writing the next part - thanks!