The most effective way design a map format
Moderator: Coders of Rage
-
- Chaos Rift Newbie
- Posts: 48
- Joined: Fri Feb 12, 2010 12:46 pm
- Favorite Gaming Platforms: PC, Wii, SNES, GameCube
- Programming Language of Choice: C++
The most effective way design a map format
ok i've been using for loops to draw everything in my map and it seems to load even slower when i draw it every round. whats the best solution to this. not to talk about adding collision. does anyone have a good quad tree tutorial?
- EdBoon
- Chaos Rift Junior
- Posts: 258
- Joined: Fri May 28, 2010 10:44 pm
- Current Project: Top down multiplayer shooter using unity 3D
- Favorite Gaming Platforms: 360, SNES, ps1
- Programming Language of Choice: C++, C#
- Location: Atlanta, GA
- Contact:
Re: The most effective way design a map format
I'm a bit unclear.. do you mean you are updating everything in loops and its slower than before when you updated everything each cycle? I think you are meaning to draw everything every cycle, or you would wan't to at least, if not it would probably flicker.acerookie1 wrote:ok i've been using for loops to draw everything in my map and it seems to load even slower when i draw it every round. whats the best solution to this. not to talk about adding collision. does anyone have a good quad tree tutorial?
http://www.kyleschouviller.com/wsuxna/q ... -included/ - this is a great resource for quad tree theory. Source code is even included and its pretty simple to understand him (in my opinion). He also is very nice and would be happy to answer any questions you might have after reading through it.
edit --
I think i read it wrong. Are you saying that before you were calling each draw for all the objects inline manually then u threw them all into a loop to make it easier? for-loops shouldn't slow it down like that. can u paste some of the code in here for us to look at??
Undead Empire -> http://bit.ly/dYdu3z
Gamerscore Tracker -> http://bit.ly/vI4T4X
Undead Empire: Hellfire -> http://bit.ly/1AgC4ZY
facebook.com/BigRookGames twitter.com/BigRookGames
youtube.com/user/bigrookdigital
Gamerscore Tracker -> http://bit.ly/vI4T4X
Undead Empire: Hellfire -> http://bit.ly/1AgC4ZY
facebook.com/BigRookGames twitter.com/BigRookGames
youtube.com/user/bigrookdigital
-
- Chaos Rift Newbie
- Posts: 48
- Joined: Fri Feb 12, 2010 12:46 pm
- Favorite Gaming Platforms: PC, Wii, SNES, GameCube
- Programming Language of Choice: C++
Re: The most effective way design a map format
i meant that i draw, i check collision, and move the map in different for loops which slows the game down. tho when i worked on a game with another dev it kinda still slowed down: http://code.google.com/p/dangerwave/ <-go to downloads to play the game.
what makes me mad is that i see games that are made years ago that run better than mine
what makes me mad is that i see games that are made years ago that run better than mine
- ismetteren
- Chaos Rift Junior
- Posts: 276
- Joined: Mon Jul 21, 2008 4:13 pm
Re: The most effective way design a map format
Maybe it will be clearer what you are talking about if you post the relevant code.
Also, i don't really see what this has to do with the map format(to my understanding the "map format" is the way the map data is stored on the disk) unless you load the whole map every frame(which btw would explain the problem...)
Also, i don't really see what this has to do with the map format(to my understanding the "map format" is the way the map data is stored on the disk) unless you load the whole map every frame(which btw would explain the problem...)
-
- Chaos Rift Newbie
- Posts: 48
- Joined: Fri Feb 12, 2010 12:46 pm
- Favorite Gaming Platforms: PC, Wii, SNES, GameCube
- Programming Language of Choice: C++
Re: The most effective way design a map format
the question is in 2 parts. the effective "format" for maps and "displaying" the loaded elements.ismetteren wrote:Maybe it will be clearer what you are talking about if you post the relevant code.
Also, i don't really see what this has to do with the map format(to my understanding the "map format" is the way the map data is stored on the disk) unless you load the whole map every frame(which btw would explain the problem...)