Spaces:
Running
Running
File size: 700 Bytes
a279d3a 551d60d f316429 d828ac0 c75754c a2241b7 a319f30 41fe030 594b86d aaffc16 a319f30 538ade1 8288691 538ade1 592c29d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
// wgpu-config.js
export const config = {
glyphsAcrossTexture: 16,
glyphWidth: 32,
glyphHeight: 40,
maxGlyphs: 100,
vertsPerGlyph: 6,
floatsPerVertex: 8,
uniformBufferSize: 64,
floatsInUniformBuffer: 16,
matrixSize: 16,
vertexMultiplier: 4,
canvas: {
width: 512,
height: 256
},
context: {
font: '32px monospace',
textBaseline: 'middle',
textAlign: 'center',
fillStyle: 'white'
},
render: {
zNear: 0.001,
zFar: 50
},
timing: {
fixedDeltaTime: 1 / 60,
maxFrameTime: 0.25,
targetFps: 60,
frameDuration: 1000 / 60
},
maxFPS: 60
};
|