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.

DarkBASIC Discussion / How can I make my game faster?

Author
Message
DDD Productions
21
Years of Service
User Offline
Joined: 14th Mar 2004
Location: On Earth
Posted: 5th Jun 2004 19:51
I have constructed a base for my game made of several matricies. However, when I textured the matricies, everything slowed down. How can I make my program faster. I don't want to use 3D models instead of matricies.

D.D.D Productions
Specializing in game creation
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 6th Jun 2004 00:17 Edited at: 6th Jun 2004 00:20
i'm just curious, how many fps are you getting? 1 frame per 5 seconds?

anyways the reason why it runs so slow is 'cus you've got too many matrices and each are pretty big with a lot of tiles. Your gonna have to look for another way to do what your trying to do... what are you trying to do?

[edit]

woah, you've also got a 512 bitmap image and your texturing each matrix with it. I'd suggest you use smaller sized jpegs instead and you don't need to load the bitmap and get the image, you can just load the texture as an image:

load image "filename",1

DDD Productions
21
Years of Service
User Offline
Joined: 14th Mar 2004
Location: On Earth
Posted: 6th Jun 2004 01:16
The base is composed of 5 floors. What if I were to detect which floor you were on and delete the contents of the other floors in the base, then recreate the floor your moving to when going down a lift then deleting the contents of the previous floor? In order to hide this action, I could create 4 plains around the base.

D.D.D Productions
Specializing in game creation
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 6th Jun 2004 02:07
could work but the main problems you have:

- too many matrices, their too large and have too many tiles, try reducing the number of matrices, make them smaller and instead of 60*60 tiles use something like 10*10.
- bitmap image too big, reduce it's size to like say 256 or even less.

i'm sure if you do that you'd get a nice speed boost if you still need more speed then try your way, it should work

Login to post a reply

Server time is: 2025-05-24 13:23:12
Your offset time is: 2025-05-24 13:23:12