40 votes
Accepted

Game loop isn't performing well enough, so my frame rate is too low (Windows Form + GDI+)

TLDR: Get DirectBitmap from https://stackoverflow.com/a/34801225 and add ...
PTwr's user avatar
  • 516
17 votes

Game loop isn't performing well enough, so my frame rate is too low (Windows Form + GDI+)

When things bog down, check your inner loop. That's the code being run the most often, so even a small inefficiency there stacks up. Here we see: ...
DMGregory's user avatar
  • 132k
3 votes

Game loop isn't performing well enough, so my frame rate is too low (Windows Form + GDI+)

I wonder, do you really need to render noise that is uniquely random down to the pixel? Or would it be okay if it just appears random? If you're alright with an approach that relies on staggered ...
Mentalist's user avatar
  • 153
1 vote
Accepted

How is a Spherical Harmonics Lightmap generated?

The example you linked isn't generating a lightmap, but a light probe. As they say in the Future Work section: The next thing I’d like to do is take this spherical harmonic concept and use it to ...
DMGregory's user avatar
  • 132k

Only top scored, non community-wiki answers of a minimum length are eligible