Untitled

I fixed the problem with my sprites - I forgot to change the texture coordinates. It was using (0,0) to (1,1) on a 4096x4096 texture. I'm surprised it showed up as it did...

Anyway, the good news is that I fixed it. The bad news is that it sucks at performance [smile]Without much modification, I was getting 11 FPS (The original method got ~90FPS). After getting the sprites for the tiles added directly into the sprite manager instead of into the scene graph and then added to the sprite manager frok there at render time, I got to 40 FPS. After screwing around for a while and letting the sprites persist (Basically making another scene graph), I got 60 FPS. Still a fair bit slower than the 90FPS I was getting before I started [sad]

So, I'll go back to my original method for now I think. I'm also going to assume all sprites have alpha with them, that'll tidy the code up a fair bit, and most of the sprites will be using alpha anyway (The only place they may not be is in the background maps, and that's a special case here anyway).

My intentions for my ~2.5 hours of free time tomorrow are to bin the sprite-based map, and maybe tinker with audio a bit. That's probably best left till later though. I'll probably do some actual "game" code too, like the login screen, etc etc.Some nice UI code wouldn't go amiss either, since there'll be pleanty of UI in the game. Feh, I'm sure I'll find something constructive to do.

I didn't get much done today. I got home from work, then had to go straight back out again to see Pirates Of The Caribbean 2. Which is awesome, although it really begins to drag on near the end, particularly when the cinema is like a shitting sauna. So my day has consisted of: Go to work, go to the cinema and then go to bed, with a brief 5 minute journal entry in there. Feh.

Share this comment

Link to comment

Original post by ukdmOut of interest is that 2.5hrs of free time today from your time on the train and lunch times or do you have a work thing where one day a week you get an afternoon to do your own stuff?

Nup, that's from the train and lunch break. About 45 mins each way on the train, and an hour for lunch.