Skip to content

Commit

Permalink
config: turn default off
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouwen committed Mar 13, 2023
1 parent 0833bf6 commit 52c9fca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import { getGPUTier } from 'detect-gpu';
import { SharedArrayBufferModes } from './enums';
let csRenderInitialized = false;
let useSharedArrayBuffer = true;
let sharedArrayBufferMode = SharedArrayBufferModes.AUTO;
let sharedArrayBufferMode = SharedArrayBufferModes.TRUE;
import { deepMerge } from './utilities';
import { Cornerstone3DConfig } from './types';
// TODO: move sharedArrayBuffer into config.
// TODO: change config into a class with methods to better control get/set
const defaultConfig = {
detectGPU: {},
rendering: {
preferSizeOverAccuracy: true,
preferSizeOverAccuracy: false,
useCPURendering: false,
useNorm16Texture: _hasNorm16TextureSupport(),
useNorm16Texture: false, // _hasNorm16TextureSupport(),
},
// cache
// ...
Expand All @@ -21,9 +21,9 @@ const defaultConfig = {
let config = {
detectGPU: {},
rendering: {
preferSizeOverAccuracy: true,
preferSizeOverAccuracy: false,
useCPURendering: false,
useNorm16Texture: _hasNorm16TextureSupport(),
useNorm16Texture: false, // _hasNorm16TextureSupport(),
},
// cache
// ...
Expand Down

0 comments on commit 52c9fca

Please sign in to comment.