Effect keys: register and unregister per assembly (assembly reload, plugin unload)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by reading ParameterKeys, ShaderMixinManager, and DataSerializerFactory to understand the existing registration pattern. Then trace the assembly registration calls in PackageSession, ReloadAssembliesOperation, UnloadAssembliesOperation, and LiveAssemblyReloader. Done means keys and effect builders can be registered and removed per assembly, including resolving the open questions about composed or indexed keys and collections that retain old keys.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Since #3584, parameter keys are named by source generators (EffectKeysGenerator for hand-written key classes, the shader generator for sdsl/sdfx keys). Both emit a module initializer that calls ParameterKeys.Merge for each key.
ParameterKeys keeps one global table (keyByNames, keys, the composed key cache) that nothing ever clears. Effects work the same way: ShaderMixinManager.Register per effect, and only UnRegisterAll.
So when the editor reloads game assemblies (ReloadAssembliesOperation, and its undo/redo) or a plugin is unloaded, the keys and effect builders of the old assembly stay registered. They stay reachable by name, and they keep the old assembly alive, which blocks unloading a collectible load context.
Proposal, same shape as DataSerializerFactory:
- The generators output a list of the assembly's keys (and effect builders) instead of calling
Merge. ParameterKeysandShaderMixinManagergetRegisterAssembly(Assembly)/UnregisterAssembly(Assembly).- Hosts call them where they already call
DataSerializerFactory.Register/UnregisterSerializationAssembly(PackageSession,ReloadAssembliesOperation,UnloadAssembliesOperation,LiveAssemblyReloader). - Games keep registering at module init, so user code doesn't change.
Open questions:
- Composed and indexed keys made from an unloaded key (
ComposeWith,IndexedKey): drop them too? ParameterCollections that still hold old keys after a reload.
- Lenguaje dominante
- C#
- Estrellas
- 8k
- Forks
- 1.2k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 316
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de stride3d/stride
-
`.gitignore` isn't created for sample projectsPosiblemente ocupada @ferafiks la tomó hace 1 día. Abiertoarea-Asset area-GameStudio area-Samples bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
area-Build bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
area-Samples enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stride3d/stride#3386 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
area-Physics bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
stride3d/stride#3384 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-Samples bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
stride3d/stride#3066 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de stride3d/stride
Issues similares
-
[Linux] The portal's color-scheme 0 (no preference) means light, not "not known"Posiblemente ocupada @ramlanrinos la tomó hoy. Abiertoarea: linux bug ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ZaidX88/sluice#284 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Unit converter reads out of bounds when the saved UnitConverterPreferences setting is malformedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/calculator#2532 ·
-
Scaffold marks an association as required when its composite foreign key has a nullable columnAbiertoarea: scaffold status: needs-tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
provider:flagd type:fix
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
open-feature/dotnet-sdk-contrib#789 · 1 comentario ·
Los mantenedores suelen responder en 1 día