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 / Flush video memory??? what does it do

Author
Message
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 2nd Feb 2009 02:47
that command is in all of the magic windows examples and it must be like the lock cli command (can't remember the word for that) because in darkedit it doesn'tcome up as a command but still runs any ideas?
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 2nd Feb 2009 05:12 Edited at: 2nd Feb 2009 05:13
That's funny, because it did not come up in the DBC help file, yet it didn't error when I ran a DBC program with it in it. Anyway, from the DBP help files (I assume DBC would be similar):
This command will flush all textures and other resources from active video memory.

You should use this command when you are dramatically changing the contents of your 3D scene such as changing game levels or entering a new environment. This technique will improve performance during the initial renders of a new scene.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Feb 2009 05:41
I believe it was one of the "hidden" commands of DBC, meaning it is a command that wasn't fully developed and isn't really complete, so to speak.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Hangar18
19
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 2nd Feb 2009 07:06
It cleans out the video memory leak from importing lots of images but from having used it to cure my leak problem I think the impact is purely cosmetic. i.e. the value returned from video dsem() (sorry cant remember the exact command) may increase after using the command but in reality I'm not sure it has.
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 3rd Feb 2009 05:08
oh ok i see i was just wondering lol

lbfn:

yes i know it's not it the help files thats why i asked hahaha like he said it is one of dbc's "Hidden" commands like lock cli (locks the cli so it behaves like a exe and you don't get error messages or anything it will just close of theres a error)


but anyways thanks to all that helped just a random question i was wondering about lol
Yodaman Jer
User Banned
Posted: 5th Feb 2009 21:52
Quote: "You should use this command when you are dramatically changing the contents of your 3D scene such as changing game levels or entering a new environment. This technique will improve performance during the initial renders of a new scene."


Hmm, should have used it in my game for NaGaCreMo. Now I know for next time!



Wait....what?
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 5th Feb 2009 23:01
NaGaCreMo?? whats that just wondering?
Yodaman Jer
User Banned
Posted: 5th Feb 2009 23:22
NaGaCreMo (which stands for National Game Creation Month) was established over in the Geek Culture forums last year. You take part in a resolution to complete a WORKING program (whether it be a game or application or even a screen saver) within the first 30 days of the new year. As far as I know, it will become an annual thing (its first year was this year (I think)). It was a lot of fun, really made me focus on programming and helped me gain a little more experience in programming. So if you're interested in it Caleb, start planning for next year.



Wait....what?
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 5th Feb 2009 23:35
hm thats a interesting idea i should probly go to the geek culture forums every once in a while lol thanks for this info
Yodaman Jer
User Banned
Posted: 5th Feb 2009 23:59
Yes. Yes you should.



Wait....what?
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 6th Feb 2009 00:07
lol
Yodaman Jer
User Banned
Posted: 14th Feb 2009 00:26
Hmm, I just used this command in a new project of mine. It sort of did speed up the initial render, even when I was running Firefox (which isn't really recommended for testing/playing games. ).


In DarkEDIT it doesn't bold or turn red though, but I guess that's because it's an in-complete command (though it seems to work for me).

Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 14th Feb 2009 02:14
yes the in-complete commands dont highlight light the normal ones
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 14th Feb 2009 03:13 Edited at: 11th Aug 2010 22:38
That just means they're not documented..

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Feb 2009 02:14
The "hidden" commands are incomplete, as mentioned above. That means they are not all secure to use, and could cause memory leaks... But what the hell?

Can someone make a list of them?

I remember 3 of them:

3ds2x

converts a 3ds file to an x file

break

will make that cli bar thingy pop up in mid program.

flush video memory

---

TheComet

Peachy, and the Chaos of the Gems

Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Feb 2009 03:46
3ds2x is in my darkbasic book lol idk why though

oh and lock cli.

that makes the cli not come up at all (acts kinda like a exe just not warnings when it closes)
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Feb 2009 09:26 Edited at: 15th Feb 2009 09:45
A list should be in the downloadable help.

hidden commands 1

hidden commands 2

And for good measure:

LOCK CLI - disables the command line interface on execution pause or termination

UNLOCK CLI - enables the command line interface

| (binary OR)


& (binary AND)


! (not the same as)


set static objects wireframe on

set static objects wireframe off

STATISTIC(1) - number of polygons being rendered



Enjoy your day.
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Feb 2009 23:18
exactly! just with a little bit more knoledge hahaha

Login to post a reply

Server time is: 2026-07-11 16:07:14
Your offset time is: 2026-07-11 16:07:14