#Sequencer AttachTo+StretchTo

1 messages Β· Page 1 of 1 (latest)

uneven delta
#

Yes, lets

karmic harbor
#

This is the macro I execute to attach the "rays"

const target = game.user.targets.first();

new Sequence()
    .effect()
        .file("jb2a.energy_beam.normal.bluepink.03")
        .attachTo(token)
        .stretchTo(target, { attachTo: true })
        .belowTokens()
        .persist()
    .play()
uneven delta
#

Yep, perfectly valid

#

Is this on Forge, btw?

karmic harbor
#

Nope, this is on a droplet on digital ocean

uneven delta
#

Okay, so does it happen with just one attached effect?

karmic harbor
#

I'm still waiting for the reload πŸ˜„
I't went out of memory before I had time to remove all the effects

#

Seems like your hunch was correct

#

It does not happen with zero attached

#

it does not happen with one

#

but, it does with two

uneven delta
#

Interesting, I'll take a look and see if I can't reproduce it. What's your system specs btw?

karmic harbor
#

Running bleeding edge chrome on windows on a desktop with 32GB ram, a 4Ghz Intel Core i7 cpu, and a Geforce GTX 1060 3GB gpu

uneven delta
#

Yeah gonna be hard for my 3080 to reproduce the problem πŸ˜…

#

I'll give it a shot, it really shouldn't crash, never had that

karmic harbor
#

The scene has 13 of the generic fire from JB2A

#

as tiles, several animated lights, and yeah, the energy beam as well from JB2A

uneven delta
#

That might be it

#

Try an empty scene with three attached effects

#

You're basically forcing your browser to play 16 YouTube videos at the same time

karmic harbor
#

hehe.. the BBEG scene is supposed to be epic.. maybe not..gpu crashable epic.. I'm trying an empty scene now

#

So yeah. Same thing

uneven delta
#

Well dang, I'll give it a go when I've got some free time

karmic harbor
#

Cool πŸ™‚
I'm on v2.1.14 of sequencer and v9b269 of foundry here

#

I'll double check on v10 as well

#

If the order matters, the "attach to" are the outer ones, and the "stretch to" is the central one.

#

Same effect on Foundry v10.285 with sequencer 2.3.5.
Good luck hunting πŸͺ² πŸ›
I'm off to bed

uneven delta
#

@karmic harbor
So I think I managed to fix this, but it's an expensive solution; I basically have to preload and precreate each individual file in the attached sprite so that I have the sprites ready to go when I switch over to them

karmic harbor
#

Was it race conditions?

uneven delta
#

Nope, basically videos in chrome are stupidly slow to buffer

#

or rather, slow to start buffering

#

Which means that if I try to call play on the video before it has started buffering, the entire tick method of the effect was blocked

#

and with enough of that happening at the same time, the entire pixi render engine fell over, for some reason

karmic harbor
#

πŸ™‚

uneven delta
#

But if I pre-create them, it seems fixed?

#

It's not perfect, but it stops the crashes and effects getting stuck in space

#

the effects themselves still stutter, due to that buffer issue

karmic harbor
#

I tried to have a shared sprite video texture for multiple of my sprites, but then their video start/pause was linked

uneven delta
#

Yep, that's why I have to spawn multiple videos for each sprite

#

Which is why it's expensive

#

If you can, I would recommend using a specific range increment for the dual attached effects

#

like 30ft

karmic harbor
#

I was talking to pixi devs about it and their response was .. have you heard about spritesheets?

uneven delta
#

SpriteSheets? For high quality transparent webms? πŸ˜„

karmic harbor
#

hehe. yes. even showed me a way for how to automatically render the webms into sprite textures

uneven delta
#

wot, please do show? πŸ˜„

karmic harbor
#

Not super detailed but still πŸ™‚
For my short animation sequences for the birds it would even be plausible. I opted for another way out though. I load the video a couple of times and assign the birds to different groups. It didn't take more than 3 groups to get rid of the synchronized look

#

Btw. I didn't say it before, but Sequencer is awesome work πŸ™‚

#

Did you look into how much work it is to create localized sounds?

uneven delta
#

I have not, but that sounds like an interesting idea

karmic harbor
#

Let me know if you'll do it, or I'll look into the work needed to do a pull request on it ☺️

uneven delta
#

I'm open to pull requests, so please do! I like collaborating with people πŸ™‚

#

Sequencer is open source, after all! πŸ™‚

karmic harbor
#

I just have to get my two last modules over to v10 first ,πŸ˜‚

uneven delta
karmic harbor
#

I can do that. A bit later though, my kid is hogging the computer on Valorant

karmic harbor
uneven delta
#

Nice, great news