+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: What causes a console screen to shimmer

  1. #11
    Wirererer Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    248

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by shaftm View Post
    It costs less to do an if check than to clear the console screen and write more stuff to it does it not?
    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.

  2. #12
    Wire Sofaking jacoby6000's Avatar
    Join Date
    Feb 2008
    Location
    behind you when you aren't looking
    Posts
    792

    Default Re: What causes a console screen to shimmer

    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..
    Quote Originally Posted by Garrysmod View Post
    Warning: You're trying to render in the wrong place. This doesn't play nice with multi-core rendering, so we're not going to let you draw here.
    I'm not stupid!
    In [his] experience that was a sentence never to be uttered except to prove its own inaccuracy
    --Orson Scott Card

  3. #13
    Wirererer Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    248

    Default Re: What causes a console screen to shimmer

    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.

  4. #14
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: What causes a console screen to shimmer

    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.


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

  5. #15
    Wirererer Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    248

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Schilcote View Post
    Does the EGP do refresh-every-tick type stuff better?
    dunno what that is

    Quote Originally Posted by Schilcote View Post
    On the increase in ops, does it really matter? So your E2 takes up 12% of the softquota instead of 11%. Big deal.
    AFAIK the quota is shared among all your e2s, the more something like a console screen takes to process, the less you can allocate somewhere else.

  6. #16
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: What causes a console screen to shimmer

    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?


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

  7. #17
    Wirererer Dskodk's Avatar
    Join Date
    Sep 2009
    Location
    In a toilet somewhere
    Posts
    161

    Default Re: What causes a console screen to shimmer

    Code:
    timer("cscreen",1000)
    if(clk("cscreen")){
    console stuff
    }
    that does it for me.
    Blink.
    Breathe.
    Think.
    Discuss.
    You are unique.

  8. #18
    Wirererer Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    248

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Schilcote View Post
    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?
    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.

    Quote Originally Posted by Dskodk View Post
    Code:
    timer("cscreen",1000)
    if(clk("cscreen")){
    console stuff
    }
    that does it for me.
    Interval(1000) with @triggers Time is easier, but thanks man.

  9. #19
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Count23 View Post
    Not so much, but its bad programming form to waste cycles..
    It's also bad programming to write to the screen 100 times per second even if there are no changes for the user to see.

    Quote Originally Posted by Count23 View Post
    you mean a few if statements, don't you dirvan. Or has e2 finally got switch/case support?
    Yes to both.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  10. #20
    Wirererer Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    248

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Divran View Post
    It's also bad programming to write to the screen 100 times per second even if there are no changes for the user to see..

    Theoretically, that shouldnt be the case if you're using the "trigger" for inputs, rather then a timer, then your screen should only update on a new input.

    Quote Originally Posted by Divran View Post
    Yes to both.
    Any documentation on the switch syntax?

+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots