A read-only HTTP API exposing event metadata, schedules, speakers, workshops, partners, and brand info for all GitNation conferences.
Base URL: https://ems.gitnation.org/
All endpoints described in this document are relative to this base.
| const FPSMeter = document.createElement("div"); | |
| FPSMeter.id = "fpsLabel"; | |
| FPSMeter.style.fontSize = "24px"; | |
| FPSMeter.style.position = "absolute"; | |
| FPSMeter.style.right = "0"; | |
| FPSMeter.style.top = "0"; | |
| FPSMeter.style.backgroundColor = "#000"; | |
| FPSMeter.style.color = "#fff"; | |
| FPSMeter.style.zIndex = "99999"; |
| // TODO check for instanced, should we exclude them from count? | |
| // TODO check for invisible | |
| let verticesCounted = 0; | |
| let indicesCounted = 0; | |
| export function totalVertices(scene: Scene): { vertices: number; indices: number; } { | |
| verticesCounted = 0; | |
| scene.meshes.forEach((mesh) => { | |
| if (mesh) { |