curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
13 stars 0 forks source link

Lightmap rendering (and perhaps other elements w/ alpha) sporadically turns pitch black, depending on the hardwares #8

Closed curioustorvald closed 6 years ago

curioustorvald commented 7 years ago

Now everything--blocks, actors, UIs--are rendered black. Tested with my low-end rig that has 9800 GT, Intel E8400, 4GB RAM.

curioustorvald commented 7 years ago

At least for the black lightmap, now recent nVidia driver also breaks it (although sporadically), clearly it's my code that is shit.

curioustorvald commented 7 years ago

And when lightmap is not rendering, framerate is like 800; normally it's 80.

curioustorvald commented 6 years ago

Half frame trick (update only when global render timer is odd/even) was the culprit, sometimes it would not increment; fixed along with feature implementation (faster blocks and lightmap draw) by simply removing the trick.