libGDX-rajzolási kötegelés
Csökkenti a felesleges rajzolási állapotváltást a látvány megőrzésével. Vizsgálja a textúracserét, atlaszokat és állapot-visszaállítást, hogy a világ gyorsítása ne rontsa el a HUD-ot vagy effekteket.
libgdx-render-batching
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha textúraváltás, szöveg vagy köztes effekt drágítja vagy elrontja a későbbi rajzolást.
Miben segít neked?
- Feltérképezi a rajzolási meneteket és begin/end felelősséget.
- Méri a textúraváltást, keverést és atlaszhasználatot.
- Effektek után visszaállítja a képkockapuffert, nézetet és shaderállapotot.
Például ezt kérheted
A farmjáték több száz növényt és világító kijelölést rajzol. Mérd a batch-megszakításokat és textúracserét, csak összeillő képeket vonj össze, majd a ragyogás után állítsd vissza az állapotot. A növényrétegek, áttetsző effektek és HUD eredeti sorrendje, megjelenése maradjon meg.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
libGDX — render batching
Use when optimizing libGDX SpriteBatch, atlases, custom shaders or render targets.
Version and project gate
Inspect Gradle wrapper and modules, libGDX/backend versions, Java toolchain, ApplicationListener/Game/Screen structure, AssetManager ownership, viewport policy, native libraries and supported desktop/mobile/web targets. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Map begin/end scopes and render passes. Inspect texture switches, blend state and atlas usage before increasing batch sizes. Reuse scratch math objects where allocations are measured. Restore framebuffer, viewport and shader state after offscreen effects.
Deliver
A scoped render change with draw/texture-switch evidence and correct pass ownership. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Calling ShapeRenderer or changing shaders mid-batch without correct boundaries can break batching or render state.
Acceptance scenario
Combine sprites, text, particles and an offscreen effect, then revisit the screen after resize and context recreation. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Keiko. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Csomagban lévő fájlok 1
SKILL.md
