Aras Pranckevicius aras_p
Aras Pranckevicius commented on pull request blender/blender#118670 2024-08-27 19:40:27 +02:00
VSE: Add anim manager

If anims size is zero, return here in SEQ_add_reload_new_file will leave anims locked? i.e. missing strip_anims_release

Aras Pranckevicius commented on pull request blender/blender#118670 2024-08-27 19:38:37 +02:00
VSE: Add anim manager

Isn't this code path (right before break) in SEQ_time_sequence_get_fps potentially missing a strip_anims_release call?

Aras Pranckevicius commented on pull request blender/blender#118670 2024-08-27 19:37:10 +02:00
VSE: Add anim manager

This uses different logic compared to strip_anims_acquire, which was part of the reason why I was getting deadlocks/exceptions in my tests: acquire filters for "movies only" and then for duplicates, whereas this one only filters for duplicates.

Aras Pranckevicius commented on pull request blender/blender#118670 2024-08-27 19:35:32 +02:00
VSE: Add anim manager

This will leave result filepath uninitialized (containing garbage or previous data) in this case, which was part of the reason why I was getting deadlock/exception in my tests. Suggest adding r_filepath[0] = 0; before return.

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 15:18:16 +02:00
VSE: Faster and more consistent thumbnail cache

Sergey says "I don't see issue with that" on the chat

Aras Pranckevicius commented on pull request blender/blender#118670 2024-08-27 11:32:07 +02:00
VSE: Add anim manager

I can reproduce very very slightly worse playback rate with this PR, but either your gold-edit-v804 is different than mine or your machine is worse than mine (AMD 5950x CPU), because I can…

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 09:12:22 +02:00
VSE: Faster and more consistent thumbnail cache

The job exits when there are no more incoming requests. But since processing requests takes some time, it can (and very often does) happen that while the job is processing some requests, some more…

Aras Pranckevicius pushed to vse_thumbs_cache at aras_p/blender 2024-08-27 09:10:05 +02:00
7430f1f472 Code style
Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 09:08:59 +02:00
VSE: Faster and more consistent thumbnail cache

There's a ton of for (const auto & or for (auto & within Blender code, I assumed using auto for iterators or things being iterated on was common practice. kvp here is "key value pair", but…

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 09:06:55 +02:00
VSE: Faster and more consistent thumbnail cache

It solves an issue of new incoming requests that would be piled up. Consider:

  1. You start looking at some area that needs hundreds of thumbnails.
  2. The job starts, copies them over to itself…
Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 09:03:13 +02:00
VSE: Faster and more consistent thumbnail cache

Good catch! Pushed a fix, the thumbnails job was not cleaned up properly when destroying the thumbnail cache (as part of Ctrl+E refresh).

Aras Pranckevicius pushed to vse_thumbs_cache at aras_p/blender 2024-08-27 09:02:04 +02:00
ef68f24a3d Fix occasional crash when doing "refresh all" due to thumbs job still being in-flight when thumbnail cache is deleted.
Aras Pranckevicius pushed to vse_thumbs_cache at aras_p/blender 2024-08-27 08:27:45 +02:00
50d86242f6 Cleanup
f0ca0b079b Merge branch 'main' into vse_thumbs_cache
fccacf4bcb Comments and code style
7205e1ab8c USD: Add tests for python hooks
7e6a401423 Cleanup: Group StrokeCache Displacement Smear variables together
Compare 99 commits »
Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:25:12 +02:00
VSE: Faster and more consistent thumbnail cache

This does happen in "heavy" tests that I did -- tons of video clips, large timeline, and several source files that span the whole timeline that are almost always visible. After wild panning and…

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:22:09 +02:00
VSE: Faster and more consistent thumbnail cache

Good point, will do.

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:20:27 +02:00
VSE: Faster and more consistent thumbnail cache

Defensive habits, I guess. Will replace with an assert.

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:17:53 +02:00
VSE: Faster and more consistent thumbnail cache

Right, previously this was within space_sequencer indeed. What would you suggest to do? WM jobs are kinda "perfect" for actually doing this -- they run in the background, then can be cancelled…

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:13:29 +02:00
VSE: Faster and more consistent thumbnail cache

Ah cool, I'll remove it then! Missing media is not an issue for this PR, it actually gets "null" thumbnails and handles them just fine, without causing endless requests.

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:12:15 +02:00
VSE: Faster and more consistent thumbnail cache

To me this feels fine -- this is a function called "once per frame" to maintain cache capacity. "once per frame" is quite important since it ticks the logical timestamps etc. "user of this cache"…

Aras Pranckevicius commented on pull request blender/blender#126405 2024-08-27 08:10:10 +02:00
VSE: Faster and more consistent thumbnail cache

Previous code, whenever the timeline view changed at all (panning/zooming), was canceling any in-flight thumbnail requests and starting from scratch, essentially.

Now I changed it to not flat…