Revert "add failIfMajorPerformanceCaveat setting"

This reverts commit aa77fcbdd7.
This commit is contained in:
Joshua Granick
2020-12-17 12:36:05 -08:00
parent c4993248e7
commit c43be68eab
6 changed files with 1 additions and 12 deletions

View File

@@ -287,7 +287,7 @@ class HTML5Window
premultipliedAlpha: true,
stencil: Reflect.hasField(contextAttributes, "stencil") ? contextAttributes.stencil : false,
preserveDrawingBuffer: false,
failIfMajorPerformanceCaveat: Reflect.hasField(contextAttributes, "failIfMajorPerformanceCaveat") ? contextAttributes.failIfMajorPerformanceCaveat : false,
failIfMajorPerformanceCaveat: true
};
var glContextType = ["webgl", "experimental-webgl"];

View File

@@ -48,10 +48,4 @@ typedef RenderContextAttributes =
Whether vertical-sync (VSync) is enabled
**/
@:optional var vsync:Bool;
/**
Boolean that indicates if a context will be created
if the system performance is low or if no hardware GPU is available
**/
@:optional var failIfMajorPerformanceCaveat:Bool;
}

View File

@@ -509,8 +509,6 @@ class System
attributes.x = Std.parseInt(argValue);
case "y":
attributes.y = Std.parseInt(argValue);
case "failIfMajorPerformanceCaveat":
attributes.context.failIfMajorPerformanceCaveat = __parseBool(argValue);
default:
}
}

View File

@@ -171,7 +171,6 @@ class HXProject extends Script
depthBuffer: true,
stencilBuffer: true,
colorDepth: 32,
failIfMajorPerformanceCaveat: false,
maximized: false,
minimized: false,
hidden: false,

View File

@@ -23,7 +23,6 @@ typedef WindowData =
@:optional var requireShaders:Bool;
@:optional var depthBuffer:Bool;
@:optional var stencilBuffer:Bool;
@:optional var failIfMajorPerformanceCaveat:Bool;
@:optional var title:String;
#if (js && html5)
@:optional var element:js.html.Element;

View File

@@ -60,7 +60,6 @@ import ::APP_MAIN::;
depth: ::depthBuffer::,
hardware: ::hardware::,
stencil: ::stencilBuffer::,
failIfMajorPerformanceCaveat: ::failIfMajorPerformanceCaveat::,
type: null,
vsync: ::vsync::
};