[CB] Drawing tilemaps using viewWillDraw

Member
Posts: 370
Joined: 2002.04
Post: #16
It's a multiplayer game, and it doesn't know the map until it has connected to the server. I guess I'll do it, though :/

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 469
Joined: 2002.10
Post: #17
if the maps are static, I'd suggest caching them after the first load and saving them to disk for future loads.

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #18
Nope, they're not static. What fun Smile But they always start out the same, so it still might work.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #19
Well if I load the images based on the distance to the player, after a tenth of a second or so you can't see black background. It's still a bit choppy, but it's acceptable.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Post Reply