This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ExDomino's profile picture

Computer screen flickering

Started by ExDomino, 31 July 2015 - 08:54 PM
ExDomino #1
Posted 31 July 2015 - 10:54 PM
On my server, my computer started to blink like the screen is cleared and rewrited again and again. It's the first time it does that. On my own program I made, all is fine, but it blinks when I'm using edit or even in the shell.
H4X0RZ #2
Posted 01 August 2015 - 12:20 AM
Maybe you got a bad ping causing minecraft to update the CC screen too slow?
Bomb Bloke #3
Posted 01 August 2015 - 12:38 AM
My bet is that you're only seeing this when you're actually typing into edit/shell. Under CC 1.74, those scripts now clear and redraw the line whenever you enter a character, in a manner that'll indeed lead to flicker if your system's under load or if you're playing online. It's to do with the auto-complete functionality, though it could indeed be coded to work without blanking the line over and over.

Not that you bothered to mention your version, or the other details the "how to post a bug" thread calls for.
Waitdev_ #4
Posted 01 August 2015 - 01:54 AM
its usually either the ram or something, causing cc to lag when you type. but with what bomb bloke said, it could also be the autocomplete.
does it happen if your typing some word it wouldn't autocomplete?
like… pneumonoultramicroscopicsilicovolcanoconiosis?
ardera #5
Posted 01 August 2015 - 03:45 PM
its usually either the ram or something, causing cc to lag when you type. but with what bomb bloke said, it could also be the autocomplete.
does it happen if your typing some word it wouldn't autocomplete?
like… pneumonoultramicroscopicsilicovolcanoconiosis?
I don't think it has to do with RAM. It is not autocomplete's fault, and it is not a bug.
It's just that the ComputerCraft update adding autocomplete changed the way the shell draws the command line.
flaghacker #6
Posted 01 August 2015 - 05:39 PM
its usually either the ram or something, causing cc to lag when you type. but with what bomb bloke said, it could also be the autocomplete.
does it happen if your typing some word it wouldn't autocomplete?
like… pneumonoultramicroscopicsilicovolcanoconiosis?

That's noT what Bomb said, the issue isn't caused by autocomplete iteself. It is caused by the shell clearing and redrawing the entire line whenever something changes, wich was needed to make autocompleting work. What you actually type is not relevant here.
Anavrins #7
Posted 01 August 2015 - 10:21 PM
It's most likely something to do with shell.clear and/or shell.clearLine being very frequently called, lag also can make it worst.
Bomb Bloke #8
Posted 02 August 2015 - 12:51 AM
It is caused by the shell clearing and redrawing the entire line whenever something changes, wich was needed

Really not "needed", but otherwise yeah.