Logo vun Rendering Pipeline

Rendering Pipeline

Communautéit
jame581
rendering-pipeline

Use when choosing a renderer or planning a project's look and frame budget — renderer per platform, lighting strategy and light limits, anti-aliasing, 3D resolution scaling (FSR, MetalFX), SubViewports and render targets, shader stutter, graphics settings menus, and rendering stats

Iwwersiicht

Editeurjame581
RepositoryGodotPrompter
Skill-Nummrendering-pipeline
Stären
896
Forks
60
Matgeliwwert Fichieren
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum jame581 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rendering Pipeline an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/jame581/GodotPrompter/tree/master/skills/rendering-pipeline
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jame581/GodotPrompter.git /tmp/GodotPrompter
mkdir -p .claude/skills
cp -r /tmp/GodotPrompter/skills/rendering-pipeline .claude/skills/rendering-pipeline
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rendering Pipeline an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rendering Pipeline automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rendering Pipeline net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Rendering Pipeline in Godot 4.3+

Project-level rendering decisions: which renderer runs where, how the lighting is built for it, how edges are smoothed, what resolution 3D renders at, and how to measure the result. All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.

This skill picks the strategy; 3d-essentials holds the per-node recipes (materials, light properties, GI setup, fog, decals).

Related skills: 3d-essentials for materials, lights, environment and GI node setup, 2d-essentials for 2D lights and shadows, shader-basics for post-processing, compositor effects and the Shader Baker, godot-optimization for profiling CPU/GPU bottlenecks, web-export for the Compatibility-only browser target.


1. Pick the Renderer First

The renderer decides which lighting features exist at all, so choose it before building the look.

Rendererrendering_methodUse forMissing compared to Forward+
Forward+forward_plusDesktop and console, high-end visuals—
MobilemobilePhones, tablets, standalone XR, low-end desktopSDFGI, VoxelGI, SSAO/SSIL/SSR, volumetric fog, TAA, FSR
Compatibilitygl_compatibilityWeb (the only option there), very old GPUsEverything Mobile lacks (though SSAO arrives in 4.6), plus FXAA/SMAA and MetalFX; glow is a simplified version

Set Project Settings → Rendering → Renderer → Rendering Method. Platform overrides already exist: rendering/renderer/rendering_method.mobile defaults to mobile and rendering_method.web to gl_compatibility, so one project can run Forward+ on desktop and Mobile on phones — but then test the look on both, because effects silently disappear on the lighter renderer.

A settings menu must hide options the running renderer cannot honor. The later sections use this helper:

gdscript
func is_forward_plus() -> bool:
    # Godot 4.4+: prefer RenderingServer.get_current_rendering_method(), which also sees
    # the --rendering-method CLI flag and the automatic fallback on unsupported hardware.
    return ProjectSettings.get_setting_with_override("rendering/renderer/rendering_method") == "forward_plus"
csharp
public static bool IsForwardPlus()
{
    // Godot 4.4+: prefer RenderingServer.GetCurrentRenderingMethod(), which also sees
    // the --rendering-method CLI flag and the automatic fallback on unsupported hardware.
    return ProjectSettings.GetSettingWithOverride("rendering/renderer/rendering_method").AsString() == "forward_plus";
}

Short feature table: see the renderer comparison in 3d-essentials (references/renderer-comparison.md).


2. Lighting Strategy

Decide where light comes from before placing lights. Baked light is nearly free at runtime on every renderer; real-time GI is Forward+ only.

SceneForward+MobileCompatibility
Static level, fixed sunLightmapGI + real-time sun shadowsLightmapGILightmapGI
Day/night cycle, large outdoorSDFGISky ambient + DirectionalLight3DSky ambient + DirectionalLight3D
Small dynamic interiorsVoxelGILightmapGI + ReflectionProbesLightmapGI + ReflectionProbes
Procedural levels (nothing to bake)SDFGIAmbient + a few shadowed lightsAmbient + few unshadowed lights

Light budgets

RendererLimitSetting
Forward+512 clustered elements (omni + spot lights + decals + reflection probes) in viewrendering/limits/cluster_builder/max_clustered_elements
Mobile8 omni + 8 spot lights per mesh— split large meshes so lights don't compete
Compatibility8 omni + 8 spot lights per object; 32 renderable lights per type (omni, spot) per framerendering/limits/opengl/max_lights_per_object, max_renderable_lights

Rules that hold everywhere:

  • Shadows are the expensive part, not lights. Keep one shadowed DirectionalLight3D; turn shadow_enabled off on fill lights and small props.
  • Bake what doesn't move. Set static lights' light_bake_mode to Static so the lightmap carries them and they cost nothing at runtime. Baking needs a Forward+ or Mobile capable editor; the baked result plays on all three renderers.
  • Fade distant lights with distance_fade_enabled instead of leaving dozens active.

Light and GI node setup: 3d-essentials (Sections 3 and 5).


3. Anti-Aliasing

