Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions java/src/processing/mode/java/runner/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected StringList getMachineParams() {
//params.append("-Dcom.apple.mrj.application.apple.menu.about.name=" +
// build.getSketchClassName());

if ("WEBGPU".equals(build.getSketchRenderer())) {
if (PConstants.WEBGPU.equals(build.getSketchRenderer())) {
params.append("-XstartOnFirstThread");
}
}
Expand Down Expand Up @@ -515,10 +515,13 @@ protected StringList getSketchParams(boolean present, String[] args) {
params.append(PApplet.ARGS_UI_SCALE + "=" + uiScale);
}
*/

// TODO: excise AWT to make webgpu work properly
params.append(PApplet.ARGS_DISABLE_AWT);

// Only disable AWT for the WebGPU renderer, which uses GLFW and
// cannot coexist with AWT. All other renderers still depend on AWT
// for display detection, displayWidth/displayHeight, pixelDensity(), etc.
if (PConstants.WEBGPU.equals(build.getSketchRenderer())) {
params.append(PApplet.ARGS_DISABLE_AWT);
}

params.append(build.getSketchClassName());
}
// Add command-line arguments to be given to the sketch itself
Expand Down