@@ -233,7 +233,6 @@ static private void createAndShowGUI(String[] args) {
233
233
234
234
handleWelcomeScreen (base );
235
235
handleCrustyDisplay ();
236
- //checkDriverBug(); // that was 2017, right?
237
236
238
237
} catch (Throwable t ) {
239
238
// Catch-all to pick up badness during startup.
@@ -290,45 +289,6 @@ static private void handleWelcomeScreen(Base base) {
290
289
}
291
290
292
291
293
- /*
294
- // Remove this code in a couple of months [fry 170211]
295
- // https://github.com/processing/processing/issues/4853
296
- // Or maybe not, if NVIDIA keeps doing this [fry 170423]
297
- // https://github.com/processing/processing/issues/4997
298
- @SuppressWarnings("SpellCheckingInspection")
299
- static private void checkDriverBug() {
300
- if (System.getProperty("os.name").contains("Windows 10")) {
301
- new Thread(() -> {
302
- try {
303
- Process p = Runtime.getRuntime().exec("powershell Get-WmiObject Win32_PnPSignedDriver| select devicename, driverversion | where {$_.devicename -like \\\"*nvidia*\\\"}");
304
- BufferedReader reader = PApplet.createReader(p.getInputStream());
305
- String line;
306
- while ((line = reader.readLine()) != null) {
307
- if (line.contains("3.7849")) {
308
- EventQueue.invokeLater(() -> Messages.showWarning("NVIDIA screwed up",
309
- "Due to an NVIDIA bug, you need to update your graphics drivers,\n" +
310
- "otherwise you won't be able to run any sketches. Update here:\n" +
311
- "http://nvidia.custhelp.com/app/answers/detail/a_id/4378\n" +
312
- "or read background about the issue at this link:\n" +
313
- "https://github.com/processing/processing/issues/4853"));
314
- } else if (line.contains("3.8165")) {
315
- EventQueue.invokeLater(() -> Messages.showWarning("NVIDIA screwed up again",
316
- "Due to an NVIDIA bug, you need to update your graphics drivers,\n" +
317
- "otherwise you won't be able to run any sketches. Update here:\n" +
318
- "http://nvidia.custhelp.com/app/answers/detail/a_id/4453/\n" +
319
- "or read background about the issue at this link:\n" +
320
- "https://github.com/processing/processing/issues/4997"));
321
- }
322
- }
323
- } catch (Exception e) {
324
- Messages.err("Problem checking NVIDIA driver", e);
325
- }
326
- }).start();
327
- }
328
- }
329
- */
330
-
331
-
332
292
/**
333
293
* Temporary workaround as we try to sort out
334
294
* https://github.com/processing/processing4/issues/231
0 commit comments