unless of course its displaying data with a progress bar and certain rows need different colors throughout them ^_^ but then again, you could always just use Cells i guess..
Not really, because if you're redrawing the whole screen and you've done it right, you concat your strings prior to writing it so you arent calling the screen:writestring() function so many times. Theoretically, if you've written your E2 right, you should only be callign screen:writestring() once per each line you need to write on the console screen.
unless of course its displaying data with a progress bar and certain rows need different colors throughout them ^_^ but then again, you could always just use Cells i guess..
--Orson Scott CardIn [his] experience that was a sentence never to be uttered except to prove its own inaccuracyI'm not stupid!
That's more of the exception then the rule, because you wouldnt be doing that very often on a text based screen, that's more something for the wired GPU. Not to mention the lag results for the screen/server trying to draw that kind of data, very fast (ie under 1 second), over and over again.
Altho, the smarter method for the progress bars in that instance would still be to concat your strings previously, draw them up as blank, write your "background" bar colour first, then write your "current progress" bar on top of the back one in a different colour, and redraw only those two lines each time your e2 updates.
Which is much less effort then writing a million writecell commands, and no worse then trying to write a writestring() for label and a writestring() for content.
Does the EGP do refresh-every-tick type stuff better?
On the increase in ops, does it really matter? So your E2 takes up 12% of the softquota instead of 11%. Big deal.
The hardquota, which is all your E2s, is different from and higher than the softquota. And anyway, what are you doing that consumes the entire hardquota? Making fifty console screens work with their own chips?
that does it for me.Code:timer("cscreen",1000) if(clk("cscreen")){ console stuff }
Blink.
Breathe.
Think.
Discuss.
You are unique.
Not so much, but its bad programming form to waste cycles. Not to mention that a lot of functions like advance hud indicators and the like tend to consume a fair amount of quota cycles too.
Interval(1000) with @triggers Time is easier, but thanks man.
SVN Tutorial
My SVN:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
Bookmarks