mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 11:56:50 +01:00
fix(render): EU07M review of #538: an instance with light colours of its own drawn alone, the light records locked only when stale
- An instance with lightcolors of its own isn't instanced: the colours go onto the shared submodels as the instance is prepared, which the instances of a bucket don't each get, so they all showed the colours of one of them. - The walk takes the exclusive lock for the light records of a bucket only when they are stale in this frame (Refresh_Light_Records() checks again under it): the later passes of the frame no longer stop the other walkers. - instance_cull.comp (both renderers) puts the word of the light parts into [0][3] after the product with the view, so a view with a translation can't stretch the first column of a lit instance. - The spec: ls_Dark / ls_Home switch without the fade too, and the instances with light colours of their own.
This commit is contained in:
@@ -257,7 +257,10 @@ egzemplarz osobno. Dotyczy to modeli EU07M i E3D tak samo.
|
||||
w shaderze macierz zerową (`instance_hides_part()` w `common.glsl`).
|
||||
- Egzemplarz pokazuje całą część zapaloną albo całą zgaszoną. Przy miganiu i przy przełączaniu (`ls_On` / `ls_Off` /
|
||||
`ls_Blink`) zamiana następuje w połowie przejścia (krycie 0,5), a nie płynnym przenikaniem jak bez instancjonowania.
|
||||
Stany stałe wyglądają tak samo jak bez instancjonowania.
|
||||
Stany stałe wyglądają tak samo jak bez instancjonowania. Tak samo bez płynnego przejścia (`fVisible`) zmieniają się
|
||||
`ls_Dark` i `ls_Home`.
|
||||
- Egzemplarz z własnymi kolorami świateł (`lightcolors` węzła) jest rysowany osobno: kolory są nadawane wspólnym
|
||||
submodelom przy przygotowaniu egzemplarza, którego egzemplarze kubełka nie dostają każdy z osobna.
|
||||
- Pomiar (Vulkan, 200 głowic `s4ipcpb_dd`): z `gfx.gpucull 0` klatka 9,2 ms → 1,5–2,5 ms i 2400 → 16 drawcalli,
|
||||
z `gfx.gpucull 1` 9,1 ms → 3,0 ms i 2410 → 26 drawcalli.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user