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 / Damn.. this is slow!

Author
Message
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 7th Feb 2004 17:52
Hey everyone,

I'm making a kind of paint program. The program reads from a file and draws the dots to the screen. But a whole painting wil keep hours before it's ready painting. Do you get what i mean? is there a trick or do i know what to speed that up?

Thanks for anyone who attemps to help,

The Dream Keeper!

Bring fun to life!!!!!
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 7th Feb 2004 18:20
you could create a blank bitmap in a memblock and plot your pixels to that, or use lock pixels to draw to the screen MUCH faster, also, do you realy need to plot each pixel?, why not just save the whole image or convert it to a memblock and save that?, if you said exactly what you are trying to do then maybe we could give you some idea as to what the alternatives are, cheers.

Mentor

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 8th Feb 2004 21:30
Oh.. well. the program draws the same thing as you. In the same order and color and so on. That's why every pixel has to be saved. And an bitmap is out of the picture. But i have already found the sulotion. But still thanks.

The Dream Keeper!

Bring fun to life!!!!!

Login to post a reply

Server time is: 2025-05-22 16:51:42
Your offset time is: 2025-05-22 16:51:42