Skip to content

Improve reliability of plugin initialization#71

Merged
ruccho merged 2 commits intomainfrom
feature/lazy_loading_metal
Dec 1, 2025
Merged

Improve reliability of plugin initialization#71
ruccho merged 2 commits intomainfrom
feature/lazy_loading_metal

Conversation

@ruccho
Copy link
Collaborator

@ruccho ruccho commented Dec 1, 2025

Although the native plug-in libunienc.dylib is marked as "load on startup" in the import settings, it seems to be ignored sometimes (reproducible with Unity 6000.2.13f1, macOS Apple Silicon editor). This prevents us from hooking on the graphics initialization event and readback-free encoding will fail. This PR makes it work even if the plugin is lazily loaded.

Also it fixes the issue that exceptions are ignored in the "end of frame" loop.

@ruccho ruccho requested a review from hkmt-mmy December 1, 2025 06:13
@ruccho ruccho merged commit 48eb444 into main Dec 1, 2025
@ruccho ruccho deleted the feature/lazy_loading_metal branch December 1, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants