Jump to content
  • Advertisement
Sign in to follow this  
FGFS

increase 2D map size

This topic is 2015 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

 

 

 

Share this post


Link to post
Share on other sites
Advertisement

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...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!