Re-enable measuring

This commit is contained in:
Daniel Imms 2021-03-25 10:04:23 -07:00
parent 3d1d01690d
commit fe6b3e258b
No known key found for this signature in database
GPG key ID: D12BE8272D6284CC

View file

@ -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);