Re-enable measuring
This commit is contained in:
parent
3d1d01690d
commit
fe6b3e258b
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
// Discard first frame time as it's normal to take longer
|
||||
frameTimes.shift();
|
||||
|
||||
const medianTime = 100;//frameTimes.sort((a, b) => a - b)[Math.floor(frameTimes.length / 2)];
|
||||
const medianTime = frameTimes.sort((a, b) => a - b)[Math.floor(frameTimes.length / 2)];
|
||||
if (medianTime > SLOW_CANVAS_RENDER_THRESHOLD) {
|
||||
if (this._configHelper.config.rendererType === 'auto') {
|
||||
this._storageService.store(SUGGESTED_RENDERER_TYPE, 'dom', StorageScope.GLOBAL, StorageTarget.MACHINE);
|
||||
|
|
Loading…
Reference in a new issue