image-regions-v2 branch: layer cache invalidation and sort key
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- cpp
- Área
- computer-graphics, performance
Línea de trabajo
Start in engine/render/r_main.cpp, reading IsDirty, ProcessCommands, MakeShapeSortKey, EmitSprite and DispatchGroup around the cited lines on branch feat/image-regions-v2 at commit 1b51acd. Trace how texture completion, viewport and texture IDs, screen size, and sampler setup affect cached layer replay. Done when the four reported cache invalidation, sort key, resize, and texture setup issues are addressed and the affected rendering behavior is verified.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This is about the WIP branch feat/image-regions-v2 on your fork (at 1b51acd), since issues are turned off there. I read through it and these are the places where I think changes are needed.
Pending textures keep a layer dirty forever. usedIncompleteTextures is only ever set to true (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2373-L2375) and ProcessCommands doesn't reset it (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L748-L758). When an async texture finishes, the command bytes stay the same (same pointer), so the layer isn't reassembled either, and IsDirty() always returns false (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L193-L197). I think that means elision stays off once a layer has drawn a loading texture, and region UVs stay based on the placeholder size, since EmitSprite clamps the size to 1 (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2466-L2468). A texture generation counter that IsDirty() checks would cover both.
Sort key arguments are swapped. MakeShapeSortKey takes (effectTag, effectUser, viewportId, texId) (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2263), but both callers pass texMemo, vpMemo (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2601 and https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2634). With the viewport bits masked out, shapes are sorted by viewport instead of texture.
Screen size isn't in the cache key. screenSize is latched in ProcessCommands (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L751) and used for glViewport, u_screenSize and the scissor flip (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2677-L2680, https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2711-L2713). A layer whose commands stay the same across a resize would replay with the old size.
Cache hits still pay the full texture setup. DispatchGroup sets every sampler uniform and rebinds every unit for each batch (https://github.com/zao/PathOfBuilding-SimpleGraphic/blob/1b51acd62a6beac96bdf5c26c3e02e484b68d255/engine/render/r_main.cpp#L2718-L2730). Setting the uniforms once after linking and binding only the used units would make a replay much cheaper.
- Lenguaje dominante
- C++
- Estrellas
- 23
- Forks
- 69
- Merge medio
- 2 h 50 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 4/5 1-2 días Aptitud para principiantes 48/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Todos los issues de PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic
Issues similares
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
difficulty:easy prio:normal type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NatronGitHub/openfx-supportext#326 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
zucch1/android-auto-jetson#293 ·
Los mantenedores suelen responder en 1 día
-
lfortran -E exits with status 0 after a C preprocessor error (#error, wrong macro argument count)Abiertobug low priority preprocessor
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
difficulty:easy enhancement prio:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NatronGitHub/openfx-misc#502 ·
Los mantenedores suelen responder en 1 día