PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

At last, a breakthrough in debugging - Display is lost

As soon as I added a few extra:-
display = MyGame::GetDisplay();
before the code which was crashing the code started to work.
So code in eVC3 which relied on Display being set to the screen and remembering where it's set now has to re-inforce the location of the destination just before drawing?

So at lease I can get much further in my game testing on VS2005 WM5 now. I can get into the game menu and so on.
Hekkus is working away playing tunes and all my 2D stuff is getting there. Have to try my 3D sometime but I know what will happen when I do.... Boooom

Pessimistic I was, I actually got my 3D splash screen. I just have to work through the game sorting out the display.
That's one of the major differences between PF0.7 and PF0.8. In PF0.7 you can set a DisplayDevice pointer and never have to change it. With PF0.8, you have to do another GetDisplay after each Update.

I added a function to my Game class called DrawScreen(), which does the Update and GetDisplay, so I never accidentally invalidate the pointer.

-John
Thanks John, if PF had documentation we could say that this is missing from them :)
I actually must have had this very early on when PF/HAL version came out after STIII was live. I did not pursue as there was no real need at that time.
As I've said elsewhere performance seems really good though not sure whether it's more HAL to thank or just the X51v's CPU & display hardware setup.

Update 8 December:
My final problem was eventually traced to my using the wrong Hekkus include file. Wavs played just after you loaded them but elsewhere in the game they failed and generated errors which made me think there was a memory allocation issue.