MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / normalizePathForComparison

Function normalizePathForComparison

renderer.js:1306–1324  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

1304 }
1305 }).finally(() => {
1306 const endTime = Date.now();
1307 console.log(`[DEBUG] loadModel: Finished loading ${filePath}. Took ${endTime - startTime}ms.`);
1308 });
1309 } catch (error) {
1310 console.error('loadModel error:', error);
1311 throw error;
1312 }
1313}
1314
1315// Make loadModel available globally
1316window.loadModel = loadModel;
1317
1318// Add these variables at the top
1319let totalThumbnailsToGenerate = 0;
1320let generatedThumbnailsCount = 0;
1321
1322// Add WebGL context management variables
1323let sharedScene = null;
1324let sharedCamera = null;
1325let contextUseCount = 0;
1326const MAX_CONTEXT_USES = 20; // Reset context after this many uses
1327const MAX_CONTEXT_REUSE_COUNT = 100; // Add this missing constant

Callers 15

getGridModelDedupeKeyFunction · 0.85
updateModelElementFunction · 0.85
showModelDetailsFunction · 0.85
renderer.jsFile · 0.85
loadAndRenderModelsFunction · 0.85
scanAndRenderDirectoryFunction · 0.85
renderModelToPNGFunction · 0.85
addToSelectedModelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected