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.

Dark GDK / can i make basic2d drawing commands faster?

Author
Message
dogzer
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 13th Nov 2005 23:52
I'm making pong. And to make the ball (i couldn't find a elipse command that fills the ball) i made 5 concentric hollow elipses that get tinyer and tinyer until the last one is a dot. and I do that every frame, and it's slow now. (not too slow, but still)

This isn't very important, but out of curiousity, can i make it faster somehow??

thanks.
Dark Lord
18
Years of Service
User Offline
Joined: 19th Aug 2005
Location: Australia
Posted: 14th Nov 2005 09:18
Are you trying to make the ball a filled in colour eg. the whole ball is green?
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 14th Nov 2005 10:50
I guess everybody will tell you to use sprites instead.
dogzer
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 14th Nov 2005 16:14
Inspector: Yeah. All filled.

Morcilla: Si seƱor. Are sprites faster?
MiR
20
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 14th Nov 2005 16:20
You could use a memblock to make an image and then paste that image to screen if you insist on doing it using code. Or you could use paint....

My signature has been erased by me because it's LARGE.
Thank you for the votez!1!
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 14th Nov 2005 19:22 Edited at: 14th Nov 2005 19:22
Do not doubt it, they are faster in most situations.
But if you still want to try the elipses, add:



It should go faster than before.

Login to post a reply

Server time is: 2024-04-19 01:58:01
Your offset time is: 2024-04-19 01:58:01