#Painter api send clear and new draw package at once

23 messages · Page 1 of 1 (latest)

minor ridge
#

This is kind of a continuation of this ticket: https://discord.com/channels/303440391124942858/1190638578389229680

So, is it possible to send the clear painter stuff and the new drawn stuff in one package so that flickering doesn't happen anymore? Or alternatively paint everything at once and on the client look for the painter package and then clear everything before the package is preocessed? I have no idea if any of this is possible but it was just a random idea of mine. Maybe it could also be an improvement for painter in general to send everything at once, maybe at the end of the server tick?

thin needleBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

normal arch
#

yes

#

removing painter objects is just setting the remove property in them to true

#

which can be done at the same time as you update another painter object

minor ridge
#

Rn to remove I do this player.paint({'*': {remove: true}})

#

How would I combine that with adding a object?

normal arch
#

player.paint({'*': {remove:true},'epic_object': {someprop: 25}})

#

tho u should probably be more specific in your remove

minor ridge
#

No, thats the thing, I built everything I did with painter so far on the fact that I remove everything and then paint it for scratch

normal arch
#

every tick?

minor ridge
minor ridge
normal arch
#

AH

#

thats not how you are supposed to do it

minor ridge
#

Yeah, I realised that, but sadly too late

#

Now I would have to rewrite 5000+ lines of code and I am not willing to do that

normal arch
minor ridge
#

Ok, I'll just make a test instance

#

And try that

#

Thanks

#

Yeah, seams to work fine thanks

#

Now I'll just have to sit here for two hours to get everything I paint into one single object and than make that work