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 / Wow! The dot command is incredibly slow!

Author
Message
NeilF
18
Years of Service
User Offline
Joined: 2nd Aug 2006
Location:
Posted: 20th Aug 2006 00:22
If I place a 1000 cube objects on the screen and move them around that's not a problem. 30fps with any trouble at all!

However, if I place 1000 dots on the screen each frame, instead the software is lucky to get a couple of frames a second.

A single pixel is obviously far simpler to render than a cube, so what gives? I assume the dot command then is just very slow and I need to look at direct memory access methods to do dot/lines super quick?
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 20th Aug 2006 00:25 Edited at: 20th Aug 2006 00:26
This person had the same problem. Here.

Basically you can use boxes or lock and unlock pixels

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 20th Aug 2006 00:30
yes, dot is very slow when you don't lock/unlock pixels

Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 20th Aug 2006 00:53
You could also make an image memblock the size of the screen and fill up whatever pixels you wanted and paste it on the screen. That would probably be much faster

Naruto is the ninja...not really

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 20th Aug 2006 00:54
My tutorial on memblock images and screen manipulation here might be what you are looking for...

http://www.thegamecreators.com/data/newsletter/newsletter_issue_32.html#9

I wouldn't normlly recommend it for newcomers to DB Pro, but given your past experience it shouldn't be too strenuous on the brain cells!



NeilF
18
Years of Service
User Offline
Joined: 2nd Aug 2006
Location:
Posted: 20th Aug 2006 18:48
BatVink - I downloaded that tutorial and it won't run

I gets errors with "commands out of place"

Difficult to learn from a tutorial that won't run

Login to post a reply

Server time is: 2024-11-26 14:28:32
Your offset time is: 2024-11-26 14:28:32