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.

Author
Message
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 3rd Dec 2003 20:24
I want a radar in Dark Times... How do you make
a FAST one? (I've already seen the tutorials + codebase)

Dark Times supports 200 objects at the same time (100 for player + 100 for ai)

now, if I update the radar using the one from codebase (circles + lines) things slowdown (from 60 to 10 fps ) I need a fast radar or at least give me some hints
Penfold
21
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 3rd Dec 2003 23:13
I don't know much about code base but if its anything like DB how about a flat object with a texture overlay?

Is this the kiwi from new zealand story?

Ok so its not a mouse.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 4th Dec 2003 08:38
My Radar function in the code base isn't designed for so many objects at once.

2D operations in DB are very slow which is where you're losing FPS.

I might be able to modify that one for you so it can handle some more objects if you like? ( But, anything greater than about 20 or 30 will kill your FPS, In DBPro, this isn't a problem, It's just DBC's 2D Functions )

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Dec 2003 09:42
instead of leaving all the dots and circles in your main loop make it a function or take all those commands and have it display an update every half second. It will improve the speed as your not drawing these things every loop. You can also draw all of those things to a backbuffer bitmap and display it on the screen with a timer to save cpu power each loop.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 4th Dec 2003 11:43
Lol, that's exactly what i was thinking of changing it to, Indi... ( The delay that is ).


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Dec 2003 15:45

Login to post a reply

Server time is: 2025-05-22 06:47:02
Your offset time is: 2025-05-22 06:47:02