increase 2D map size

Started by
3 comments, last by FGFS 10 years ago

Hi

I do:

for (int x=0; x<256; x+=2) {
...
for (int z=0; z<256; z+=2) {

...

how to draw?

It looks stretched. Previously I did:

for (int x=0; x<128; x++) {
...
for (int z=0; z<128; z++) {

glVertex3f(terrainMap[x][z][0], terrainMap[x][z][1], terrainMap[x][z][2]);

...

with +1 draws ok.

I can't simply go to 256 as the FPS drop heavily. I want to go 256 or better even 512 size.

Thanks

Advertisement

Instead of glVertex3f (AKA OpenGL1 immediate mode rendering), use VBOs.

Yes, but for now I want to keep it simple and quick if possible.

What is your FPS before and after? You're making 4x more GL calls when you go from 128 to 256, so I'd expect your seconds-per-frame number to be maybe about 4x larger...

Oops found my error...not my day, thanks.

This topic is closed to new replies.

Advertisement