03-08-2023, 10:04 AM
nope! i had a report of a crash yesterday as well, from someone who set up several of them. i'm not sure what the deal is, because it isn't a server crash, and i haven't found a good way to reproduce it yet.
i changed how it updates slightly; before and after (not byond code, just pseudocode)
before:
after:
the idea being that, rather than trying to constantly update the icon and send it back to the client, it will try to batch them.
but the interesting thing is that it's not drawing too fast that seems to cause the problem, because the crash seemed to happen when they weren't being drawn to.
i suspect BYOND.
i changed how it updates slightly; before and after (not byond code, just pseudocode)
before:
Code:
drawPixel(x, y, color)
art.Draw(x, y, color)
icon = art
after:
Code:
drawPixel(x, y, color)
art.Draw(x, y, color)
if (!updating)
updating = true
icon = art
spawn(1) // wait a bit
icon = art // update again for new stuff
updating = false
the idea being that, rather than trying to constantly update the icon and send it back to the client, it will try to batch them.
but the interesting thing is that it's not drawing too fast that seems to cause the problem, because the crash seemed to happen when they weren't being drawn to.
i suspect BYOND.