MethodCostSmoothsRenderersNotes
MSAA 2×/4×/8× (msaa_3d)Medium–highGeometry edgesAll three2× or 4× is usually the sweet spot; no help with shader/texture shimmer
FXAA (screen_space_aa)LowEverything, blurryForward+, MobileCheapest whole-image option
SMAA (Godot 4.5+)Low–mediumEverything, sharper than FXAAForward+, MobileTune rendering/anti_aliasing/quality/smaa_edge_detection_threshold
TAA (use_taa)MediumEverything incl. specular shimmerForward+ onlyGhosting on particles and skinned meshes
FSR 2 at scale 1.0MediumLike TAA, sharperForward+ onlySet scaling_3d_mode to FSR 2 and scaling_3d_scale = 1.0

The project settings (rendering/anti_aliasing/quality/*) are read once at startup. To change AA from a settings menu, set the root viewport:

gdscript
func apply_antialiasing(msaa: Viewport.MSAA, use_fxaa: bool, use_taa: bool) -> void:
    var vp := get_viewport()
    vp.msaa_3d = msaa
    vp.screen_space_aa = Viewport.SCREEN_SPACE_AA_FXAA if use_fxaa else Viewport.SCREEN_SPACE_AA_DISABLED
    vp.use_taa = use_taa and is_forward_plus()
csharp
public void ApplyAntialiasing(Viewport.Msaa msaa, bool useFxaa, bool useTaa)
{
    Viewport vp = GetViewport();
    vp.Msaa3D = msaa;
    vp.ScreenSpaceAA = useFxaa ? Viewport.ScreenSpaceAAEnum.Fxaa : Viewport.ScreenSpaceAAEnum.Disabled;
    vp.UseTaa = useTaa && IsForwardPlus();
}

Setting an unsupported mode does not crash; Godot ignores it and logs a warning (an editor error on 4.3–4.5). Gate the options in the UI instead. 2D has its own msaa_2d, which smooths 2D geometry edges such as lines and polygons.


4. 3D Resolution Scaling

Render 3D below native resolution and upscale it — the biggest single GPU saving on fill-rate-bound scenes. 2D and UI stay at native resolution.

scaling_3d_modeRenderersNotes
BilinearAllAlso the only mode that supersamples (scale > 1.0)
FSR 1Forward+Spatial upscaler; rendering/scaling_3d/fsr_sharpness (default 0.2, lower = sharper)
FSR 2Forward+Temporal; replaces TAA; best quality per pixel
MetalFX Spatial / Temporal (Godot 4.4+)Apple Metal: spatial on Forward+/Mobile, temporal on Forward+Falls back to FSR when unavailable
Nearest (Godot 4.7+)AllCrisp pixel look; use integer divisors (0.5, 0.333, 0.25)

Offer presets rather than a raw slider. These are AMD's FSR 1 scales, which work as well with FSR 2: Ultra Quality 0.77, Quality 0.67, Balanced 0.59, Performance 0.5.

gdscript
const FSR_PRESETS := {"ultra_quality": 0.77, "quality": 0.67, "balanced": 0.59, "performance": 0.5}


func apply_upscaling(preset: String) -> void:
    var vp := get_viewport()
    if preset == "native":
        vp.scaling_3d_mode = Viewport.SCALING_3D_MODE_BILINEAR
        vp.scaling_3d_scale = 1.0
        return
    vp.scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2 if is_forward_plus() else Viewport.SCALING_3D_MODE_BILINEAR
    vp.scaling_3d_scale = FSR_PRESETS.get(preset, 1.0)
csharp
private static readonly System.Collections.Generic.Dictionary<string, float> FsrPresets = new()
{
    { "ultra_quality", 0.77f }, { "quality", 0.67f }, { "balanced", 0.59f }, { "performance", 0.5f },
};

public void ApplyUpscaling(string preset)
{
    Viewport vp = GetViewport();
    if (preset == "native")
    {
        vp.Scaling3DMode = Viewport.Scaling3DModeEnum.Bilinear;
        vp.Scaling3DScale = 1.0f;
        return;
    }
    vp.Scaling3DMode = IsForwardPlus() ? Viewport.Scaling3DModeEnum.Fsr2 : Viewport.Scaling3DModeEnum.Bilinear;
    vp.Scaling3DScale = FsrPresets.GetValueOrDefault(preset, 1.0f);
}

Lower scales blur textures; on Forward+ and Mobile, Godot lowers the mipmap bias automatically by log2(scale) to compensate (plus -0.5 with TAA).


5. SubViewports and Render Targets

Each active SubViewport is another full render. Set render_target_update_mode: UPDATE_WHEN_VISIBLE (live views), UPDATE_ONCE (snapshots), UPDATE_DISABLED (pause), UPDATE_ALWAYS.

See references/subviewports.md for UI display, per-viewport settings, and icon capture.


6. Shader Compilation Stutter

The first time a material, light combination, or effect is drawn, the GPU pipeline is compiled, which can hitch a frame.

  • Godot 4.4+ compiles pipelines in the background with ubershaders on Forward+ and Mobile, which removes most of this hitching. Projects on 4.3 benefit from upgrading.
  • The pipeline cache (rendering/rendering_device/pipeline_cache/enable, on by default) makes the second launch faster than the first.
  • The Shader Baker (Godot 4.5+, export preset option) shortens the first launch on D3D12 and Metal — see shader-basics and export-pipeline.
  • On Compatibility, and for effects that still hitch, show each material once behind a loading screen (spawn the effect off-camera or at zero scale for a frame).

7. Measuring

Read rendering stats from Performance and switch Viewport.debug_draw to see where the cost is.

gdscript
func _process(_delta: float) -> void:
    $Stats.text = "draw calls %d | primitives %d | VRAM %.0f MB" % [
        Performance.get_monitor(Performance.RENDER_TOTAL_DRAW_CALLS_IN_FRAME),
        Performance.get_monitor(Performance.RENDER_TOTAL_PRIMITIVES_IN_FRAME),
        Performance.get_monitor(Performance.RENDER_VIDEO_MEM_USED) / 1048576.0,
    ]


func _unhandled_input(event: InputEvent) -> void:
    if event.is_action_pressed("debug_overdraw"):
        var vp := get_viewport()
        vp.debug_draw = Viewport.DEBUG_DRAW_DISABLED if vp.debug_draw == Viewport.DEBUG_DRAW_OVERDRAW else Viewport.DEBUG_DRAW_OVERDRAW
csharp
public override void _Process(double delta)
{
    GetNode<Label>("Stats").Text = string.Format("draw calls {0} | primitives {1} | VRAM {2:F0} MB",
        Performance.GetMonitor(Performance.Monitor.RenderTotalDrawCallsInFrame),
        Performance.GetMonitor(Performance.Monitor.RenderTotalPrimitivesInFrame),
        Performance.GetMonitor(Performance.Monitor.RenderVideoMemUsed) / 1048576.0);
}

public override void _UnhandledInput(InputEvent @event)
{
    if (@event.IsActionPressed("debug_overdraw"))
    {
        Viewport vp = GetViewport();
        vp.DebugDraw = vp.DebugDraw == Viewport.DebugDrawEnum.Overdraw ? Viewport.DebugDrawEnum.Disabled : Viewport.DebugDrawEnum.Overdraw;
    }
}

Useful debug_draw modes: OVERDRAW (transparency and particle cost), UNSHADED (is it lighting or geometry?), LIGHTING, WIREFRAME (call RenderingServer.set_debug_generate_wireframes(true) before the meshes load). The editor's Debugger → Visual Profiler splits GPU time per pass. Profiling method: godot-optimization.


8. Graphics Settings Menu

Players expect presets (Low / Medium / High / Ultra) plus individual toggles, saved between sessions. Apply runtime settings to the root viewport, environment toggles to the active Environment, and store the choice in a ConfigFile under user://.

Full preset table, apply code, and persistence in GDScript and C#: references/graphics-settings.md.


9. Common Pitfalls

SymptomCauseFix
Effects vanish on phone or web buildBuilt the look on Forward+, shipped on Mobile/CompatibilityPreview with the target renderer; plan lighting per Section 2
TAA or FSR option does nothingNot Forward+ (warning in output)Gate the option on the running renderer (Section 1 helper)
Changing the AA project setting in game has no effectProject settings are read at startupSet the root Viewport properties
Lights flicker on and off on MobileMore than 8 omni or 8 spot lights touch one meshSplit the mesh, bake static lights, or fade distant lights
Minimap halves the frame rateSubViewport renders full quality every frameLower its size, disable its shadows/effects, update every few frames
SubViewport looks aliased while the game doesn'tSubViewports don't inherit root AA/scalingSet msaa_3d / scaling_3d_* on the SubViewport
Pixel-art 3D looks smearedBilinear upscalingSubViewportContainer.stretch_shrink with nearest texture filter, or Nearest scaling (4.7+)
Hitch the first time an effect playsPipeline compilationUpgrade to 4.4+, pre-warm behind a loading screen

10. Checklist

  • Renderer chosen per target platform; .mobile / .web overrides reviewed
  • The look is checked on the lightest renderer that ships
  • Lighting plan written down: what is baked, what is real-time, which lights cast shadows
  • Light counts within the renderer's budget (512 clustered / 8+8 per mesh on Mobile and Compatibility)
  • AA method matches the renderer; menu hides unsupported options
  • 3D resolution scaling offered as presets (FSR 2 on Forward+, bilinear elsewhere)
  • Every SubViewport has a deliberate update mode, size, and its own AA settings
  • Draw calls, primitives, and VRAM checked with Performance monitors on target hardware
  • Graphics settings saved to user:// and re-applied on startup

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Rendering Pipeline?

Use when choosing a renderer or planning a project's look and frame budget — renderer per platform, lighting strategy and light limits, anti-aliasing, 3D resolution scaling (FSR, MetalFX), SubViewports and render targets, shader stutter, graphics settings menus, and rendering stats

Firwat Rendering Pipeline op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rendering Pipeline besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rendering Pipeline an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/jame581/GodotPrompter/tree/master/skills/rendering-pipeline an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rendering Pipeline benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rendering Pipeline benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rendering Pipeline domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rendering Pipeline gratis?

Jo. De Skill gëtt vum jame581 ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