Aras Pranckevicius aras_p
Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-22 16:45:46 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

There is still one thing I didn't fully understand: the key for the Map<std::string, int> name_to_mem_font_id;. Technically, it is not enough to use just the data-block name: you can have a…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-21 14:03:20 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

Good catch! Fixed.

Aras Pranckevicius pushed to vse_font_thread_safety at aras_p/blender 2024-11-21 14:03:02 +01:00
73566df7e2 More thread safety
Aras Pranckevicius pushed to vse_font_thread_safety at aras_p/blender 2024-11-21 10:25:28 +01:00
23de12d734 Code review feedback
Aras Pranckevicius pushed to main at blender/blender-developer-docs 2024-11-21 09:49:22 +01:00
141408ddc9 Upload files to "docs/release_notes/4.4/images"
Aras Pranckevicius pushed to main at blender/blender-developer-docs 2024-11-21 09:49:12 +01:00
f762f43ce3 Update docs/release_notes/4.4/sequencer.md
Aras Pranckevicius deleted branch vse_text_ui from aras_p/blender 2024-11-21 09:45:31 +01:00
Aras Pranckevicius merged pull request blender/blender#130449 2024-11-21 09:45:27 +01:00
UI: Tweak VSE Text Strip UI to use panels for outline/shadow/box
Aras Pranckevicius pushed to main at blender/blender 2024-11-21 09:45:26 +01:00
ff129ff5f9 UI: Tweak VSE Text Strip UI to use panels for outline/shadow/box
Aras Pranckevicius commented on pull request blender/blender#130449 2024-11-20 20:26:51 +01:00
UI: Tweak VSE Text Strip UI to use panels for outline/shadow/box

To me it does feel a bit weird that the order then would be: [Font], [Color], [Font Size]. It kinda "feels" subjectively better when font size is right next to font. But this might be just…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 16:22:34 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

Yeah, in theory possible. This whole "font id is just an index" would be much better served by an actual "handle" thing (some bits index into an array, other bits "generation counter" that could…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 16:20:12 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

remove this lie this is for keep fonts threads safe comment from the BLF_load_unique

Yeah it is a confusing comment. It kinda does make sense, if you manage to find a years-ago-made commit…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 15:29:42 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

Otherwise I am still confused: how exactly current state of the PR solves the threading issue? Prefetch happens from a background thread, so it never can load font?

Fonts for all text strips…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 15:00:05 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

So the actual font loading function (BLF_load_unique) is still not thread safe, in case multiple threads would call it at the same time. Since it finds a free slot in the global fonts array, and…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 14:58:04 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

Was simpler to do, since font loading could potentially happen from within do_text_effect which locks the mutex, but then font loading function also locks the same mutex. Is there a downside for…

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 14:56:06 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

Fonts can either be loaded from file, or from memory (datablock). These maps are mapping path/name to font id, for file and datablock fonts respectively. Should be clarified in a comment I guess?

Aras Pranckevicius commented on pull request blender/blender#130542 2024-11-20 14:55:02 +01:00
Fix #130463, #114592: VSE prefetching uses wrong font for text strips

Not really, but perhaps it should be added indeed. From what I can tell, refcounting for fonts was added by Richard back when he added custom fonts support to sequencer many years ago.

Aras Pranckevicius commented on issue blender/blender#114592 2024-11-20 10:39:59 +01:00
VSE text strips can attempt to load fonts from threaded context, which is not allowed.

@iss right, but in the PR that fixes that issue, this issue will also get solved.

Aras Pranckevicius pushed to vse_font_thread_safety at aras_p/blender 2024-11-20 10:38:58 +01:00
1913aaffa8 Merge branch 'main' into vse_font_thread_safety
ba890d7fdc Still never try to load a font from a non-main thread
2bf7fac176 Creator: Ensure OpenMP runtime is initialized as soon as possible
60bf09e8db Tests: Add render test for Orthographic camera with DOF with far nearclip
73a3ebea56 Fix #129389: Lineart modifier updates when camera changes
Compare 42 commits »