Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Making Chunks load?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 SirHekmawful   Members   -  Reputation: 101

Like
0Likes
Like

Posted 26 August 2012 - 04:50 AM

Hello.
I've been coding for some time now, and just can't seem to find a way to load chunks?
I'm making a game, which has a big world.
The map is loaded using a scanner, from a text file, the map is pre-made.
A map example:
ggggwgg
ggggwgg
wgggggg
bbbgggg


g, w, and b is tiles.
The map is really big, and it's gonna begin lagging for people if I don't make chunk loading.
I think I can figure out for myself how to make the player stay in the middle of the screen while loading chunks.

Spoiler


Spoiler

Edited by SirHekmawful, 26 August 2012 - 04:53 AM.


Sponsor:

#2 Kyan   Members   -  Reputation: 395

Like
0Likes
Like

Posted 26 August 2012 - 07:59 AM

  • Please use source tags (hit the button on the second row, far right side).
  • Have you actually ascertained that this is a problem?
  • If it is a problem, why not chunk load using threads? There are a myriad of transition schemes - such as keeping the world (nxm tiles) in memory with an additional +1 tile offset in each direction so the player can "move" and give you time to chuck the area they moved away from and preload whatever [non-visible] map they might be near. Even if you did this in a single thread I don't see it being an overly large problem [for you].


#3 Exessuz   Members   -  Reputation: 141

Like
0Likes
Like

Posted 27 August 2012 - 09:19 AM

http://vterrain.org/LOD/Implementations/

this site has many implementations of LODs algorithms




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS