update tracy from 11.0 to 13.1 and fix build with tracy enabled
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="icon" href="favicon.svg">
|
||||
<title>Tracy Profiler</title>
|
||||
<style>
|
||||
body {
|
||||
@@ -89,16 +90,6 @@
|
||||
var spinnerElement = document.getElementById('spinner');
|
||||
var preloadElement = document.getElementById('preload');
|
||||
|
||||
function resizeHandler() {
|
||||
let w = Math.floor(Math.floor(window.innerWidth * window.devicePixelRatio) / window.devicePixelRatio);
|
||||
let h = Math.floor(Math.floor(window.innerHeight * window.devicePixelRatio) / window.devicePixelRatio);
|
||||
if(preloadElement.hidden === true) {
|
||||
Module.ccall('nativeResize', 'number', ['number', 'number'], [w * window.devicePixelRatio, h * window.devicePixelRatio]);
|
||||
}
|
||||
Module.canvas.style.width = w + 'px';
|
||||
Module.canvas.style.height = h + 'px';
|
||||
}
|
||||
|
||||
var Module = {
|
||||
preRun: [],
|
||||
postRun: [],
|
||||
@@ -139,7 +130,6 @@
|
||||
progressElement.hidden = true;
|
||||
preloadElement.hidden = true;
|
||||
spinnerElement.style.display = 'none';
|
||||
resizeHandler();
|
||||
}
|
||||
statusElement.innerHTML = text;
|
||||
},
|
||||
@@ -158,8 +148,6 @@
|
||||
if (text) console.error('[post-exception status] ' + text);
|
||||
};
|
||||
};
|
||||
addEventListener('resize', resizeHandler);
|
||||
resizeHandler();
|
||||
</script>
|
||||
<script async type="text/javascript" src="tracy-profiler.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user