Popov72 4 年之前
父節點
當前提交
693b70f623
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/Engines/webgpuEngine.ts

+ 4 - 4
src/Engines/webgpuEngine.ts

@@ -46,7 +46,7 @@ const dbgShowShaderCode = false;
 const dbgSanityChecks = true;
 const dbgGenerateLogs = true;
 const dbgVerboseLogsForFirstFrames = true;
-const dbgVerboseLogsNumFrames = 20;
+const dbgVerboseLogsNumFrames = 10;
 const dbgShowWarningsNotImplemented = true;
 export const dbgShowDebugInliningProcess = false;
 
@@ -359,7 +359,7 @@ export class WebGPUEngine extends Engine {
                 if (dbgVerboseLogsForFirstFrames) {
                     if ((this as any)._count === undefined) {
                         (this as any)._count = 0;
-                        console.log("frame #" + (this as any)._count + " - begin");
+                        console.log("%c frame #" + (this as any)._count + " - begin", "background: #ffff00");
                     }
                 }
 
@@ -2380,12 +2380,12 @@ export class WebGPUEngine extends Engine {
 
         if (dbgVerboseLogsForFirstFrames) {
             if ((this as any)._count < dbgVerboseLogsNumFrames) {
-                console.log("frame #" + (this as any)._count + " - end");
+                console.log("%c frame #" + (this as any)._count + " - end", "background: #ffff00");
             }
             if ((this as any)._count < dbgVerboseLogsNumFrames) {
                 (this as any)._count++;
                 if ((this as any)._count !== dbgVerboseLogsNumFrames) {
-                    console.log("frame #" + (this as any)._count + " - begin");
+                    console.log("%c frame #" + (this as any)._count + " - begin", "background: #ffff00");
                     }
             }
         }