ID:2347844
 
Resolved
Changing visual contents for a screen object did not necessarily cause them to visually update immediately.
BYOND Version:512.1410
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 64.0.3282.167
Applies to:Dream Daemon
Status: Resolved (512.1411)

This issue has been resolved.
Descriptive Problem Summary:
This is more of an annoyance than a bug, but I guess it would go in this section.
Adding things to an object's vis_contents is slow when the object is on the screen.
Numbered Steps to Reproduce Problem:
Add an object to the screen.
Add other objects to the first object's vis_contents.
Notice the new objects usually don't display instantly.
Code Snippet (if applicable) to Reproduce Problem:

https://www.dropbox.com/s/8h1qw3h5rjsw8v0/ vis_contents%20Slow_src.zip?dl=0
OnScreen() you'll notice the object almost never appears right away.
OffScreen() the object will appear right away every time.

Expected Results:
vis_contents are drawn immediately as added.
Actual Results:
vis_contents are not drawn immediately.
Does the problem occur:
Every time? Or how often? Y
In other games? Y
In other user accounts? Y
On other computers? Y

When does the problem NOT occur?
When the parent object is not on the screen when adding objects to vis_contents.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
vis_contents is new to 512

Workarounds:
Remove parent object from screen, add objects to vis_contents, add parent object back to screen.

Thanks for the test case. I'll take a look and see what's going on. Pretty sure this will be an easy fix, although likely a server-side one.
Lummox JR resolved issue with message:
Changing visual contents for a screen object did not necessarily cause them to visually update immediately.