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 / Most resource intensive commands ?

Author
Message
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 14th Sep 2011 02:36
I read somewhere that commands such as Set Text To Normal" & "Set Text To Bold" consume a lot of resources and impact FPS in the game loop.


Does anyone have any info. on other commands and the impact as well as reminding me how to display the Frame per Second ? FPS... many thanks

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Sep 2011 15:22
Quote: "reminding me how to display the Frame per Second ? FPS"


Suicidal Sledder
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location: Tikrit, Iraq
Posted: 14th Sep 2011 17:06
i know from personal experience that the ink command causes a vrey noticeable slowdown... I was making a skills sheet where red = damaged white = normal and green = fortified (like in Oblivion). and I re-inked for ever number I wrote. It caused my FPs to drop by about 80% so I had to rework it to draw all reds, then all whites, then all greens. It wouldnt surprise me if the same holds true for the other text commands.

Webber
15
Years of Service
User Offline
Joined: 27th May 2011
Location:
Posted: 15th Sep 2011 01:57
Just about all of the 2D commands, and text commands slow down the FPS.
If you use large text, and a lot of text, and certain more detailed fonts, the FPS will drop enormously.

I suggest using images, and sprites.

You can always convert things made with the 2D commands or text into images using the get image command.

I like games, and stuff.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Sep 2011 09:31
That's not the most efficient way to create an image. What you should do is create your blank image, then render to it rather than grab it from a bitmap.

You can do that using the DBPro camera commands (camera to image), or use either my commands or the image kit to create an image and then render to it.

Login to post a reply

Server time is: 2026-07-11 12:00:39
Your offset time is: 2026-07-11 12:00:39