+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 10 of 21

Thread: What causes a console screen to shimmer

  1. #1
    Wirererer Count23 can only hope to improve Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    221

    Default What causes a console screen to shimmer

    What exactly causes a console screen with wirelink to shimmer?

    Originally, i had a console screen set up to delete all the data and reload it each time an expression chip runs and i figured there was a lag time between the screen clearing and the new data being written, but after removing the screen[2041] = 1 and using a screen:writestring(" ") as a test, i find that the data is still flickering on any of the data that's supposed to update.

    However, i found if i reload the screen with m expression on a fixed timer of about 250ms instead of letting it reload based on updated data from the e2's inputs, then the screen wont flicker.

    But on another chip with a similar function, it doesnt flicker. I just dont understand it.

  2. #2
    Wire Sofaking
    Divran will become famous soon enough Divran will become famous soon enough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    1,231

    Default Re: What causes a console screen to shimmer

    You're not supposed to be writing to a console screen every 0.01 seconds. You should only write to it when needed, such as when a player pushes a button or similar.
    PewPew (New GCombat): http://www.wiremod.com/forum/wiremod...w-gcombat.html
    SVN TUTORIAL: http://www.facepunch.com/showthread.php?t=688324
    E2 THREAD: http://www.wiremod.com/forum/custom-...ns-thread.html
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    

  3. #3
    Wirererer Count23 can only hope to improve Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    221

    Default Re: What causes a console screen to shimmer

    So it really should be on a timer and a timer only then? What happened to high speed writing from a wirelink?

  4. #4
    Expressionism 2.0

    Syranide has disabled reputation Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,179

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Count23 View Post
    So it really should be on a timer and a timer only then? What happened to high speed writing from a wirelink?
    Clients are still limited by physical bandwidth limits, including that of the server. You cannot send infinite amounts of data without it getting queued up, lagging the server and causing various issues.

    Meaning, only update the screen when needed, don't do it every tick, and if you do it every tick, make sure they are minimal changes, not clearing and updating the screen.

  5. #5
    Wirererer Count23 can only hope to improve Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    221

    Default Re: What causes a console screen to shimmer

    So in anything relating to a console screen, we should sacrifice e2 efficiency to ensure that the console screen does the minimum amount of work required?

  6. #6
    Wire Sofaking Nikita is on a distinguished road Nikita's Avatar
    Join Date
    May 2009
    Posts
    421

    Default Re: What causes a console screen to shimmer

    Hey let's make a dll that accelerates all the screen queues by sending them in their own channel, independant of HL2? We could bite a larger part of total physical bandwidth available.

    Did I just say something dumb?

  7. #7
    Expressionism 2.0

    Syranide has disabled reputation Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,179

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Count23 View Post
    So in anything relating to a console screen, we should sacrifice e2 efficiency to ensure that the console screen does the minimum amount of work required?
    I'm feeling pretty confident that minimizing work for the console screen also means minimizing work for the E2 unless you're doing something very strange. But yes, the console screens does not behave well under stress, so changes to a minimum.
    Last edited by Syranide; 02-09-2010 at 04:39 AM.

  8. #8
    Wire Sofaking
    Divran will become famous soon enough Divran will become famous soon enough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    1,231

    Default Re: What causes a console screen to shimmer

    Quote Originally Posted by Count23 View Post
    So in anything relating to a console screen, we should sacrifice e2 efficiency to ensure that the console screen does the minimum amount of work required?
    What are you talking about. It's a simple matter of using a few if cases to check when and when not to write to the screen.
    PewPew (New GCombat): http://www.wiremod.com/forum/wiremod...w-gcombat.html
    SVN TUTORIAL: http://www.facepunch.com/showthread.php?t=688324
    E2 THREAD: http://www.wiremod.com/forum/custom-...ns-thread.html
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    

  9. #9
    Wirererer Count23 can only hope to improve Count23's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    221

    Default Re: What causes a console screen to shimmer

    you mean a few if statements, don't you dirvan. Or has e2 finally got switch/case support?

    And yes, i know it's just a few if statments, I'm just saying that in actuality however, that is adding ops to the e2 chip each time you put an if statment in there. So you're losing efficiency on your e2 in terms of op usage for each case statement you add to check the console screen activity.

  10. #10
    Wire Amateur shaftm is on a distinguished road shaftm's Avatar
    Join Date
    Oct 2007
    Posts
    47

    Default Re: What causes a console screen to shimmer

    It costs less to do an if check than to clear the console screen and write more stuff to it does it not?

+ Reply to Thread
Page 1 of 3
1 2 3 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