Compiling DisplayLists takes very much RAM and freezes Windows

61 Views Asked by At

To learn 3D Programming i'm creating a simple Minecraft Clone. I started with VBOs but cause all the data is static i w´switched to DisplayLists.

I have a DisplayList for every side of a cube, only visible faces are rendered. The displayLists are created when the game is started for the whole map of 512 * 512 * 100.

--> DisplayLists created: ~ 3 000 000

When i start the Program my Computer gets slower and then stops updating the screen. I can do nothing except for moving the mouse. I had another Program running with a countdown and even the countdown stopped. Most times i have to turn the power off. One time my Virus Scanner also reported me that javaw.exe took 4 GB of RAM (out of 8 GB).

I make a display List for every side of a block so that i can stop rendering side and blocks that aren't seen.

How can i fix that problem? Should i make my DisplayLists bigger so one for every chunk or one for every block?

0

There are 0 best solutions below