Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
things in mechcomp
#18
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:
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.
Reply


Messages In This Thread
things in mechcomp - by Zamujasa - 02-27-2023, 02:25 PM
RE: things in mechcomp - by NightmarechaMillian - 02-27-2023, 03:22 PM
RE: things in mechcomp - by TDHooligan - 02-27-2023, 06:39 PM
RE: things in mechcomp - by Zamujasa - 02-27-2023, 07:17 PM
RE: things in mechcomp - by Jakson - 03-01-2023, 08:35 AM
RE: things in mechcomp - by RelentlessGarbage - 03-01-2023, 10:50 AM
RE: things in mechcomp - by Kotlol - 03-01-2023, 02:46 PM
RE: things in mechcomp - by Zamujasa - 03-02-2023, 09:55 AM
RE: things in mechcomp - by RelentlessGarbage - 03-02-2023, 12:11 PM
RE: things in mechcomp - by Zamujasa - 03-03-2023, 02:10 AM
RE: things in mechcomp - by RelentlessGarbage - 03-03-2023, 04:18 AM
RE: things in mechcomp - by CatzCatzCatz - 03-03-2023, 03:00 AM
RE: things in mechcomp - by valtsu0 - 03-03-2023, 07:11 AM
RE: things in mechcomp - by RubberRats - 03-03-2023, 07:38 AM
RE: things in mechcomp - by Zamujasa - 03-03-2023, 09:20 AM
RE: things in mechcomp - by Zamujasa - 03-07-2023, 08:50 PM
RE: things in mechcomp - by RelentlessGarbage - 03-08-2023, 05:30 AM
RE: things in mechcomp - by Zamujasa - 03-08-2023, 10:04 AM
RE: things in mechcomp - by Splints - 03-08-2023, 05:20 PM
RE: things in mechcomp - by Zamujasa - 03-08-2023, 09:38 PM
RE: things in mechcomp - by valtsu0 - 03-09-2023, 02:47 AM
RE: things in mechcomp - by Zamujasa - 03-12-2023, 11:00 PM
RE: things in mechcomp - by Bisar - 03-13-2023, 12:59 AM
RE: things in mechcomp - by CalliopeSoups - 03-13-2023, 09:55 AM
RE: things in mechcomp - by Zamujasa - 03-15-2023, 12:45 PM
RE: things in mechcomp - by eggpielord - 03-15-2023, 03:46 PM
RE: things in mechcomp - by Vocalpocal - 03-16-2023, 05:56 AM
RE: things in mechcomp - by RelentlessGarbage - 03-16-2023, 06:10 AM
RE: things in mechcomp - by Zamujasa - 03-16-2023, 09:09 AM
RE: things in mechcomp - by Lord_earthfire - 03-16-2023, 09:59 AM
RE: things in mechcomp - by RelentlessGarbage - 03-16-2023, 10:31 AM
RE: things in mechcomp - by Zamujasa - 03-16-2023, 06:38 PM
RE: things in mechcomp - by RelentlessGarbage - 03-17-2023, 04:54 AM
RE: things in mechcomp - by Zamujasa - 03-17-2023, 01:16 PM
RE: things in mechcomp - by glowbold - 03-21-2023, 01:04 PM
RE: things in mechcomp - by Zamujasa - 03-21-2023, 03:27 PM
RE: things in mechcomp - by TDHooligan - 03-21-2023, 07:28 PM
RE: things in mechcomp - by Lord_earthfire - 03-21-2023, 09:22 PM
RE: things in mechcomp - by glowbold - 03-26-2023, 02:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)