Idle gpu
This commit is contained in:
@@ -430,6 +430,8 @@ class RenderPathDeferred {
|
||||
@:access(iron.RenderPath)
|
||||
public static function commands() {
|
||||
|
||||
if (arm.UITrait.inst.redraw()) { //
|
||||
|
||||
// Paint
|
||||
if (arm.UITrait.inst.depthDirty()) {
|
||||
path.setTarget("texpaint");
|
||||
@@ -864,12 +866,16 @@ class RenderPathDeferred {
|
||||
}
|
||||
#end
|
||||
|
||||
} // redraw
|
||||
|
||||
#if ((rp_supersampling == 4) || (rp_rendercapture))
|
||||
var framebuffer = "buf";
|
||||
#else
|
||||
var framebuffer = "";
|
||||
#end
|
||||
|
||||
if (arm.UITrait.inst.redraw()) { //
|
||||
|
||||
#if ((rp_antialiasing == "Off") || (rp_antialiasing == "FXAA"))
|
||||
{
|
||||
path.setTarget(framebuffer);
|
||||
@@ -905,6 +911,8 @@ class RenderPathDeferred {
|
||||
}
|
||||
#end
|
||||
|
||||
} // redraw
|
||||
|
||||
#if ((rp_antialiasing == "SMAA") || (rp_antialiasing == "TAA"))
|
||||
{
|
||||
path.setTarget("bufa");
|
||||
@@ -966,6 +974,8 @@ class RenderPathDeferred {
|
||||
path.drawShader("shader_datas/copy_pass/copy_pass");
|
||||
}
|
||||
#end
|
||||
|
||||
arm.UITrait.inst.dirty = false; //
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user