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 Professional Discussion / Why is the INK command so slow??

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 28th Sep 2003 23:41
I have noticed that my game in progress slows from 75 FPS to 37 FPS when I add in the a single INK command! I am displaying info about the selected unit in a box in the corner. The stats are in white, the 'headings' are in blue. Just before I use the TEXT command I switch to the blue ink then text the heading then switch back to white with another INK command. This cause the frame rate to plummet!!! I know this is the problem coz if I omit the INK command and simply display the info in white then I get the higher frame rate.

Is the INK command inherently slow and if so, how can I do this but faster? It seems like such a simple task.

Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 28th Sep 2003 23:51
Worst case it should only happen for 1 frame and then get back to speed, unless you are changing ink settings every cycle. Please post an example of code

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX

Login to post a reply

Server time is: 2026-07-25 07:01:14
Your offset time is: 2026-07-25 07:01:14