Skip to content

Commit

Permalink
nvidia optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
hitman249 committed Feb 22, 2021
1 parent 04ac7e5 commit eb8d096
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions src/src/modules/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,17 @@ export default class Command {
let driver = window.app.getDriver();

if (driver.getVersion().driver === 'nvidia') {
exported['__NV_PRIME_RENDER_OFFLOAD'] = 1;
exported['__GLX_VENDOR_LIBRARY_NAME'] = 'nvidia';
exported['__GL_SYNC_TO_VBLANK'] = 0;
exported['__GL_SHADER_DISK_CACHE_PATH'] = this.prefix.getCacheDir();
exported['__GL_SHADER_DISK_CACHE_SIZE'] = 512 * 1024 * 1024;
exported['__GL_THREADED_OPTIMIZATIONS'] = 0;
exported['__NV_PRIME_RENDER_OFFLOAD'] = 1;
exported['__GLX_VENDOR_LIBRARY_NAME'] = 'nvidia';
exported['__GL_SYNC_TO_VBLANK'] = 0;
exported['__GL_SHADER_DISK_CACHE_PATH'] = this.prefix.getCacheDir();
exported['__GL_SHADER_DISK_CACHE_SIZE'] = 512 * 1024 * 1024;
exported['__GL_THREADED_OPTIMIZATIONS'] = 0;
exported['__GL_SHARPEN_IGNORE_FILM_GRAIN'] = 0;
exported['__GL_LOG_MAX_ANISO'] = 0;
exported['__GL_ALLOW_FXAA_USAGE'] = 0;
exported['__GL_SHARPEN_ENABLE'] = 0;
exported['__GL_SHARPEN_VALUE'] = 0;
} else {
exported['vblank_mode'] = 0;
exported['mesa_glthread'] = 'true';
Expand Down
2 changes: 1 addition & 1 deletion src/src/modules/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fs = require('fs');

export default class Update {

version = '1.4.45';
version = '1.4.46';

/**
* @type {string}
Expand Down

0 comments on commit eb8d096

Please sign in to comment.