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 / fastest and most eyepleasing way of coding

Author
Message
Spyda
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location:
Posted: 6th Jun 2004 03:11
hi guys. not been around for a while, been a bit distracted (plus my project was falling to bits lol )

anyway, i was wondering what are the best ways to make a 3d program have the best graphics possible? i dont mean things like high poly counts and such but actual coding techniques. ive been wondering if making everything really small might help? or something like that. i dont want to get half way through my project only to find i have to rewrite it all.

any help is appreciated.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 6th Jun 2004 11:25
You don't have to rewrite something if your code is reusable. make lots of functions for doing things for you, like making useable buttons, etc. (I know I have my own ) A good library of useful functions can make your life easier.

Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 6th Jun 2004 13:34
you could make a MENU library and inlude it as a include then call functions from it. this is a similar style/way to C++ (C++=)

Im not a rubbish programmer...Everyone else is just better than me....
If we were supposed to sing we would look like Kylie...
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 6th Jun 2004 15:52
A menu library... kinda like the Windows menu (File, Edit, etc...)? I have that too. It's more like a modified version of my button lib. Very nifty and handled almost the way Windows does (a la WndProc, the updater returns a number and you have a select case block that handles it), but since it uses the 2D commands it bogs down the program a lot.

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Jun 2004 07:00
code re-use is important for efficiency. Look for patterns in your code and try to condense them. INDENT YOUR CODE. Getting into the habit of indenting your code is very helpful. It's much easier to read, thus easier to find errors. It's also easier for others to read and help you with. Try to minimize calculations.

"eureka" - Archimedes

Login to post a reply

Server time is: 2025-05-24 05:25:31
Your offset time is: 2025-05-24 05:25:31