Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Help with matrix stuff

Author
Message
Marthik
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: Washington State, USA
Posted: 29th Jan 2004 02:43 Edited at: 29th Jan 2004 02:44
i found this usfull function in the code base, that will load a bitmap into a matrix, but when i use it, it really slows down my comp, i am lucky to be getting 10 fps

i have a geforce 2, p4 2ghr, and 512 ddr ram.

is it the function, or what is the problem and how can i fix it? or is there a better way to load a matrix? I used geoscape to make the bitmap, so is there a better way to load a matrix from there?

thanks for any comments posted.

<edit> btw i put the code in the code secion, click button bellow.
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 29th Jan 2004 16:44
hmmm... Make sure you are not calling the function during every loop... other than that, I have no idea...

Do not thwart the way of the dragon. For thou tasteth like chicken.
Robin
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 29th Jan 2004 17:04
Yes, otherwise the matrix will be updating every loop - just call the function before the loop

http://www.thegameszone.tk | robin@thegameszone.tk
Marthik
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: Washington State, USA
Posted: 29th Jan 2004 18:20
yeah, actuly calling during the loop doesn't work, because it gets a matrix already exists error.

Login to post a reply

Server time is: 2024-11-26 01:54:37
Your offset time is: 2024-11-26 01:54:37