diff --git a/.github/workflows/testes.yml b/.github/workflows/testes.yml index c95e0c5..bacf8eb 100644 --- a/.github/workflows/testes.yml +++ b/.github/workflows/testes.yml @@ -46,10 +46,25 @@ jobs: run: ruff check . - name: Formatação run: ruff format --check . + - name: Contratos tipados de perfil, render e telemetria + run: python -m mypy - name: Testes run: python -m pytest -q -ra --cov=dobramundo --cov-branch --cov-report=term-missing:skip-covered --cov-report=xml - name: Self-test run: python -m dobramundo --self-test 60 + - name: Inventário do cartucho e regressão visual + if: matrix.python-version == '3.12' + run: | + python tools/build_cartridge.py --so-montar + python tools/verify_cartridge.py --stage build/cartucho --out build/cartucho-render.json + python tools/capture_release.py --out build/capturas --reference + python tools/visual_regression.py --reference docs/visual-reference/v170 --actual build/capturas + - name: Capturas de regressão + if: matrix.python-version == '3.12' + uses: actions/upload-artifact@v4 + with: + name: capturas-${{ github.sha }} + path: build/capturas/*.png - name: Cobertura por comportamento (sem meta artificial de percentual) uses: actions/upload-artifact@v4 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 713fe92..f680ce4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Histórico do Dobramundo +## 1.7.0 — 2026-10-25 + +- A transformação de cada cidade continua entre voos. A primeira execução apresenta o piloto, a história com botão Pular e a vila; os primeiros voos oferecem apoio, respeitando uma escolha explícita. +- Manaus e Petrolina abertas desde o início; recuperação pelo voo ativo, acelerada pelas coletas, e transição visual desde o começo do percurso. Margens industriais reforçadas com infraestrutura e menos vegetação dominante. +- Cursor dos pés alcança os quatro cantos a partir de uma zona confortável. A mira à frente atenua perto das bordas; o indicador do TSDK atual acompanha a seleção efetiva, com proteção contra leitura ausente. +- Opções divididas em quatro grupos, textos com mais contraste, piloto mais visível no avião e mapa com pigmento de aquarela. Avisos de recompensa saem do horizonte do voo. +- Preparo do cenário antes de iniciar a partida, solo com amostragem suave, avisos de ameaças nas bordas da ampliação e orçamento compartilhado de superfícies temporárias. +- Proteção contra duas instâncias usando os mesmos dados, migração explícita de perfis e preservação de arquivos de versões futuras. Concluir, fechar e repetir uma tela de resultado não duplica recompensas. +- Pacotes levam as imagens necessárias ao jogo, sem duplicar originais de edição e variantes preparadas. Montagem da release, inventário, comparações visuais, medição da leitura efetivamente usada e verificação do cartucho ficam versionados. +- Documentação de uso simplificada; notas das sprints anteriores reunidas no histórico. Detalhes e evidências em [Entrega 1.7](docs/ENTREGA_1_7.md). + ## 1.6.0 — 2026-10-25 - Perfis locais independentes com cartões anônimos, preservação do save legado e recuperação a partir de cópias anteriores; falhas de leitura bloqueiam gravação destrutiva. @@ -22,15 +33,15 @@ O editor confirma escolhas mais devagar e exige sair do alvo antes de repetir. O controle de cabeça tolera melhor a perda de um marco facial, oferece calibração dos quatro alcances confortáveis e interrompe o cursor quando a leitura envelhece. Alto contraste também amplia avião, objetos e passagens, com escala ajustável. A vila começa industrial e colorida, tem moradores e pedidos persistentes e evolui para jardins, energia e alimentos integrados às construções. -As margens do voo mudam gradualmente, o mapa tem rota e arte própria, o hangar mostra três modelos por página e a história usa quatro cenários ilustrados. Veja [escopo, operação e limites da sprint 3](docs/SPRINT3.md). Os testes de renderização e controle não substituem ensaios presenciais com webcam, projeção e crianças. +As margens do voo mudam gradualmente, o mapa tem rota e arte própria, o hangar mostra três modelos por página e a história usa quatro cenários ilustrados. Veja [escopo, operação e limites da sprint 3](docs/historico/SPRINT3.md). Os testes de renderização e controle não substituem ensaios presenciais com webcam, projeção e crianças. Os artefatos dessa sprint pertencem à publicação histórica correspondente. Consulte a release mais recente para os downloads atuais. ## Entrega anterior — sprint 2: aquarela em movimento -Água e terreno avançam em perspectiva, e árvores e construções das margens passam pelo avião: o voo não fica sobre uma pintura parada. Manaus e Petrolina têm três estágios, com arte regional em aquarela, 11 aviões pintados, piloto personalizável, resíduos circulares e benefícios hexagonais. A vila começa colorida e poluída e ganha energia limpa, hortas e natureza integrada às construções. O primeiro voo oferece treino visual opcional; as compras mostram o terreno antes e a obra depois. Veja [implementação, capturas e validação](docs/DIRECAO_AQUARELA.md) e os [prompts da sprint](assets/watercolor/generation-sprint2.json). +Água e terreno avançam em perspectiva, e árvores e construções das margens passam pelo avião: o voo não fica sobre uma pintura parada. Manaus e Petrolina têm três estágios, com arte regional em aquarela, 11 aviões pintados, piloto personalizável, resíduos circulares e benefícios hexagonais. A vila começa colorida e poluída e ganha energia limpa, hortas e natureza integrada às construções. O primeiro voo oferece treino visual opcional; as compras mostram o terreno antes e a obra depois. Veja [implementação, capturas e validação](docs/historico/DIRECAO_AQUARELA.md) e os [prompts da sprint](assets/watercolor/generation-sprint2.json). -Baixe o executável e a galeria com gravações reais na [prévia da sprint 2](https://github.com/lapsin-maker/dobramundo/releases/tag/sprint2-aquarela-2026-10-25). A [documentação da entrega](docs/ENTREGA_SPRINT2.md) explica a instalação, o perfil separado e a verificação dos arquivos. Esta prévia mantém a versão interna 1.4.0 e é identificada pela tag da sprint. +Baixe o executável e a galeria com gravações reais na [prévia da sprint 2](https://github.com/lapsin-maker/dobramundo/releases/tag/sprint2-aquarela-2026-10-25). A [documentação da entrega](docs/historico/ENTREGA_SPRINT2.md) explica a instalação, o perfil separado e a verificação dos arquivos. Esta prévia mantém a versão interna 1.4.0 e é identificada pela tag da sprint. ## Histórico — versão 1.4 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index edb659f..d383740 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,6 +9,8 @@ O pacote declara Python >=3.8; a matriz de CI da entrega cobre 3.8/3.12 quando e ```text python -m pytest -q ruff check . +ruff format --check . +python -m mypy python -m dobramundo --self-test 1200 --exigir-camera ``` @@ -31,4 +33,6 @@ O lint ativo exclui `tools/legado`. Não formate todo o repositório dentro de u Mantenha originais e procedência. O runtime usa PNGs locais, sem geração por IA durante o jogo. Não converter formatos sem testar o suporte no console. Pintado → papel → lógico é uma cadeia de fallback, não código duplicado para apagar automaticamente. -Confira `__version__`, self-test do executável, check/build do TSDK e hashes dos pacotes antes da release. A versão do código é 1.6.0; isso, por si só, não confirma build nem publicação. Registre o commit do código usado no build e substitua apenas os campos explicitamente pendentes em `docs/ENTREGA_1_6.md` após produzir evidência. Preserve releases históricas, branches compartilhadas e histórico Git sem limpeza destrutiva não solicitada. +Confira `__version__`, self-test do executável, check/build do TSDK e hashes dos pacotes antes da release. Use `tools/runtime_assets.py` para selecionar os arquivos do jogo e `tools/package_release.py` para fechar a distribuição a partir de CI aprovada; o script verifica commits, árvores, detector e integridade. Uma mudança de número no código não confirma publicação. Preserve releases históricas e branches compartilhadas; remova branches concluídas somente após conferir seus commits e a autorização. + +O mypy verifica inicialmente modelo/migração, contratos do desenho e telemetria. Amplie esse limite gradualmente; não use `Any` para esconder contratos incorretos. Referências visuais de menus ficam em `docs/visual-reference/`; atualizá-las exige abrir as imagens novas e justificar a mudança, além de rodar `tools/visual_regression.py`. diff --git a/Dobramundo.spec b/Dobramundo.spec index bcf2a74..c49c30e 100644 --- a/Dobramundo.spec +++ b/Dobramundo.spec @@ -6,20 +6,22 @@ # DOBRA_ONEFILE=1 pyinstaller --noconfirm --clean Dobramundo.spec (arquivo único) # DOBRA_CONSOLE=1 ... mantém a janela de console (depuração) # -# Toda a pasta assets/ entra no pacote (sprites, sons, modelo de pose). +# Inventário de runtime sem fontes redundantes de edição. import os +import sys from pathlib import Path ROOT = Path(SPECPATH).resolve() +sys.path.insert(0, str(ROOT)) +from tools.runtime_assets import runtime_assets ONEFILE = os.environ.get("DOBRA_ONEFILE") == "1" CONSOLE = os.environ.get("DOBRA_CONSOLE") == "1" ASSET_EXTS = {".png", ".json", ".ogg", ".wav", ".task", ".ico", ".ttf", ".txt"} # .ttf/.txt: fontes e licenças OFL datas = [] -for file in sorted((ROOT / "assets").rglob("*")): - if file.is_file() and file.suffix.lower() in ASSET_EXTS: - datas.append((str(file), str(Path("assets") / file.parent.relative_to(ROOT / "assets")))) +for file, relative in runtime_assets(ROOT): + datas.append((str(file), str(Path("assets") / relative.parent))) datas.append((str(ROOT / "LICENSE"), ".")) # licença CC BY 4.0 junto do executável # MediaPipe: o hook padrão não leva a biblioteca nativa do MediaPipe Tasks (mediapipe/tasks/c). diff --git a/README.md b/README.md index f9d4254..0a2b9be 100644 --- a/README.md +++ b/README.md @@ -2,65 +2,51 @@ ![Dobramundo](docs/logo.jpg) -**Dobre o papel, voe e transforme o mundo.** Um exergame em papel e aquarela: a criança pilota com o corpo um avião reciclado pela Amazônia e pela Caatinga e constrói uma vila solarpunk. +**Dobre o papel, voe e transforme o mundo.** Um jogo em papel e aquarela para crianças de 6 a 10 anos: pilote com o corpo um avião reciclado, cuide dos biomas brasileiros e ajude sua vila a florescer. [![Testes](https://github.com/lapsin-maker/dobramundo/actions/workflows/testes.yml/badge.svg)](https://github.com/lapsin-maker/dobramundo/actions/workflows/testes.yml) +[![Versão](https://img.shields.io/github/v/release/lapsin-maker/dobramundo)](https://github.com/lapsin-maker/dobramundo/releases/latest) [![Licença CC BY 4.0](https://img.shields.io/badge/licença-CC_BY_4.0-blue)](LICENSE) -[![Release](https://img.shields.io/github/v/release/lapsin-maker/dobramundo)](https://github.com/lapsin-maker/dobramundo/releases/latest) -![Código testado em Python 3.8 e 3.12](https://img.shields.io/badge/testes-Python_3.8_%7C_3.12-blue) - -| Amazônia · Manaus | Caatinga · Petrolina | -|---|---| -| ![Voo em Manaus](docs/screenshots/v160-manaus.png) | ![Voo em Petrolina](docs/screenshots/v160-petrolina.png) | ## Baixar e jogar -1. Abra a [última versão](https://github.com/lapsin-maker/dobramundo/releases/latest) e baixe o pacote **Windows** ou **Linux**. -2. Extraia **toda** a pasta; mantenha o executável junto da pasta `_internal`. -3. No Windows, abra **Jogar-Dobramundo.bat**; no Linux, instale os runtimes `libegl1` e `libgles2` (Debian/Ubuntu), extraia o `.tar.gz` e execute `./Dobramundo/Dobramundo`. Não é necessário instalar Python. A versão 1.6 mantém o perfil principal legado e oferece slots locais independentes para outros pilotos. - -A release também oferece o cartucho `.ttea`, a galeria, o manifesto de build e hashes SHA-256. [Entrega 1.6.0 e resultados](docs/ENTREGA_1_6.md) · [Histórico](CHANGELOG.md). - -Se jogou a release 1.5 pelo seu lançador, use **Continuar-perfil-1.5.bat** para retomar aquela pasta de progresso. O atalho usa `%LOCALAPPDATA%\Dobramundo-1.5.0`, sem copiar ou apagar dados. O lançador padrão usa `%APPDATA%\Dobramundo`; os slots da tela **Trocar piloto** pertencem à pasta escolhida. +1. Na [página de downloads](https://github.com/lapsin-maker/dobramundo/releases/latest), escolha **Windows** ou **Linux**. +2. Extraia toda a pasta. Mantenha o jogo junto da pasta `_internal`, que contém os arquivos necessários. +3. No Windows, abra **Jogar-Dobramundo.bat**. No Linux, instale `libegl1` e `libgles2` pelo gerenciador de pacotes e abra `Dobramundo`. Não precisa instalar Python. -## O jogo +Para o console T-TEA, baixe o arquivo **.ttea** e instale pelo console. Os arquivos com verificações de integridade são opcionais para quem só quer jogar. -Projetado para crianças de 6 a 10 anos, com uso mediado e opções de controle e apresentação ajustáveis. A adequação e o conforto precisam de aceite presencial; este texto não afirma eficácia clínica. A primeira personalização parte de um boneco neutro e inclui pele, cabelos, olhos, roupa, óculos, aparelho auditivo, cadeira de rodas e andador. +Já jogou a versão 1.5 pelo lançador? O atalho **Continuar-perfil-1.5.bat** abre aquela pasta de progresso. Os outros pilotos ficam em **Trocar piloto**, com até oito perfis locais, sem pedir nomes reais. -O ciclo é **piloto → vila → mapa → voo → resultado → obras e hangar**. A vila começa colorida, industrial e poluída; a coleta e as obras integram natureza, água, energia e alimentos. Manaus e Petrolina mantêm referências de seus biomas e construções nos três estágios. +## Uma aventura que continua -Durante o voo há resíduos coletáveis, obstáculos, benefícios e metas curtas. As margens e o chão avançam continuamente. As peças do avião preservam a progressão e as exigências da terceira estrela; conforto e calibração estão disponíveis desde o começo. +Crie seu piloto, acompanhe a história do jornal e entre na vila. A história pode ser pulada e vista novamente. A aparência começa neutra, pronta para escolher pele, cabelos, olhos, roupa, óculos, aparelho auditivo, cadeira de rodas ou andador. -Detalhes de fases, ODS, regras e referências: [guia do jogo](docs/GUIA_DO_JOGO.md) · [GDD v10](docs/GDD_Dobramundo_v10.pdf). +Na vila, você pode **voar**, entrar no **hangar**, mudar o **piloto** e **cuidar da comunidade**. Ela começa colorida, industrial e poluída; as obras trazem água limpa, natureza, energia e alimentos. Manaus e Petrolina estão disponíveis desde o começo, para visitar a Amazônia e a Caatinga na ordem que preferir. -## Controles e superfícies +A transformação avança durante o voo ativo; coletar resíduos acelera a recuperação e traz recursos para construir. O avanço fica guardado entre os voos. Uma cidade recuperada continua solarpunk — um lugar em que pessoas, construções e natureza convivem. Voar de novo começa outra viagem, sem apagar essa transformação nem duplicar recompensas. -- **Corpo:** pés, tronco, mão esquerda, mão direita, duas mãos ou cabeça. No computador, webcam com MediaPipe; no T-TEA, rastreamento do console. -- **Menus:** mirar e permanecer sobre um alvo; o treino ensina mirar, esperar e retirar. Editor de aparência com 3 segundos por padrão, ajustável. -- **Supervisor:** mouse e teclado, setas/WASD, pausa com Esc/P; recalibração e encerramento parcial no menu de pausa. -- **Saída:** chão, mesa, parede ou monitor; rotação e espelho. Pés na projeção exigem calibrar seus quatro cantos. +Nos primeiros voos, o apoio oferece mais vidas e proteção. Você pode mudar essa escolha. Também há **Explorar**, sem eliminação por batidas, e voos com duração combinada. -Em **Opções → Preparar**, escolha exploração sem eliminação, duração (livre ou 120/180/240 s), assistência previsível, contraste, treino e calibração. O editor usa 3 segundos por padrão, ajustável. Calibre o neutro e os quatro alcances confortáveis com confirmação do supervisor. A ampliação no alto contraste vai de 1 a 1,6×. +## Jogar com o corpo -## Acessibilidade e privacidade +- Escolha **pés, tronco em pé, tronco sentado, mão direita, mão esquerda ou cabeça**. +- Calibre uma posição confortável e os alcances do movimento. +- Nos menus, mire um botão, espere a confirmação e retire o cursor. A espera pode ser ajustada. +- O adulto pode ajudar com mouse e teclado; **Esc/P** pausa o voo. +- Jogue no monitor ou projete na parede, na mesa ou no chão. Para pés na projeção, calibre os quatro cantos. -O jogo oferece permanência ajustável, cores e formas distintas, movimento reduzido, volumes independentes, pausa por perda de rastreamento e calibração por segmento. Ajustes de controle não exigem compras na vila. +As opções separam controles, imagem, conforto e som. Alto contraste, tamanho dos elementos, movimento reduzido e volumes podem ser ajustados desde o início. Não é preciso comprar melhorias para acessar esses recursos. -A câmera é processada localmente; o jogo não grava vídeo nem envia imagens para serviços de IA. O diagnóstico exporta métricas técnicas. As ilustrações de IA são arquivos já incluídos no pacote. +## Câmera e privacidade -Testes automatizados não substituem o ensaio da pessoa com a câmera, da projeção a 2–3 m e do conforto em sessão mediada. Os resultados de CI, builds e medições estão nas [notas da entrega](docs/ENTREGA_1_6.md); o [aceite presencial](docs/VALIDACAO_PRESENCIAL.md) continua pendente. +A câmera funciona no próprio computador. O jogo não grava vídeo nem envia imagens para serviços de IA. As ilustrações já vêm incluídas no download. -## Console T-TEA - -O cartucho usa a câmera e o rastreamento do console, sem incluir MediaPipe/OpenCV próprios. O SDK oficial instalado exige **Python 3.14** para montar o cartucho; o código portável também é testado em **Python 3.8/3.12** para manter compatibilidade de linguagem. - -```powershell -python tools/build_cartridge.py --tsdk CAMINHO_DO_TSDK -``` +A experiência deve ser acompanhada e ajustada à pessoa. Testes no computador não substituem observar conforto, alcance e leitura da projeção a 2–3 metros. [Orientações de uso](docs/GUIA_DO_JOGO.md) · [Roteiro de verificação presencial](docs/VALIDACAO_PRESENCIAL.md). -O check e a construção não equivalem a teste no console físico. [Arquitetura](docs/arquitetura.md). +## Para desenvolver -## Desenvolvimento +O jogo usa Python e pygame; a webcam usa MediaPipe e OpenCV. O console fornece seu próprio rastreamento. [Instalação e contribuição](CONTRIBUTING.md) · [Arquitetura](docs/arquitetura.md) · [Ferramentas e testes](tools/README.md). ```powershell python -m venv .venv @@ -68,26 +54,12 @@ python -m venv .venv .venv/Scripts/python -m dobramundo ``` -Para webcam, instale as dependências opcionais descritas em [CONTRIBUTING.md](CONTRIBUTING.md). O build Windows utiliza Python 3.12 e `constraints-build.txt`. - -```powershell -python -m pytest -q -ruff check . -ruff format --check . -python -m dobramundo --self-test 1200 --exigir-camera -python tools/benchmark_runtime.py --out build/benchmark --screenshots -python tools/benchmark_camera.py --help -python tools/check_routes.py --help -``` - -O self-test percorre cenas/fases e carrega o detector de pose; **não abre a webcam**. A medição de câmera é uma ferramenta separada e explícita. `tools/legado` não faz parte do lint ativo. A formatação global foi isolada em commit próprio e agora é verificada na CI. +As instruções de webcam, geração de pacotes e TSDK estão na documentação técnica. Os testes automáticos do jogo não abrem a webcam; as ferramentas que a utilizam são explícitas. -Executável: `build_windows.bat` / `build_linux.sh`, ou `python -m PyInstaller --noconfirm Dobramundo.spec`. Os geradores procedurais são fallback e não recriam a arte de IA. [Ferramentas](tools/README.md) · [Arquitetura](docs/arquitetura.md) · [Análise consolidada e prioridades](docs/ANALISE_CONSOLIDADA.md). +[Novidades e verificação da versão 1.7](docs/ENTREGA_1_7.md) · [Documentação](docs/README.md) · [Histórico de versões](CHANGELOG.md) · [GDD](docs/GDD_Dobramundo_v10.pdf). -## Equipe, créditos e licença +## Equipe e licença **Liga de Psiquiatria e Neurociências — CENSUPEG**, 3ª ExerGame JAM LARVA/UDESC, 2026. João Pedro Turnes (capitão), Isabella Cordeiro Sonza, Gerciane Larice da Silva Barros e Luiz Felipe Santana Tomio. -Python, Pygame, OpenCV e MediaPipe; captura adaptada do T-TEA 2.0. Programação com apoio de IA generativa; arte aquarelada gerada por IA, com [créditos e procedência](assets/watercolor/CREDITOS.txt). Fontes, modelo de pose e bibliotecas mantêm suas licenças próprias. - -Código e conteúdo autoral do jogo: **[CC BY 4.0](LICENSE)**. [Créditos, referências e detalhes das licenças](docs/GUIA_DO_JOGO.md#créditos). +Programação com apoio de IA generativa e arte aquarelada gerada por IA. [Créditos das imagens](assets/watercolor/CREDITOS.txt). Fontes, modelo de pose e bibliotecas mantêm suas próprias licenças. Código e conteúdo autoral do jogo: **[CC BY 4.0](LICENSE)**. diff --git a/assets/watercolor/CREDITOS.txt b/assets/watercolor/CREDITOS.txt index 9b0a7d6..cb5e34f 100644 --- a/assets/watercolor/CREDITOS.txt +++ b/assets/watercolor/CREDITOS.txt @@ -21,3 +21,9 @@ de cor/estampa, projeta água/solo e aproxima as margens. Papel, cabelo e pele mantêm o pigmento da arte. Há desenhos procedurais de reserva quando faltam assets e pictogramas nativos. Nenhuma geração ou chamada de rede ocorre no jogo. A lógica de colisão e o controle corporal seguem independentes das ilustrações. + +Versão 1.7: map_pigment_v17.png foi criado pela ferramenta integrada image_gen +como textura abstrata de pigmento e papel. O mapa usa silhueta, regiões e +destinos definidos pelo código; a imagem não é uma fonte geográfica. +Prompt completo e registro: generation_v17_map.json. A variante de runtime é +preparada em tools/prepare_assets.py; a fonte original permanece neste diretório. diff --git a/assets/watercolor/generation_v17_map.json b/assets/watercolor/generation_v17_map.json new file mode 100644 index 0000000..850836e --- /dev/null +++ b/assets/watercolor/generation_v17_map.json @@ -0,0 +1,9 @@ +{ + "asset": "map_pigment_v17.png", + "tool": "built-in image_gen", + "intent": "Watercolor pigment texture; clipped to code-defined geography, never a map source", + "prompt": "Use case: illustration-story. Asset type: square watercolor pigment texture for a children's game map of Brazilian biomes, to be clipped and colorized by game code. Create ONE seamless-looking square sheet completely filled with delicate handcrafted watercolor on warm off-white cold-pressed paper. Rich organic watery blooms, granulating pigments, gentle uneven brush edges and translucent layered washes, sophisticated storybook watercolor matching a paper-airplane ecological adventure. Mostly neutral warm ivory with softly mottled pale blue, pale gold and pale moss pigment variation; use moderately visible natural paper fibers and uneven pigment density, enough to read after color tint. The artwork must fill the whole canvas edge to edge. This is a texture, NOT a map: no land silhouette, no coast, no letters, no icons, no borders, no drop shadow, no objects, no recognizable repeating circles, no vector shapes, no UI. Balanced light midtones, no harsh black or white patches. Native 1024 square or higher.", + "date": "2026-10-25", + "integration": "Dobramundo 1.7", + "license": "Project CC BY 4.0; see CREDITOS.txt" +} diff --git a/assets/watercolor/map_pigment_v17.png b/assets/watercolor/map_pigment_v17.png new file mode 100644 index 0000000..332b7c4 Binary files /dev/null and b/assets/watercolor/map_pigment_v17.png differ diff --git a/assets/watercolor_prepared/asset_catalog.json b/assets/watercolor_prepared/asset_catalog.json index 13312f5..1bad2b5 100644 --- a/assets/watercolor_prepared/asset_catalog.json +++ b/assets/watercolor_prepared/asset_catalog.json @@ -20,6 +20,10 @@ { "file": "generation.json", "sha256": "7a889ef29780c7940d50c924152e354b751f5c2066bd434ce7ac4fe13e702578" + }, + { + "file": "generation_v17_map.json", + "sha256": "aa8b41e6e475620060cfec8b1ac1f0b999faf496c0eeedf0e514b493c3c2917c" } ], "method": "project-integrated image generation; local metadata is recorded, but is not a pixel-level source map" @@ -54,6 +58,10 @@ 1132, 650 ], + "map_pigment_v17": [ + 768, + 768 + ], "planes_flight_a": [ 768, 512 @@ -81,6 +89,58 @@ "planes_menu_c": [ 768, 512 + ], + "story_city": [ + 1100, + 650 + ], + "story_fold": [ + 1100, + 650 + ], + "story_launch": [ + 1100, + 650 + ], + "story_newspaper": [ + 1100, + 650 + ], + "travel_amazonia": [ + 1100, + 650 + ], + "travel_caatinga": [ + 1100, + 650 + ], + "village_clean": [ + 1100, + 650 + ], + "village_final": [ + 1100, + 650 + ], + "village_industrial_v3": [ + 1100, + 650 + ], + "village_intermediate": [ + 1100, + 650 + ], + "village_start": [ + 1100, + 650 + ], + "village_start_v2": [ + 1100, + 650 + ], + "village_transition_v3": [ + 1100, + 650 ] }, "backdrop_target": [ @@ -323,6 +383,28 @@ "use": "collectibles and power-ups" } }, + { + "file": "map_pigment_v17.png", + "sha256": "4fe0bd1711f5a764e890a2a424c01557908263fd7d442e8fa102605785c87231", + "dimensions": [ + 1254, + 1254 + ], + "source_bytes": 3421058, + "alpha_bounds": null, + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/map_pigment_v17.png", + "dimensions": [ + 768, + 768 + ], + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", + "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", + "sha256": "9aee4c7946eac65647afa6a8d55924ccac30b720e322643725c45ed85f7fb708", + "bytes": 1110998 + } + }, { "file": "obstacles_refined.png", "sha256": "de3929f79a87144fd414bbd1da6dfa5584ab7ca52f096a265e3135034c173bb4", @@ -475,7 +557,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "bf6f242e6422a6f7771df0ee7266037c3db39d8870b804650d343ed586173688", "bytes": 491210 @@ -509,7 +591,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "a3b288864a3ae2cc8ba836046bb915f88082378586e15094783130bd4e721718", "bytes": 479609 @@ -543,7 +625,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "0f68853797723409dc569b53036edd23f69be69f79df4d6583bcdddd645d52f9", "bytes": 489038 @@ -577,7 +659,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "2c8e0ceee783655c6f7c6d0d308e370f7941c17fe35f0341ea9d0cf7d69c4027", "bytes": 451095 @@ -611,7 +693,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "812dc2746b003467bcfd7db25172f126bc9a46019eda2233bcff857c990240d2", "bytes": 534877 @@ -645,7 +727,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "2d567cc624db593f90bf00e339089dbeafe967a008fc83a20b11b33400941f5a", "bytes": 506630 @@ -679,7 +761,7 @@ 768, 512 ], - "pivot": "atlas cells preserve row-major order; cell pivot handled by runtime cropper", + "pivot": "atlas cells preserve row-major order; pivot handled by runtime cropper", "use": "aircraft atlas; 384×256 px cells, scaled from 768×512 originals", "sha256": "b37612b4146c0eba4e48a09396accdd32f3c8fb8e8c95ffb5988bdfc668d5f9b", "bytes": 496830 @@ -694,7 +776,18 @@ ], "source_bytes": 3328924, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/story_city.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "3ba47f3bd16fb41f695478f53dd13772ad5be7907a7da06bd9f32eb1954ea4de", + "bytes": 1438940 + } }, { "file": "story_fold.png", @@ -705,7 +798,18 @@ ], "source_bytes": 2731740, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/story_fold.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "93f86ce2e81dc2dc5dfafafadad8aeaa99cadbb1eef1071279c525296af73dda", + "bytes": 1225833 + } }, { "file": "story_launch.png", @@ -716,7 +820,18 @@ ], "source_bytes": 2928390, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/story_launch.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "3e546f794a6d489beebc0378a5585beb80149dc80787810f7465b3a30162f04b", + "bytes": 1291179 + } }, { "file": "story_newspaper.png", @@ -727,7 +842,18 @@ ], "source_bytes": 3288084, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/story_newspaper.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "50b50d05a9162753b851109cd686ae1352a3026c528373c40f9cfc08cbb0f82b", + "bytes": 1423275 + } }, { "file": "terrain_tiles.png", @@ -774,7 +900,18 @@ ], "source_bytes": 3101371, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/travel_amazonia.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "1dae8d62d32f3971663aef69bb7493e42e3017d8aa81d1207137aa5c66f4bdfc", + "bytes": 1328005 + } }, { "file": "travel_caatinga.png", @@ -785,7 +922,18 @@ ], "source_bytes": 3401828, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/travel_caatinga.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "49f5bc28c18ac906d31da3376cb4e86c483d71bd86ddcff615ca090004d22af4", + "bytes": 1456693 + } }, { "file": "village_clean.png", @@ -796,7 +944,18 @@ ], "source_bytes": 3095653, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_clean.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "a03d495fcb1bde9e8b228cf066df900960d6ea5a6fd74fcc6ad06ea1cbb38cbc", + "bytes": 1349110 + } }, { "file": "village_final.png", @@ -807,7 +966,18 @@ ], "source_bytes": 3329833, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_final.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "1cd41cd5446bd5e8f03e7ea9cbf2ac88862a341d8bf41aaa2269b2c3bea68c8e", + "bytes": 1445337 + } }, { "file": "village_industrial_v3.png", @@ -818,7 +988,18 @@ ], "source_bytes": 3237767, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_industrial_v3.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "73abef2b3a1125c3e299c6f5f471609183519ba6426d4d1e9fea2b3593234dcb", + "bytes": 1415118 + } }, { "file": "village_intermediate.png", @@ -829,7 +1010,18 @@ ], "source_bytes": 3164562, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_intermediate.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "dff4df9ee895cde3ad98c8c9cbd45390616f932dc8c84c277b391bc2b4a43602", + "bytes": 1396269 + } }, { "file": "village_props.png", @@ -863,7 +1055,18 @@ ], "source_bytes": 3184460, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_start.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "b31dbfe537a017681cbdbce8b5cd0557aefc0202db9b14a295de1904db625062", + "bytes": 1351642 + } }, { "file": "village_start_v2.png", @@ -874,7 +1077,18 @@ ], "source_bytes": 3175159, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_start_v2.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "e1d8dd4b3233305b1eb8d52a95ecfaa1c0f70f62e48880011044dbe292a1a20b", + "bytes": 1388417 + } }, { "file": "village_transition_v3.png", @@ -885,7 +1099,18 @@ ], "source_bytes": 3226916, "alpha_bounds": null, - "atlas": null + "atlas": null, + "runtime_variant": { + "file": "watercolor_prepared/village_transition_v3.png", + "dimensions": [ + 1100, + 650 + ], + "pivot": null, + "use": "flight backdrop; logical canvas plus 32 px parallax overscan", + "sha256": "e79aefd287c9324970e3cb9ceea7ce33ceb85920895125cdb55b67f8f253d612", + "bytes": 1433170 + } }, { "file": "villagers_sprint3.png", diff --git a/assets/watercolor_prepared/map_pigment_v17.png b/assets/watercolor_prepared/map_pigment_v17.png new file mode 100644 index 0000000..aca9919 Binary files /dev/null and b/assets/watercolor_prepared/map_pigment_v17.png differ diff --git a/assets/watercolor_prepared/story_city.png b/assets/watercolor_prepared/story_city.png new file mode 100644 index 0000000..dff696d Binary files /dev/null and b/assets/watercolor_prepared/story_city.png differ diff --git a/assets/watercolor_prepared/story_fold.png b/assets/watercolor_prepared/story_fold.png new file mode 100644 index 0000000..8aee089 Binary files /dev/null and b/assets/watercolor_prepared/story_fold.png differ diff --git a/assets/watercolor_prepared/story_launch.png b/assets/watercolor_prepared/story_launch.png new file mode 100644 index 0000000..306e675 Binary files /dev/null and b/assets/watercolor_prepared/story_launch.png differ diff --git a/assets/watercolor_prepared/story_newspaper.png b/assets/watercolor_prepared/story_newspaper.png new file mode 100644 index 0000000..ab76dd1 Binary files /dev/null and b/assets/watercolor_prepared/story_newspaper.png differ diff --git a/assets/watercolor_prepared/travel_amazonia.png b/assets/watercolor_prepared/travel_amazonia.png new file mode 100644 index 0000000..b1c1ed2 Binary files /dev/null and b/assets/watercolor_prepared/travel_amazonia.png differ diff --git a/assets/watercolor_prepared/travel_caatinga.png b/assets/watercolor_prepared/travel_caatinga.png new file mode 100644 index 0000000..790703d Binary files /dev/null and b/assets/watercolor_prepared/travel_caatinga.png differ diff --git a/assets/watercolor_prepared/village_clean.png b/assets/watercolor_prepared/village_clean.png new file mode 100644 index 0000000..092cef3 Binary files /dev/null and b/assets/watercolor_prepared/village_clean.png differ diff --git a/assets/watercolor_prepared/village_final.png b/assets/watercolor_prepared/village_final.png new file mode 100644 index 0000000..7eef476 Binary files /dev/null and b/assets/watercolor_prepared/village_final.png differ diff --git a/assets/watercolor_prepared/village_industrial_v3.png b/assets/watercolor_prepared/village_industrial_v3.png new file mode 100644 index 0000000..98af4ec Binary files /dev/null and b/assets/watercolor_prepared/village_industrial_v3.png differ diff --git a/assets/watercolor_prepared/village_intermediate.png b/assets/watercolor_prepared/village_intermediate.png new file mode 100644 index 0000000..68dcb3c Binary files /dev/null and b/assets/watercolor_prepared/village_intermediate.png differ diff --git a/assets/watercolor_prepared/village_start.png b/assets/watercolor_prepared/village_start.png new file mode 100644 index 0000000..5085efd Binary files /dev/null and b/assets/watercolor_prepared/village_start.png differ diff --git a/assets/watercolor_prepared/village_start_v2.png b/assets/watercolor_prepared/village_start_v2.png new file mode 100644 index 0000000..1059497 Binary files /dev/null and b/assets/watercolor_prepared/village_start_v2.png differ diff --git a/assets/watercolor_prepared/village_transition_v3.png b/assets/watercolor_prepared/village_transition_v3.png new file mode 100644 index 0000000..2362f78 Binary files /dev/null and b/assets/watercolor_prepared/village_transition_v3.png differ diff --git a/dobramundo/__init__.py b/dobramundo/__init__.py index b9b8e11..3321f51 100644 --- a/dobramundo/__init__.py +++ b/dobramundo/__init__.py @@ -14,4 +14,4 @@ """ APP_NAME = "Dobramundo" -__version__ = "1.6.0" +__version__ = "1.7.0" diff --git a/dobramundo/app.py b/dobramundo/app.py index db8265d..cda65ec 100644 --- a/dobramundo/app.py +++ b/dobramundo/app.py @@ -196,6 +196,7 @@ def present(self) -> None: self.display.blit(orient(self.canvas, self.options.rotacao, self.options.espelhar), (0, 0)) pygame.display.flip() + self.input.note_presented() def step(self, dt: float, events: Optional[List[pygame.event.Event]] = None) -> None: """Um quadro: entrada, atualização, desenho e apresentação na janela.""" diff --git a/dobramundo/cartridge.py b/dobramundo/cartridge.py index 587d0a4..24b9c2c 100644 --- a/dobramundo/cartridge.py +++ b/dobramundo/cartridge.py @@ -17,14 +17,16 @@ from __future__ import annotations -from typing import Callable, List, Optional +from typing import Callable, List, Optional, Tuple import pygame -from ttea.sdk.api import Game, GameContext, feet_centre +from ttea.sdk.api import Game, GameContext +from ttea.sdk.tracking import Landmark from . import config as C from .core import GameCore, first_scene -from .input.console import TrackingSource, body_points +from .input.console import TrackingSource, body_points, floor_indicator_position, floor_position +from .input.pose import FloorControl from .log import log from .persistence import Profile, ProfileError from .scenes.flight import FlightScene @@ -150,21 +152,60 @@ def start(self, context: GameContext) -> None: self.core = ConsoleCore(load_profile(context), context, self.source) self.core.go(first_scene(self.core)) self.lost_time = 0.0 + self.legacy_cursor: Optional[Tuple[float, float]] = None def update(self, context: GameContext) -> None: tracking = context.tracking usable = not (tracking.missing or tracking.stale) raw = tracking.observation.landmarks.get("body") if usable else None points = None if raw is None else [(p.x, p.y, p.visibility) for p in raw] - self.source.push(body_points(points), feet_centre(tracking)) + self.source.push(body_points(points), floor_position(tracking)) events = [e for e in context.events if not (e.type == pygame.KEYDOWN and e.key in PLATFORM_KEYS)] events = self.to_canvas(context, events) for event in events: self.core.input.handle_event(event) self.core.advance(min(context.dt, C.MAX_DT), events) + self.sync_floor_indicator(tracking) if not self.core.running: context.request_stop() + def sync_floor_indicator(self, tracking) -> None: + """Align the SDK marker with the actual menu cursor or smoothed floor target.""" + body = self.core.input.body + scene = self.core.scene + if scene is None: + return + + menu_active = bool(scene.menu.buttons) + floor_flight = isinstance(body, FloorControl) and not menu_active + if not menu_active and not floor_flight: + self.legacy_cursor = None + return + + if tracking.missing or tracking.stale: + point = None + elif menu_active: + pointer = scene.menu.pointer + point = None if pointer is None else (pointer[0] / (C.WIDTH - 1), pointer[1] / (C.HEIGHT - 1)) + else: + point = floor_indicator_position(body) + + try: + target_active = tracking.control_target_active + except AttributeError: + # TSDK antigo: o cursor das telas já é desenhado pelo jogo; em voo + # corporal por pés, acrescentamos um marcador próprio sem mutar dados + # do rastreamento nem esconder as pegadas legadas. + self.legacy_cursor = point if floor_flight else None + return + + self.legacy_cursor = None + if target_active and point is None: + tracking.control_target = None + else: + tracking.control_target = None if point is None else Landmark(point[0], point[1], visibility=1.0) + tracking.control_target_active = True + def to_canvas(self, context: GameContext, events: List[pygame.event.Event]) -> List[pygame.event.Event]: """Mouse na superfície do console -> tela lógica do jogo (quando os tamanhos diferem).""" size = context.surface.get_size() @@ -183,6 +224,12 @@ def draw(self, context: GameContext) -> None: surface.blit(canvas, (0, 0)) else: surface.blit(pygame.transform.smoothscale(canvas, surface.get_size()), (0, 0)) + if self.legacy_cursor is not None: + x, y = self.legacy_cursor + center = (round(x * (surface.get_width() - 1)), round(y * (surface.get_height() - 1))) + pygame.draw.circle(surface, T.WHITE, center, 18) + pygame.draw.circle(surface, T.NAVY, center, 18, 4) + pygame.draw.circle(surface, T.ORANGE, center, 6) if context.pause_reason == "tracking_loss": self.draw_lost(surface) diff --git a/dobramundo/config.py b/dobramundo/config.py index 894faba..f4c9c64 100644 --- a/dobramundo/config.py +++ b/dobramundo/config.py @@ -92,16 +92,19 @@ # ------------------------------------------------- transformação da cidade ERA_SPAN = 100.0 / 3.0 # três estágios do mesmo tamanho (33,3% e 66,7%) START_RESTORATION = 5.0 -# Fase de ~4 min com a criança pegando 4 de cada 10 resíduos (ver tools/balance.py). -RESTORATION_PER_TRASH = 0.115 # Difícil +# Recuperação ambiental contínua durante voo ativo; coletas aceleram o mesmo progresso. +ACTIVE_RECOVERY_PER_S = 1.0 +# Transformação visual global; a rampa de velocidade usa o ganho local de baixo. +RESTORATION_PER_TRASH = 1.5 # Difícil +DIFFICULT_SPEED_RESTORATION_PER_TRASH = 0.115 RESTORATION_COMBO_BONUS = 0.013 # com combo >= COMBO_BONUS_FROM REPAIR_RESTORATION = 2.0 # reparo com vidas cheias NORMAL_TRASH_EVERY = 4 # Normal: 1 resíduo a cada 4 do Difícil NORMAL_TRASH_POINTS = 65 # pontos fixos por resíduo no Normal NORMAL_SPEED_FACTOR = 0.5 # Normal: metade da velocidade-base -# Cada coleta do Normal é mais rara (1 em 4, à metade da velocidade) e rende bem mais: -# calibrado para a fase durar o mesmo que no Difícil (ver tools/balance.py). -NORMAL_RESTORATION_PER_TRASH = 1.18 +# Bônus visual; o ganho do perfil por coleta fica desacoplado da rampa de velocidade. +NORMAL_RESTORATION_PER_TRASH = 4.5 +NORMAL_SPEED_RESTORATION_PER_TRASH = 1.18 HARD_TRASH_POINTS = 15 # Difícil: 15 x combo por resíduo COMBO_WINDOW_S = 2.2 COMBO_STEP = 4 # a cada 4 coletas seguidas o combo sobe diff --git a/dobramundo/content/texts.py b/dobramundo/content/texts.py index 64ff63c..19a3346 100644 --- a/dobramundo/content/texts.py +++ b/dobramundo/content/texts.py @@ -251,7 +251,7 @@ ) STAGE_MESSAGES = ( - "Fumaça, concreto e ferrugem. Cada coleta ajuda a mudar isso.", + "Voar ajuda a recuperar. Coletar acelera e traz recursos.", "A natureza volta a aparecer entre os prédios.", "Energia limpa e natureza integradas à vida da cidade.", ) diff --git a/dobramundo/core.py b/dobramundo/core.py index 2045fe7..e0e4484 100644 --- a/dobramundo/core.py +++ b/dobramundo/core.py @@ -32,11 +32,12 @@ def first_scene(app): - """Aviso -> calibração -> treino de permanência -> piloto -> vila na primeira vez.""" + """Aviso e calibração levam ao piloto, à história pulável e então à vila.""" scene = app.create_scene("vila") - if not app.profile.piloto_montado: # a primeira coisa: a criança monta o personagem da história - pilot = app.create_scene("piloto", first_time=True, return_to=scene) - scene = app.create_scene("dwell_treino", next_scene=pilot, return_to=pilot) + if not app.profile.abertura_vista: + scene = app.create_scene("abertura", next_scene=scene) + if not app.profile.piloto_montado: + scene = app.create_scene("piloto", first_time=True, return_to=scene) if app.input.uses_body: scene = app.create_scene("calibracao", return_to=scene) if not app.profile.consentimento: @@ -126,9 +127,7 @@ def backdrop( key = biome_key or BIOME_ORDER[0] world = self.backdrop_world if world is None or world.biome.key != key: - world = World(BIOMES[key], "normal", random.Random(7)) - world.entities.clear() - world.spawn_pattern = lambda z: None # type: ignore[assignment] + world = World(BIOMES[key], "normal", random.Random(7), spawn_enabled=False) self.backdrop_world = world if restoration is not None and abs(world.restoration - restoration) > 0.5: world.set_restoration(restoration) diff --git a/dobramundo/engine/assets.py b/dobramundo/engine/assets.py index 1207b7f..d37e7ef 100644 --- a/dobramundo/engine/assets.py +++ b/dobramundo/engine/assets.py @@ -58,11 +58,25 @@ def __init__(self) -> None: def folder(self, name: str, names: Optional[Iterable[str]] = None) -> SpriteSet: """Todos os PNGs da pasta (ou só os nomes pedidos, se informados).""" + names = None if names is None else tuple(names) + paths = self._paths(name, names) + sprites: SpriteSet = {} + for stem, path in paths: + image = self._loaded.get(path) + if image is None: + image = load_image(Path(path)) + if image is not None: + self._loaded[path] = image + if image is not None: + sprites[stem] = image + return sprites + + def _paths(self, name: str, names: Optional[Iterable[str]] = None): names = None if names is None else tuple(names) key = name if names is None else f"{name}|{','.join(sorted(names))}" - wanted = None if names is None else set(names) paths = self._folders.get(key) if paths is None: + wanted = None if names is None else set(names) by_name = {} # Do pacote para o lado do executável: a pasta de maior prioridade sobrescreve. for directory in reversed(asset_dir_candidates(name)): @@ -73,16 +87,15 @@ def folder(self, name: str, names: Optional[Iterable[str]] = None) -> SpriteSet: by_name[path.stem] = str(path) paths = tuple(sorted(by_name.items())) self._folders[key] = paths - sprites: SpriteSet = {} - for stem, path in paths: - image = self._loaded.get(path) - if image is None: - image = load_image(Path(path)) - if image is not None: - self._loaded[path] = image - if image is not None: - sprites[stem] = image - return sprites + return paths + + def names(self, folder: str) -> tuple[str, ...]: + """List image stems without decoding pixels; useful for task-wise warm-up.""" + return tuple(stem for stem, _path in self._paths(folder)) + + def has(self, folder: str, name: str) -> bool: + """Check an image's indexed presence without decoding its pixels.""" + return any(stem == name for stem, _path in self._paths(folder, (name,))) def sprite(self, folder: str, name: str) -> Optional[pygame.Surface]: return self.folder(folder, names=(name,)).get(name) diff --git a/dobramundo/engine/cache.py b/dobramundo/engine/cache.py index 8c78aed..b22cb1f 100644 --- a/dobramundo/engine/cache.py +++ b/dobramundo/engine/cache.py @@ -6,31 +6,186 @@ from __future__ import annotations +import weakref +from collections import OrderedDict from typing import Any, Dict, Hashable import pygame +class CacheBudget: + """Shared, surface-aware budget for disposable renderer caches. + + Base artwork is intentionally pinned by its owning renderer; this manager + trims derived cache entries. Subsurfaces are charged to their backing + surface, once across every registered cache. + """ + + def __init__(self, byte_limit: int) -> None: + self.byte_limit = max(0, int(byte_limit)) + self._caches = {} + self._order = OrderedDict() + self._entry_surfaces = {} + self._surface_refs = {} + self._retained = 0 + + @staticmethod + def _root_surface(surface): + root = surface + while True: + parent = root.get_parent() + if parent is None or parent is root: + return root + root = parent + + @classmethod + def _surface_bytes(cls, value, seen): + if isinstance(value, pygame.Surface): + root = cls._root_surface(value) + identity = id(root) + if identity in seen: + return 0 + seen.add(identity) + return root.get_pitch() * root.get_height() + if isinstance(value, dict): + return sum(cls._surface_bytes(item, seen) for item in value.values()) + if isinstance(value, (list, tuple, set)): + return sum(cls._surface_bytes(item, seen) for item in value) + return 0 + + @classmethod + def _surface_sizes(cls, value, found): + if isinstance(value, pygame.Surface): + root = cls._root_surface(value) + found[id(root)] = root.get_pitch() * root.get_height() + elif isinstance(value, dict): + for item in value.values(): + cls._surface_sizes(item, found) + elif isinstance(value, (list, tuple, set)): + for item in value: + cls._surface_sizes(item, found) + + def touch(self, cache, key, value) -> None: + cache_id = id(cache) + if cache_id not in self._caches: + self._caches[cache_id] = weakref.ref(cache, lambda _ref, cid=cache_id: self._drop_cache(cid)) + entry = (cache_id, key) + surfaces = {} + self._surface_sizes(value, surfaces) + self._entry_surfaces[entry] = surfaces + added_bytes = 0 + for surface_id, size in surfaces.items(): + count, current_size = self._surface_refs.get(surface_id, (0, size)) + if count == 0: + self._retained += size + added_bytes += size + self._surface_refs[surface_id] = (count + 1, current_size) + self._order[entry] = None + if self.byte_limit and added_bytes > self.byte_limit: + cache._evict(key) + return + self.trim() + + def _drop_cache(self, cache_id) -> None: + self._caches.pop(cache_id, None) + for entry in [entry for entry in self._entry_surfaces if entry[0] == cache_id]: + self.forget_id(entry) + + def forget_id(self, entry) -> None: + self._order.pop(entry, None) + for surface_id in self._entry_surfaces.pop(entry, {}): + count, size = self._surface_refs[surface_id] + if count <= 1: + self._surface_refs.pop(surface_id, None) + self._retained = max(0, self._retained - size) + else: + self._surface_refs[surface_id] = (count - 1, size) + + def forget(self, cache, key) -> None: + self.forget_id((id(cache), key)) + + def retained_bytes(self) -> int: + return self._retained + + def metrics(self) -> dict: + """Lookup counters for currently live registered caches (not total RSS).""" + counters = {"get_hits": 0, "get_misses": 0, "evictions": 0, "live_caches": 0} + for reference in self._caches.values(): + cache = reference() + if cache is not None: + counters["live_caches"] += 1 + counters["get_hits"] += cache.get_hits + counters["get_misses"] += cache.get_misses + counters["evictions"] += cache.evictions + return counters + + def trim(self) -> int: + """Evict globally oldest entries until within budget; returns count.""" + removed = 0 + while self.byte_limit and self.retained_bytes() > self.byte_limit: + if not self._order: + break + entry = next(iter(self._order)) + cache_id, key = entry + reference = self._caches.get(cache_id) + cache = reference() if reference is not None else None + if cache is None: + self.forget_id(entry) + elif key in cache: + cache._evict(key) + removed += 1 + else: + self.forget_id(entry) + return removed + + +# Renderer caches are derived data. 192 MiB leaves headroom over the measured +# working set while preventing the sum of individual local limits from growing +# without bound. Root artwork and active frame surfaces remain pinned. +DEFAULT_CACHE_BUDGET = CacheBudget(192 * 1024 * 1024) + + class BoundedCache(Dict[Hashable, Any]): """dict comum (get, in, len) que guarda no máximo ``limit`` itens.""" - def __init__(self, limit: int, byte_limit: int = 0) -> None: + def __init__(self, limit: int, byte_limit: int = 0, budget: CacheBudget = DEFAULT_CACHE_BUDGET) -> None: super().__init__() self.limit = max(1, int(limit)) self.byte_limit = max(0, int(byte_limit)) self.bytes = 0 + self.budget = budget + self.get_hits = 0 + self.get_misses = 0 + self.evictions = 0 + + def get(self, key: Hashable, default: Any = None) -> Any: + if key in self: + self.get_hits += 1 + return super().__getitem__(key) + self.get_misses += 1 + return default @classmethod def value_bytes(cls, value: Any, seen=None) -> int: """Estimativa de pixels retidos; não inclui objetos Python auxiliares.""" if seen is None: seen = set() + if isinstance(value, pygame.Surface): + root = value + while True: + parent = root.get_parent() + if parent is None or parent is root: + break + root = parent + root_id = id(root) + if root_id in seen: + return 0 + seen.add(root_id) + return root.get_pitch() * root.get_height() identity = id(value) if identity in seen: return 0 seen.add(identity) - if isinstance(value, pygame.Surface): - return value.get_pitch() * value.get_height() if isinstance(value, dict): return sum(cls.value_bytes(item, seen) for item in value.values()) if isinstance(value, (list, tuple, set)): @@ -46,17 +201,27 @@ def __setitem__(self, key: Hashable, value: Any) -> None: if key in self: self.__delitem__(key) if key not in self: - while len(self) >= self.limit or (self.byte_limit and self.bytes + value_size > self.byte_limit): - self.__delitem__(next(iter(self))) + while self and (len(self) >= self.limit or (self.byte_limit and self.bytes + value_size > self.byte_limit)): + self._evict(next(iter(self))) + if len(self) >= self.limit or (self.byte_limit and value_size > self.byte_limit): + return super().__setitem__(key, value) self.bytes += value_size + self.budget.touch(self, key, value) def __delitem__(self, key: Hashable) -> None: value = super().__getitem__(key) + self.budget.forget(self, key) self.bytes = max(0, self.bytes - self.value_bytes(value)) super().__delitem__(key) + def _evict(self, key: Hashable) -> None: + self.evictions += 1 + self.__delitem__(key) + def clear(self) -> None: + for key in tuple(self): + self.budget.forget(self, key) super().clear() self.bytes = 0 diff --git a/dobramundo/engine/contracts.py b/dobramundo/engine/contracts.py index 27d1512..bb10f8a 100644 --- a/dobramundo/engine/contracts.py +++ b/dobramundo/engine/contracts.py @@ -7,6 +7,7 @@ from __future__ import annotations +from dataclasses import dataclass from typing import Optional, Protocol, Sequence, Tuple from ..content.biomes import Biome @@ -33,6 +34,7 @@ class EntityView(Protocol): solar: bool collected: bool hit: bool + passed: bool dodged: bool def hitbox(self) -> BoundsView: ... @@ -99,6 +101,18 @@ class FlightView(Protocol): floating: Sequence[FloatingTextView] +@dataclass(frozen=True) +class RenderContext: + """Immutable inputs shared by the renderer's background layer composition.""" + + world: WorldStateView + camera_x: float + elapsed: float + high_contrast: bool + reduce_motion: bool + contrast_scale: float + + class PlaneLook: """O que o jogador escolheu para o avião (modelo, pintura, piloto).""" diff --git a/dobramundo/engine/entity_layer.py b/dobramundo/engine/entity_layer.py index 1c56eec..eb74f28 100644 --- a/dobramundo/engine/entity_layer.py +++ b/dobramundo/engine/entity_layer.py @@ -54,8 +54,8 @@ def alert(self, screen: pygame.Surface, entity: EntityView, spec: ObstacleSpec) screen.blit(scaled, (int((x2 + x3) / 2 - size[0] / 2), int(y_far))) def draw_entity(self, screen: pygame.Surface, world: WorldStateView, entity: EntityView) -> None: - if self.watercolor.load(world.biome.key): - self.paper_items.draw(screen, entity, self.cam, self.high_contrast) + if self.watercolor.has_backdrop(world.biome.key): + self.paper_items.draw(screen, entity, self.cam, self.high_contrast, world.biome.key) if self.show_hitboxes: pygame.draw.rect(screen, rgb("ff1744"), self.hitbox_rect(entity.hitbox()), 2) return diff --git a/dobramundo/engine/painted_pilot.py b/dobramundo/engine/painted_pilot.py index 9e57f84..3ed18c7 100644 --- a/dobramundo/engine/painted_pilot.py +++ b/dobramundo/engine/painted_pilot.py @@ -2,7 +2,6 @@ from __future__ import annotations -import colorsys import math from typing import Mapping, Optional, Tuple @@ -64,41 +63,6 @@ HAIR_BASE_COLOR = (112, 64, 39) -def _multiply_color(color: Tuple[int, int, int], tint: Tuple[int, int, int]) -> Tuple[int, int, int]: - return tuple(max(0, min(255, round(a * b / 255))) for a, b in zip(color, tint)) - - -def _tint_by_key( - source: pygame.Surface, - base_color: Tuple[int, int, int], - target_color: Tuple[int, int, int], - tolerance: int = 46, -) -> pygame.Surface: - """Recolor a watercolor swatch while preserving each pixel's pigment variation.""" - if base_color == target_color: - return source.copy() - multipliers = tuple(min(255, round(target * 255 / max(1, base))) for base, target in zip(base_color, target_color)) - tinted = source.copy() - tinted.fill((*multipliers, 255), special_flags=pygame.BLEND_RGBA_MULT) - threshold = (tolerance, tolerance, tolerance, 255) - mask = pygame.mask.from_threshold(source, (*base_color, 255), threshold) - selector = mask.to_surface(setcolor=(255, 255, 255, 255), unsetcolor=(0, 0, 0, 0)) - selector.blit(tinted, (0, 0), special_flags=pygame.BLEND_RGBA_MULT) - result = source.copy() - result.blit(selector, (0, 0)) - return result - - -def _shift_hsv(pixel, base, target): - source_h, source_s, source_v = colorsys.rgb_to_hsv(*(value / 255 for value in pixel)) - base_h, base_s, base_v = colorsys.rgb_to_hsv(*(value / 255 for value in base)) - target_h, target_s, target_v = colorsys.rgb_to_hsv(*(value / 255 for value in target)) - hue = (source_h + target_h - base_h) % 1.0 - saturation = min(1.0, source_s * target_s / max(base_s, 0.05)) - value = min(1.0, source_v * target_v / max(base_v, 0.05)) - return tuple(round(c * 255) for c in colorsys.hsv_to_rgb(hue, saturation, value)) - - def _palette_layers(source: pygame.Surface): """Precomputes skin and shirt masks once per source pose, not once per look.""" width, height = source.get_size() diff --git a/dobramundo/engine/painted_planes.py b/dobramundo/engine/painted_planes.py index b280b3c..06e5d13 100644 --- a/dobramundo/engine/painted_planes.py +++ b/dobramundo/engine/painted_planes.py @@ -145,15 +145,16 @@ def mount_pilot(plane_surface: pygame.Surface, pilot_renderer, plane: str, view: if view == "flight": # Em voo, a dobra cobre quadril e pernas: só cabeça, ombros e tronco # superior ficam à vista, como alguém sentado dentro da fuselagem. - visible_height = max(1, round(pilot.get_height() * 0.50)) + visible_height = max(1, round(pilot.get_height() * 0.66)) pilot = pilot.subsurface((0, 0, pilot.get_width(), visible_height)).copy() # O avião tem eixo longitudinal vertical; a cabeça fica perto do cockpit. - share = (0.20 if plane == "bis14" else 0.24) if view == "flight" else 0.30 + share = (0.32 if plane == "bis14" else 0.36) if view == "flight" else 0.30 target_h = max(12, round(plane_surface.get_height() * share)) target_w = max(8, round(pilot.get_width() * target_h / max(1, pilot.get_height()))) scaled = pygame.transform.smoothscale(pilot, (target_w, target_h)) center_x = round(plane_surface.get_width() * 0.50) - top_y = round(plane_surface.get_height() * (0.12 if view == "flight" else 0.20)) + flight_top = 0.24 if plane == "crane" else 0.12 + top_y = round(plane_surface.get_height() * (flight_top if view == "flight" else 0.20)) # Não deixa transparência do sprite do piloto expandir o canvas. out = plane_surface.copy() out.blit(scaled, (center_x - target_w // 2, top_y)) diff --git a/dobramundo/engine/painted_route.py b/dobramundo/engine/painted_route.py index 37f1a19..d294959 100644 --- a/dobramundo/engine/painted_route.py +++ b/dobramundo/engine/painted_route.py @@ -21,6 +21,9 @@ class PaintedGround(GroundRenderer): TILE_X = 1050.0 TILE_Z = 1300.0 + # Three output rows are sampled separately into a small source band, then + # scaled together. This avoids repeated nearest-expanded rows without + # tripling screen blits or transform calls. ROW_HEIGHT = 3 def __init__(self, atlas: pygame.Surface) -> None: @@ -37,32 +40,78 @@ def __init__(self, atlas: pygame.Surface) -> None: for x, y in ((0, 0), (512, 0), (0, 512), (512, 512)): tile.blit(pygame.transform.flip(small, bool(x), bool(y)), (x, y)) self.textures[name] = tile - # Faixas de três pixels preservam perspectiva sem custar centenas de - # transformações extras; objetos/piloto continuam em resolução integral. self.rows = compute_ground_rows()[:: self.ROW_HEIGHT] self.fog_cache = {} - self.source_rows = { - name: tuple(tile.subsurface((0, v, 1024, 1)) for v in range(1024)) for name, tile in self.textures.items() - } + self.vertical_mips = {name: [tile] for name, tile in self.textures.items()} self.line_buffers = {} + # Geometry is invariant over time and biome. Cache it once per available + # mip count so direct/partial renderer use remains compatible with the + # normal staged warm-up path. + self.row_geometry = {} def warm_tasks(self): - # A textura já está preparada. Somente linhas de um pixel são reescaladas - # durante o voo; não há dezenas de cópias gigantes por grupo de escala. - return iter(()) + # Each lower-resolution level is a separate bounded warm-up unit. + for name in self.textures: + for _level in range(6): + yield lambda n=name: self.prepare_vertical_mip(n) + + def prepare_vertical_mip(self, name: str) -> None: + levels = self.vertical_mips[name] + source = levels[-1] + if source.get_height() <= 16: + return + target_size = (source.get_width(), max(1, source.get_height() // 2)) + levels.append(pygame.transform.smoothscale(source, target_size)) + + def prepare_line_buffers(self, name: str, rows) -> None: + for y, _z, _group in rows: + _depths, _middle_z, width, _mip_level = self._geometry(name, y) + key = name, y + if key not in self.line_buffers: + band = display_format(pygame.Surface((1024, self.ROW_HEIGHT))) + line = display_format(pygame.Surface((width, self.ROW_HEIGHT))) + self.line_buffers[key] = [line, (), band] + + def _geometry(self, name: str, y: int): + key = name, y, len(self.vertical_mips[name]) + geometry = self.row_geometry.get(key) + if geometry is None: + depths = tuple( + C.CAMERA_HEIGHT * C.FOV / (row_y + 0.5 - C.HORIZON_Y) for row_y in range(y, y + self.ROW_HEIGHT) + ) + middle_z = depths[self.ROW_HEIGHT // 2] + width = max(8, round(self.TILE_X * C.FOV / middle_z)) + sample_rows = tuple(row_z / self.TILE_Z * 1024 for row_z in depths) + step = max(abs(sample_rows[0] - sample_rows[1]), abs(sample_rows[1] - sample_rows[2])) + mip_level = 0 + while step / (2**mip_level) > 1.25 and mip_level < len(self.vertical_mips[name]) - 1: + mip_level += 1 + geometry = depths, middle_z, width, mip_level + self.row_geometry[key] = geometry + return geometry def queue_line(self, jobs, name, y, z, left, right, distance, cam): - width = max(8, round(self.TILE_X * C.FOV / z)) - v = int((z + distance) / self.TILE_Z * 1024) % 1024 + depths, _middle_z, width, mip_level = self._geometry(name, y) + raw_vs = tuple((row_z + distance) / self.TILE_Z * 1024 for row_z in depths) + texture = self.vertical_mips[name][mip_level] + mip_factor = 2**mip_level + indices = tuple(int(v / mip_factor) % texture.get_height() for v in raw_vs) + signature = mip_level, indices key = name, y buffer = self.line_buffers.get(key) if buffer is None: - buffer = [display_format(pygame.Surface((width, self.ROW_HEIGHT))), -1] - self.line_buffers[key] = buffer + self.prepare_line_buffers(name, ((y, z, 0),)) + buffer = self.line_buffers[key] line = buffer[0] - if buffer[1] != v: - pygame.transform.scale(self.source_rows[name][v], (width, self.ROW_HEIGHT), line) - buffer[1] = v + band = buffer[2] + if buffer[1] != signature: + # Copy the three exact source rows into a reusable band. This also + # handles wrapped/non-contiguous indices and avoids a temporary + # subsurface plus vertical-flip allocation for the common case. + for row, v in enumerate(indices): + band.blit(texture, (0, row), (0, v, texture.get_width(), 1)) + pygame.transform.scale(band, (width, self.ROW_HEIGHT), line) + buffer[1] = signature origin = cam * width / self.TILE_X - C.WIDTH / 2 x, src = left, int(origin + left) % width while x < right: @@ -109,15 +158,65 @@ class PaintedRoute: HEIGHTS = (170, 230, 235, 270, 170, 180, 230, 285, 190, 140, 180, 200) def __init__(self, assets: Assets) -> None: - atlas = assets.sprite("watercolor", "terrain_tiles_v3") - if atlas is None: - atlas = assets.sprite("watercolor", "terrain_tiles") - valid = atlas is not None and min(atlas.get_size()) >= 2 and atlas.get_bounding_rect().w > 0 - self.ground = PaintedGround(atlas) if valid else None - assets.release_folder("watercolor", ("terrain_tiles_v3", "terrain_tiles")) + self.ground = None + self._ground_attempted = False self.banks = {} self.cache = SpriteCache() self.assets = assets + self.industrial_art = {} + self._bank_atlas = None + self._bank_biome = None + self._bank_failed = False + + def prepare_ground(self) -> None: + """Decode and prepare the ground atlas as one explicit warm-up unit.""" + if self._ground_attempted: + return + self._ground_attempted = True + atlas = self.assets.sprite("watercolor", "terrain_tiles_v3") + if atlas is None: + atlas = self.assets.sprite("watercolor", "terrain_tiles") + valid = atlas is not None and min(atlas.get_size()) >= 2 and atlas.get_bounding_rect().w > 0 + self.ground = PaintedGround(atlas) if valid else None + self.assets.release_folder("watercolor", ("terrain_tiles_v3", "terrain_tiles")) + + def prepare_bank(self, biome: str, index: int) -> None: + """Extract one atlas cell; the 12 pieces are separate warm-up units.""" + if isinstance(self.banks.get(biome), tuple): + return + if self._bank_biome != biome: + self._bank_biome = biome + self._bank_atlas = self.assets.sprite("watercolor", "banks_" + biome) + self._bank_failed = False + self.banks[biome] = [] + atlas = self._bank_atlas + if self._bank_failed or atlas is None or atlas.get_width() < 4 or atlas.get_height() < 3: + self._bank_failed = True + self.banks[biome] = () + self._finish_banks(biome) + return + w, h = atlas.get_size() + col, row = index % 4, index // 4 + rect = pygame.Rect( + col * w // 4, row * h // 3, (col + 1) * w // 4 - col * w // 4, (row + 1) * h // 3 - row * h // 3 + ) + cell = atlas.subsurface(rect) + bounds = cell.get_bounding_rect(min_alpha=30) + if bounds.w == 0 or bounds.h == 0: + self._bank_failed = True + self.banks[biome] = () + self._finish_banks(biome) + return + current = self.banks[biome] + if isinstance(current, list): + current.append(display_format(cell.subsurface(bounds).copy(), True)) + if len(current) == 12: + self.banks[biome] = tuple(current) + self._finish_banks(biome) + + def _finish_banks(self, biome: str) -> None: + self._bank_atlas = None + self.assets.release_folder("watercolor", ("banks_" + biome,)) def load(self, biome: str) -> tuple: if biome not in self.banks: @@ -142,14 +241,24 @@ def load(self, biome: str) -> tuple: def release_biome(self, biome: str) -> None: self.banks.pop(biome, None) + self.industrial_art.clear() + if self._bank_biome == biome: + self._bank_atlas = None + self._bank_biome = None + self._bank_failed = False self.cache = SpriteCache() def ready(self, biome: str) -> bool: - return self.ground is not None and len(self.load(biome)) == 12 + return self.ground is not None and len(self.banks.get(biome, ())) == 12 @staticmethod def scenery_index(sequence: int, side: int, stage: int) -> int: slot = (sequence + (3 if side > 0 else 0)) % 8 + if stage == 0: + # O trecho industrial mostra primeiro porto e moradias sobre palafitas. + # Só dois slots mantêm vegetação de margem; os outros destacam + # atividade portuária e estruturas da cidade. + return (0, 2, 0, 1, 0, 1, 2, 1)[slot] if slot in (1, 3, 6): return (2, 6, 7)[slot % 3] # flora em todos os estágios if slot == 7: @@ -170,27 +279,82 @@ def placements(self, distance: float, stage: int, reduced: bool = False, biome: continue index = self.scenery_index(sequence, side, stage) if biome == "amazonia" and index == 3: - # O Teatro é um marco único no horizonte: não reaparece como - # cópias de um prédio a cada volta do percurso. - index = 7 + # O Teatro é um marco único no horizonte; a margem industrial + # mantém o porto em vez de repetir sua fachada. + index = 1 x = side * (530 + (sequence % 3) * 64) if z >= C.NEAR_CLIP_Z: result.append((z, x, index, side)) if not reduced and sequence % 2 == 0 and C.NEAR_CLIP_Z <= z + 95 <= C.FOG_END: - result.append((z + 95, side * 1030, 2 if sequence % 4 else 7, side)) + detail = (0 if sequence % 4 else 1) if stage == 0 else (2 if sequence % 4 else 7) + result.append((z + 95, side * 1030, detail, side)) return sorted(result, reverse=True) @staticmethod def stage_blend(visual: float, z: float) -> tuple: """Transformação contínua, chegando do horizonte à margem próxima.""" delay = 4.0 * (1.0 - clamp(z / C.FOG_END, 0.0, 1.0)) - if visual < C.ERA_SPAN + delay: + first_start = 5.0 + delay + first_end = C.ERA_SPAN + delay + second_start = first_end + second_end = 2 * C.ERA_SPAN + delay + if visual < first_start: return 0, 0, 0.0 - if visual < 2 * C.ERA_SPAN + delay: - mix = smoothstep(clamp((visual - C.ERA_SPAN - delay) / 16.0, 0.0, 1.0)) + if visual < first_end: + mix = smoothstep(clamp((visual - first_start) / (first_end - first_start), 0.0, 1.0)) return (1, 1, 0.0) if mix >= 1 else (0, 1, mix) - mix = smoothstep(clamp((visual - 2 * C.ERA_SPAN - delay) / 12.0, 0.0, 1.0)) - return (2, 2, 0.0) if mix >= 1 else (1, 2, mix) + if visual < second_end: + mix = smoothstep(clamp((visual - second_start) / (second_end - second_start), 0.0, 1.0)) + return (2, 2, 0.0) if mix >= 1 else (1, 2, mix) + return 2, 2, 0.0 + + INDUSTRIAL_ART_NAMES = ( + "steam_pipe_straight", + "steam_pipe_corner", + "industrial_chimney", + "tubos_valvula", + "pressure_tank", + ) + + def prepare_industrial_art(self, name: str) -> None: + """Decode one decorative margin element during the named warm-up queue.""" + if name not in self.INDUSTRIAL_ART_NAMES or name in self.industrial_art: + return + self.industrial_art[name] = self.assets.scenery_for((name,)).get(name) + + def _draw_industrial_margin(self, screen, world, cam: float) -> None: + """Paint cached, non-colliding pipes and stacks outside the flight lane.""" + progress = smoothstep(clamp((world.visual - 5.0) / (C.ERA_SPAN - 5.0), 0.0, 1.0)) + opacity = round(255 * (1.0 - progress)) + if opacity <= 0: + return + first = math.floor(world.distance / self.SPACING) - 1 + for sequence in range(first, first + 14): + if sequence % 3 != 0: + continue + name = self.INDUSTRIAL_ART_NAMES[(sequence // 3) % len(self.INDUSTRIAL_ART_NAMES)] + sprite = self.industrial_art.get(name) + if sprite is None: + continue + for side in (-1, 1): + z = sequence * self.SPACING + 55 - world.distance + if not C.NEAR_CLIP_Z + 60 <= z <= C.FOG_END: + continue + x = side * (790 + ((sequence // 3) % 2) * 70) + sx, sy, scale = project(x, 0.0, z, cam) + base_height = 360.0 if name == "industrial_chimney" else 190.0 + height = max(6, round(base_height * scale / 3) * 3) + width = max(6, round(height * sprite.get_width() / sprite.get_height())) + if sx + width / 2 < 0 or sx - width / 2 > C.WIDTH: + continue + key = ("industrial-margin", name) + image = self.cache.get(sprite, key, (width, height), side > 0) + level = fog_level(z) + if level: + image = self.cache.fogged(image, (key, (width, height), side > 0), level) + image.set_alpha(opacity) + screen.blit(image, (round(sx - width / 2), round(sy - height))) + image.set_alpha(255) def _bank(self, screen, sprites, biome, placement, cam, opacity=1.0): z, x, index, side = placement @@ -216,11 +380,16 @@ def _bank(self, screen, sprites, biome, placement, cam, opacity=1.0): image.set_alpha(255) def draw(self, screen, world, cam: float, reduced: bool, fog) -> bool: - sprites = self.load(world.biome.key) + if not self.ready(world.biome.key): + return False + sprites = self.banks.get(world.biome.key, ()) if not self.ready(world.biome.key): return False self.ground.paint(screen, world.biome.key, world.distance, cam, fog) self.cache.fog_color = fog + # Tubos e chaminés ficam fora da faixa jogável e desaparecem conforme a + # cidade muda; não compartilham ícones nem hitboxes de resíduos. + self._draw_industrial_margin(screen, world, cam) # A posição de cada peça é estável em todos os estágios; só sua forma # se dissolve para a seguinte. Desenhar não avança relógios ou o mundo. stages = [self.placements(world.distance, stage, reduced, world.biome.key) for stage in range(3)] diff --git a/dobramundo/engine/paper_items.py b/dobramundo/engine/paper_items.py index 843dd47..765e2d8 100644 --- a/dobramundo/engine/paper_items.py +++ b/dobramundo/engine/paper_items.py @@ -307,12 +307,56 @@ def __init__(self, cache_limit: int = 192) -> None: self.canonical[("obstacle", kind, solar)] = base self._scaled: BoundedCache = BoundedCache(cache_limit, 12 * 1024 * 1024) self._shadows: BoundedCache = BoundedCache(64, 2 * 1024 * 1024) + self.regional_skins = set() for kind in ("low", "gate", "tower"): for solar in (False, True): key = ("obstacle", kind, solar) warning = CORAL if solar else SUN self.canonical[("obstacle-outline", kind, solar)] = _obstacle_outline(self.canonical[key], warning) + @staticmethod + def regional_art_names(biome: str) -> tuple[str, ...]: + if biome == "amazonia": + return "AM_Balsa", "AM_PassarelaPalafita", "AM_GuindastePorto" + if biome == "caatinga": + return "CA_Carroca", "CA_PorticoIrrigacao", "CA_Aerogerador" + return () + + def set_region_scenery(self, biome: str, scenery: dict) -> None: + """Add a local landmark detail inside unchanged obstacle silhouettes. + + The obstacle kind, physical dimensions, and collision contract remain + owned by the game. This is a cached paper illustration detail only. + """ + if biome in self.regional_skins: + return + names = dict(zip(("low", "gate", "tower"), self.regional_art_names(biome))) + for kind, name in names.items(): + detail = scenery.get(name) + if detail is None: + continue + for solar in (False, True): + base = self.canonical[("obstacle", kind, solar)] + composite = base.copy() + # Keep the base category silhouette dominant; regional artwork + # sits within the opening/face and cannot extend the hitbox. + max_w = max(12, int(base.get_width() * (0.48 if kind == "gate" else 0.56))) + max_h = max(12, int(base.get_height() * (0.52 if kind == "gate" else 0.48))) + scale = min(max_w / detail.get_width(), max_h / detail.get_height()) + size = max(1, int(detail.get_width() * scale)), max(1, int(detail.get_height() * scale)) + icon = pygame.transform.smoothscale(detail, size).copy() + icon.set_alpha(224) + x = (base.get_width() - size[0]) // 2 + y = int(base.get_height() * (0.43 if kind == "gate" else 0.46)) - size[1] // 2 + composite.blit(icon, (x, max(0, min(base.get_height() - size[1], y)))) + regional_key = ("obstacle-regional", biome, kind, solar) + self.canonical[regional_key] = composite + warning = CORAL if solar else SUN + self.canonical[("obstacle-regional-outline", biome, kind, solar)] = _obstacle_outline( + composite, warning + ) + self.regional_skins.add(biome) + def _scale(self, key: Hashable, size: Size) -> pygame.Surface: size = (max(1, int(size[0])), max(1, int(size[1]))) cache_key = (key, size) @@ -363,7 +407,9 @@ def _draw_token(self, screen: pygame.Surface, entity: EntityView, cam: float, hi sprite = self._scale(key, (diameter, diameter)) screen.blit(sprite, (int(sx - diameter / 2), int(sy - diameter / 2))) - def _draw_obstacle(self, screen: pygame.Surface, entity: EntityView, cam: float, high_contrast: bool) -> None: + def _draw_obstacle( + self, screen: pygame.Surface, entity: EntityView, cam: float, high_contrast: bool, biome: str = "" + ) -> None: spec = entity.spec if spec is None: return @@ -389,14 +435,22 @@ def _draw_obstacle(self, screen: pygame.Surface, entity: EntityView, cam: float, rect = pygame.Rect(int(sx - width / 2), int(sy_top), width, height) if rect.right < 0 or rect.left >= C.WIDTH or rect.bottom < 0 or rect.top >= C.HEIGHT: return - key = ("obstacle", kind, bool(entity.solar)) + base_key = ("obstacle", kind, bool(entity.solar)) + regional_key = ("obstacle-regional", biome, kind, bool(entity.solar)) + key = regional_key if regional_key in self.canonical else base_key if high_contrast: - outline_key = ("obstacle-outline", kind, bool(entity.solar)) + outline_key = ( + ("obstacle-regional-outline", biome, kind, bool(entity.solar)) + if key == regional_key + else ("obstacle-outline", kind, bool(entity.solar)) + ) screen.blit(self._scale(outline_key, (width, height)), rect.topleft) sprite = self._scale(key, (width, height)) screen.blit(sprite, rect) - def draw(self, screen: pygame.Surface, entity: EntityView, cam: float, high_contrast: bool = False) -> None: + def draw( + self, screen: pygame.Surface, entity: EntityView, cam: float, high_contrast: bool = False, biome: str = "" + ) -> None: """Desenha entidade no centro projetado, sem alterar seu tipo ou hitbox. Waste e power-ups usam o centro de sua hitbox (raios 30/28 do mundo); @@ -405,4 +459,4 @@ def draw(self, screen: pygame.Surface, entity: EntityView, cam: float, high_cont if entity.kind == "waste" or (entity.kind in POWERUP_KINDS and entity.spec is None): self._draw_token(screen, entity, cam, high_contrast) elif entity.spec is not None: - self._draw_obstacle(screen, entity, cam, high_contrast) + self._draw_obstacle(screen, entity, cam, high_contrast, biome) diff --git a/dobramundo/engine/paper_pilot.py b/dobramundo/engine/paper_pilot.py index 0cea889..0cd9949 100644 --- a/dobramundo/engine/paper_pilot.py +++ b/dobramundo/engine/paper_pilot.py @@ -17,371 +17,9 @@ normalize_pilot, ) -INK = (18, 48, 104) -PAPER = (250, 245, 228) SIZE = (190, 240) -def _outlined_ellipse(surface: pygame.Surface, rect, fill, width: int = 3) -> None: - pygame.draw.ellipse(surface, INK, rect.inflate(width * 2, width * 2)) - pygame.draw.ellipse(surface, fill, rect) - - -def _outlined_round(surface: pygame.Surface, rect, fill, radius: int = 18, width: int = 3) -> None: - pygame.draw.rect(surface, INK, rect.inflate(width * 2, width * 2), border_radius=radius + width) - pygame.draw.rect(surface, fill, rect, border_radius=radius) - - -def _line(surface: pygame.Surface, color, start, end, width: int) -> None: - pygame.draw.line(surface, INK, start, end, width + 5) - pygame.draw.line(surface, color, start, end, width) - - -def _device(surface: pygame.Surface, look: dict) -> None: - """Cadeira ou andador, sempre atrás do corpo e com a mesma tinta do piloto.""" - if look["cadeira"] == "sim": - for x in (52, 138): - pygame.draw.circle(surface, INK, (x, 188), 31, 5) - pygame.draw.circle(surface, (229, 237, 228), (x, 188), 25, 4) - pygame.draw.circle(surface, (95, 142, 163), (x, 188), 4) - for a in range(0, 360, 60): - end = (x + int(22 * math.cos(math.radians(a))), 188 + int(22 * math.sin(math.radians(a)))) - pygame.draw.line(surface, (95, 142, 163), (x, 188), end, 2) - _line(surface, (72, 133, 155), (53, 145), (135, 145), 5) - _line(surface, (72, 133, 155), (59, 145), (79, 213), 5) - _line(surface, (72, 133, 155), (132, 145), (132, 207), 5) - _outlined_round(surface, pygame.Rect(66, 139, 57, 44), (242, 181, 98), 12, 3) - elif look["andador"] == "sim": - # Arco aberto para não encobrir o rosto nem o torso. - _line(surface, (76, 137, 157), (43, 131), (43, 206), 5) - _line(surface, (76, 137, 157), (147, 131), (147, 206), 5) - _line(surface, (76, 137, 157), (43, 134), (147, 134), 5) - _line(surface, (76, 137, 157), (43, 202), (147, 202), 5) - for x in (43, 147): - pygame.draw.circle(surface, INK, (x, 210), 8) - pygame.draw.circle(surface, (242, 181, 98), (x, 210), 5) - _outlined_round(surface, pygame.Rect(33, 124, 20, 9), (246, 203, 119), 5, 2) - _outlined_round(surface, pygame.Rect(137, 124, 20, 9), (246, 203, 119), 5, 2) - - -def _hair_back(surface: pygame.Surface, style: str, color) -> None: - if style in (UNSELECTED, "raspado"): - return - if style == "hijab": - # Lenço amplo por trás do rosto, sem cobrir pele ou olhos. - pygame.draw.ellipse(surface, INK, (39, 14, 112, 126)) - pygame.draw.ellipse(surface, color, (43, 18, 104, 118)) - elif style in ("longo", "trancas"): - # Cabelos compridos ficam atrás do rosto; tranças laterais permanecem visíveis. - pygame.draw.ellipse(surface, INK, (39, 13, 112, 136)) - pygame.draw.ellipse(surface, color, (43, 17, 104, 128)) - if style == "trancas": - for x in (46, 144): - for y in range(67, 130, 12): - pygame.draw.circle(surface, INK, (x, y), 7) - pygame.draw.circle(surface, color, (x, y), 5) - - -def _hair_front(surface: pygame.Surface, style: str, color) -> None: - if style in (UNSELECTED, "raspado", "hijab"): - return - # Cabelo curto e cachos formam uma silhueta sobre a testa, sem invadir os olhos. - pygame.draw.ellipse(surface, INK, (46, 12, 98, 58)) - if style in ("cacheado", "crespo", "puffs"): - count = 9 if style == "crespo" else 7 - for i in range(count): - x = 51 + i * (88 // max(1, count - 1)) - y = 34 + int(math.sin(i * 2.1) * 9) - pygame.draw.circle(surface, INK, (x, y), 14 if style == "crespo" else 12) - pygame.draw.ellipse(surface, color, (51, 20, 88, 46)) - for i in range(count): - x = 52 + i * (86 // max(1, count - 1)) - y = 33 + int(math.sin(i * 2.1) * 9) - pygame.draw.circle(surface, color, (x, y), 10 if style == "crespo" else 9) - if style == "puffs": - for x in (49, 141): - pygame.draw.circle(surface, INK, (x, 42), 17) - pygame.draw.circle(surface, color, (x, 42), 13) - elif style in ("coque", "chiquinhas"): - for x in (53, 137) if style == "chiquinhas" else (95,): - pygame.draw.circle(surface, INK, (x, 17), 17) - pygame.draw.circle(surface, color, (x, 17), 13) - pygame.draw.ellipse(surface, color, (52, 20, 86, 44)) - elif style == "moicano": - pygame.draw.polygon(surface, INK, [(70, 58), (91, 5), (111, 58)]) - pygame.draw.polygon(surface, color, [(76, 53), (92, 15), (105, 53)]) - pygame.draw.ellipse(surface, color, (54, 31, 82, 34)) - else: - pygame.draw.ellipse(surface, color, (51, 18, 88, 44)) - if style == "franja": - pygame.draw.polygon( - surface, INK, [(53, 44), (71, 39), (84, 57), (101, 39), (119, 57), (137, 39), (139, 57)] - ) - - -def _back_head(surface: pygame.Surface, style: str, skin, color) -> None: - """Nuca vista de trás no voo; cabelo/dispositivo continuam legíveis.""" - pygame.draw.ellipse(surface, INK, (46, 25, 98, 110)) - pygame.draw.ellipse(surface, skin or (247, 229, 198), (50, 29, 90, 102)) - if style in (UNSELECTED, "raspado"): - pygame.draw.arc(surface, (223, 206, 170), (61, 36, 67, 74), 0.4, 2.7, 2) - return - if style == "hijab": - pygame.draw.ellipse(surface, INK, (39, 14, 112, 126)) - pygame.draw.ellipse(surface, color, (43, 18, 104, 118)) - pygame.draw.arc(surface, (238, 202, 124), (44, 21, 102, 111), 0.2, 2.9, 4) - pygame.draw.line(surface, (232, 221, 195), (95, 105), (95, 137), 3) - return - if style in ("longo", "trancas"): - pygame.draw.ellipse(surface, INK, (39, 13, 112, 136)) - pygame.draw.ellipse(surface, color, (43, 17, 104, 128)) - if style == "trancas": - for x in (47, 143): - for y in range(61, 130, 12): - pygame.draw.circle(surface, INK, (x, y), 8) - pygame.draw.circle(surface, color, (x, y), 5) - pygame.draw.line(surface, (232, 221, 195), (95, 48), (95, 116), 2) - return - - pygame.draw.ellipse(surface, INK, (46, 12, 98, 69)) - pygame.draw.ellipse(surface, color, (50, 16, 90, 61)) - if style in ("cacheado", "crespo", "puffs"): - count = 9 if style == "crespo" else 7 - for i in range(count): - x = 50 + i * (90 // max(1, count - 1)) - y = 35 + int(math.sin(i * 2.1) * 8) - radius = 13 if style == "crespo" else 11 - pygame.draw.circle(surface, INK, (x, y), radius) - pygame.draw.circle(surface, color, (x, y), radius - 3) - if style == "puffs": - for x in (48, 142): - pygame.draw.circle(surface, INK, (x, 34), 17) - pygame.draw.circle(surface, color, (x, 34), 13) - elif style in ("coque", "chiquinhas"): - buns = (53, 137) if style == "chiquinhas" else (95,) - for x in buns: - pygame.draw.circle(surface, INK, (x, 17), 17) - pygame.draw.circle(surface, color, (x, 17), 13) - elif style == "moicano": - pygame.draw.polygon(surface, INK, [(71, 55), (95, 4), (119, 55)]) - pygame.draw.polygon(surface, color, [(77, 50), (95, 14), (113, 50)]) - elif style == "franja": - pygame.draw.polygon(surface, color, [(54, 46), (71, 42), (85, 56), (101, 42), (118, 56), (136, 42), (137, 55)]) - # Pequena dobra central deixa a nuca com leitura de papel, sem desenhar face. - pygame.draw.line(surface, (232, 221, 195), (95, 46), (95, 73), 2) - - -def _draw_pilot_logical(view: str, raw_look: dict) -> pygame.Surface: - """Renderiza uma criança expressiva em quatro vistas de uso já existentes.""" - look = normalize_pilot(raw_look) - surface = pygame.Surface(SIZE, pygame.SRCALPHA) - - # Mancha de sombra e dispositivo assistivo primeiro. - pygame.draw.ellipse(surface, (23, 43, 72, 45), (25, 208, 140, 22)) - _device(surface, look) - - shirt = find_option(SHIRT_COLORS, look["roupa"]).color or (35, 160, 157) - skin = find_option(SKIN_CHOICES, look["pele"]).color - hair = ( - (233, 224, 203) - if look["cor_cabelo"] == UNSELECTED - else find_option(HAIR_COLORS, look["cor_cabelo"]).color or (91, 60, 39) - ) - - # Pernas, corpo e braços têm formas largas e contorno reforçado. - if look["cadeira"] == "sim": - _line(surface, (76, 89, 135), (78, 190), (65, 204), 11) - _line(surface, (76, 89, 135), (65, 204), (95, 208), 10) - _line(surface, (76, 89, 135), (112, 190), (126, 204), 11) - _line(surface, (76, 89, 135), (126, 204), (97, 208), 10) - else: - _line(surface, (76, 89, 135), (78, 193), (74, 222), 12) - _line(surface, (76, 89, 135), (112, 193), (118, 222), 12) - _outlined_ellipse(surface, pygame.Rect(56, 214, 39, 18), (247, 235, 208), 3) - _outlined_ellipse(surface, pygame.Rect(101, 214, 39, 18), (247, 235, 208), 3) - _outlined_round(surface, pygame.Rect(58, 133, 75, 78), shirt, 25, 4) - pygame.draw.polygon(surface, INK, [(65, 148), (40, 166), (49, 181), (72, 169)]) - pygame.draw.polygon(surface, shirt, [(67, 151), (46, 166), (52, 175), (73, 163)]) - pygame.draw.polygon(surface, INK, [(126, 148), (151, 165), (143, 180), (121, 167)]) - pygame.draw.polygon(surface, shirt, [(126, 152), (145, 166), (140, 175), (120, 163)]) - pygame.draw.line(surface, (255, 238, 178), (77, 149), (115, 149), 3) - # Um pequeno avião de papel na camiseta ancora o tema sem texto. - pygame.draw.polygon(surface, (255, 246, 220), [(88, 163), (108, 170), (91, 175)]) - pygame.draw.line(surface, INK, (88, 163), (91, 175), 2) - - if view == "flight": - # No voo, a câmera vê a nuca da criança seguindo o avião para o horizonte. - _back_head(surface, look["cabelo"], skin, hair) - if look["aparelho"] == "sim": - pygame.draw.circle(surface, INK, (137, 79), 7) - pygame.draw.circle(surface, (45, 146, 157), (137, 79), 5) - pygame.draw.circle(surface, (238, 207, 125), (137, 79), 2) - if look["acessorio"] in ("bone", "capacete", "tiara", "coroa"): - band = (246, 195, 59) if look["acessorio"] != "capacete" else (234, 165, 65) - pygame.draw.arc(surface, INK, (43, 17, 104, 68), math.pi, 2 * math.pi, 7) - pygame.draw.arc(surface, band, (48, 22, 94, 58), math.pi, 2 * math.pi, 5) - else: - _hair_back(surface, look["cabelo"], hair) - # Cabeça creme neutra até a criança escolher um tom. - pygame.draw.ellipse(surface, INK, (46, 25, 98, 110)) - pygame.draw.ellipse(surface, skin or (247, 229, 198), (50, 29, 90, 102)) - pygame.draw.ellipse(surface, (255, 244, 218), (57, 35, 28, 20)) - _hair_front(surface, look["cabelo"], hair) - - eye_color = ( - (58, 50, 44) - if look["olhos"] == UNSELECTED - else find_option(EYE_COLORS, look["olhos"]).color or (106, 62, 40) - ) - eye_y = 72 - for x in (76, 114): - _outlined_ellipse(surface, pygame.Rect(x - 10, eye_y - 8, 20, 18), (255, 255, 248), 2) - pygame.draw.circle(surface, eye_color, (x, eye_y + 1), 5) - pygame.draw.circle(surface, (31, 36, 48), (x, eye_y + 1), 2) - pygame.draw.circle(surface, (255, 255, 255), (x - 1, eye_y - 1), 1) - smile = [(82, 97), (87, 101), (95, 103), (103, 101), (108, 97)] - pygame.draw.lines(surface, INK, False, smile, 5) - pygame.draw.lines(surface, (161, 68, 66), False, smile, 3) - pygame.draw.ellipse(surface, (235, 135, 123, 90), (58, 82, 19, 8)) - pygame.draw.ellipse(surface, (235, 135, 123, 90), (113, 82, 19, 8)) - - # Óculos e acessórios são desenhados por cima, em traço legível. - glasses = look["oculos"] - if glasses != "nenhum": - frame = (29, 49, 87) if glasses != "sol" else (47, 54, 74) - for x in (76, 114): - rect = pygame.Rect(x - 13, 61, 26, 23) - pygame.draw.rect(surface, frame, rect, 3, border_radius=8 if glasses == "redondo" else 4) - pygame.draw.line(surface, frame, (89, 72), (101, 72), 3) - accessory = look["acessorio"] - if accessory == "bone": - _outlined_ellipse(surface, pygame.Rect(45, 24, 104, 30), (246, 195, 80), 3) - pygame.draw.line(surface, INK, (55, 50), (144, 50), 4) - elif accessory == "capacete": - pygame.draw.arc(surface, INK, (44, 20, 102, 64), math.pi, 2 * math.pi, 7) - pygame.draw.arc(surface, (234, 165, 65), (48, 24, 94, 57), math.pi, 2 * math.pi, 6) - elif accessory in ("flor", "tiara", "coroa"): - if accessory == "tiara": - pygame.draw.arc(surface, INK, (48, 19, 94, 61), math.pi, 2 * math.pi, 3) - elif accessory == "coroa": - pygame.draw.polygon( - surface, INK, [(71, 35), (75, 20), (87, 31), (96, 17), (106, 31), (119, 20), (123, 35)] - ) - pygame.draw.polygon( - surface, (250, 202, 73), [(75, 32), (78, 24), (88, 34), (96, 22), (105, 34), (117, 24), (119, 33)] - ) - else: - pygame.draw.circle(surface, INK, (137, 46), 11) - pygame.draw.circle(surface, (241, 115, 139), (137, 46), 8) - pygame.draw.circle(surface, (246, 205, 75), (137, 46), 3) - - if look["aparelho"] == "sim": - pygame.draw.arc(surface, INK, (119, 57, 25, 35), 4.3, 1.7, 4) - pygame.draw.circle(surface, (45, 146, 157), (137, 76), 6) - pygame.draw.circle(surface, (238, 207, 125), (137, 76), 3) - - # Pose simples e estática; as telas existentes fornecem o movimento/voo. - if view == "segura": - _outlined_round(surface, pygame.Rect(75, 155, 42, 26), (250, 245, 228), 4, 2) - pygame.draw.line(surface, (211, 164, 95), (81, 163), (110, 163), 2) - pygame.draw.line(surface, (202, 213, 202), (81, 169), (106, 169), 2) - _outlined_ellipse(surface, pygame.Rect(67, 160, 15, 15), skin or (247, 229, 198), 2) - _outlined_ellipse(surface, pygame.Rect(110, 160, 15, 15), skin or (247, 229, 198), 2) - elif view == "lanca": - _line(surface, shirt, (140, 150), (163, 119), 11) - _outlined_ellipse(surface, pygame.Rect(155, 111, 16, 16), skin or (247, 229, 198), 2) - - # Grão aquarelado leve, determinístico e aplicado só na composição cacheada. - grain = pygame.Surface(SIZE, pygame.SRCALPHA) - for i in range(96): - x = 7 + (i * 47) % 176 - y = 7 + (i * 83) % 222 - if (i % 3) == 0: - pygame.draw.circle(grain, (255, 255, 255, 16), (x, y), 1 + (i % 2)) - surface.blit(grain, (0, 0)) - return surface - - -def _painterly_finish(surface: pygame.Surface, view: str, look: dict) -> pygame.Surface: - """Supersampled paint finish: soft paper light, pigment, and anatomical details.""" - scale = 3 - image = pygame.transform.smoothscale(surface, (SIZE[0] * scale, SIZE[1] * scale)) - detail = pygame.Surface(image.get_size(), pygame.SRCALPHA) - rng = random.Random(271828) - flecks = ((255, 250, 229), (224, 207, 176), (94, 107, 122), (255, 255, 247)) - for _ in range(940): - x, y = rng.randrange(10, image.get_width() - 10), rng.randrange(10, image.get_height() - 10) - if image.get_at((x, y)).a > 180: - color = rng.choice(flecks) - pygame.draw.ellipse(detail, (*color, rng.randrange(12, 28)), (x, y, 2, 1)) - - # Warm facial modelling, nose bridge, ears and lifted brows; no features in rear view. - if view != "flight": - skin = find_option(SKIN_CHOICES, look["pele"]).color or (247, 229, 198) - shade = tuple(max(0, c - 31) for c in skin) - light = tuple(min(255, c + 24) for c in skin) - pygame.draw.ellipse(detail, (*shade, 32), (183, 248, 38, 185)) - pygame.draw.ellipse(detail, (*light, 35), (198, 165, 65, 32)) - # Ears follow the head edge, with a soft inner curl. - for x in (145, 407): - pygame.draw.ellipse(detail, (*shade, 170), (x, 216, 25, 42)) - pygame.draw.arc(detail, (*light, 220), (x + 6, 225, 13, 22), 4.2, 1.8, 3) - # Small rounded nose and nostril shadows create an expressive child face. - pygame.draw.lines(detail, (*shade, 120), False, [(285, 226), (280, 249), (286, 256)], 3) - pygame.draw.ellipse(detail, (*light, 210), (283, 245, 9, 12)) - for x in (276, 294): - pygame.draw.ellipse(detail, (*shade, 125), (x, 273, 4, 3)) - # Brows, eyelid creases and eye highlights sit above the friendly gaze. - ink = (77, 52, 47, 215) - pygame.draw.lines(detail, ink, False, [(204, 199), (219, 193), (235, 198)], 5) - pygame.draw.lines(detail, ink, False, [(342, 198), (358, 193), (374, 199)], 5) - pygame.draw.arc(detail, (*shade, 180), (222, 204, 42, 45), 3.5, 5.9, 3) - pygame.draw.arc(detail, (*shade, 180), (337, 204, 42, 45), 3.5, 5.9, 3) - pygame.draw.ellipse(detail, (*light, 200), (283, 252, 7, 10)) - - shirt = find_option(SHIRT_COLORS, look["roupa"]).color or (35, 160, 157) - shade = tuple(max(0, c - 36) for c in shirt) - light = tuple(min(255, c + 35) for c in shirt) - # Organic folds and seam highlights on the shoulder and torso. - pygame.draw.lines(detail, (*shade, 110), False, [(207, 440), (226, 455), (237, 478)], 4) - pygame.draw.lines(detail, (*shade, 105), False, [(355, 440), (338, 455), (328, 478)], 4) - pygame.draw.arc(detail, (*light, 145), (205, 403, 160, 76), 0.15, 2.95, 4) - pygame.draw.lines(detail, (255, 239, 196, 215), False, [(237, 452), (268, 458), (300, 458)], 3) - pygame.draw.lines(detail, (231, 217, 185, 185), False, [(266, 465), (274, 477), (271, 491)], 2) - - # Painterly strands add volume to long hair, curls and the back-of-head view. - if look["cabelo"] not in (UNSELECTED, "raspado"): - hair = find_option(HAIR_COLORS, look["cor_cabelo"]).color or (190, 164, 131) - highlight = tuple(min(255, c + 50) for c in hair) - if look["cabelo"] in ("longo", "trancas", "hijab"): - for offset in (0, 1, 2): - pygame.draw.lines( - detail, - (*highlight, 115), - False, - [(151 + 3 * offset, 160), (145 + 2 * offset, 252), (157 + 2 * offset, 355)], - 2, - ) - pygame.draw.lines( - detail, - (*highlight, 115), - False, - [(419 - 3 * offset, 160), (425 - 2 * offset, 252), (413 - 2 * offset, 355)], - 2, - ) - else: - for x in (179, 217, 255, 294, 333, 371, 407): - pygame.draw.arc(detail, (*highlight, 125), (x - 14, 49, 35, 40), 3.5, 5.8, 2) - - # Keep every paint mark inside the character silhouette. - mask = pygame.mask.from_surface(image, 20).to_surface(setcolor=(255, 255, 255, 255), unsetcolor=(0, 0, 0, 0)) - detail.blit(mask, (0, 0), special_flags=pygame.BLEND_RGBA_MULT) - image.blit(detail, (0, 0)) - # Decima os 3x no centro do pixel: bordas já interpoladas no upscale, - # miolo do pigmento mantém a cor pura para tons de pele e roupa legíveis. - return pygame.transform.scale(image, SIZE) - - def _draw_paper_body(canvas): image = canvas["image"] look = canvas["look"] diff --git a/dobramundo/engine/regional_life.py b/dobramundo/engine/regional_life.py index ab31f39..d98515f 100644 --- a/dobramundo/engine/regional_life.py +++ b/dobramundo/engine/regional_life.py @@ -13,13 +13,22 @@ class RegionalLife: PERIOD = 3600.0 - def __init__(self, assets): + def __init__(self, assets, defer: bool = False): self.frames = [] self.cache = SpriteCache() self._world = None self._distance = 0.0 self._quiet = 1.0 - atlas = assets.sprite("watercolor", "fauna_sprint3") + self.assets = assets + self._prepared = False + if not defer: + self.prepare() + + def prepare(self): + if self._prepared: + return + self._prepared = True + atlas = self.assets.sprite("watercolor", "fauna_sprint3") if atlas is not None: w, h = atlas.get_size() for index in range(6): @@ -27,7 +36,7 @@ def __init__(self, assets): cell = atlas.subsurface((col * w // 3, row * h // 2, w // 3, h // 2)) bounds = cell.get_bounding_rect(min_alpha=40) self.frames.append(display_format(cell.subsurface(bounds).copy(), True) if bounds.w else None) - assets.release_folder("watercolor", ("fauna_sprint3",)) + self.assets.release_folder("watercolor", ("fauna_sprint3",)) @staticmethod def quiet_share(world): diff --git a/dobramundo/engine/sky.py b/dobramundo/engine/sky.py index 6750f88..ad2e18e 100644 --- a/dobramundo/engine/sky.py +++ b/dobramundo/engine/sky.py @@ -111,11 +111,14 @@ def blit_tiled(screen: pygame.Surface, surface: pygame.Surface, offset: float, y class SkyRenderer: def __init__(self, assets: Assets) -> None: self.assets = assets - atmosphere = assets.folder("atmosphere") - self.panorama_base = self.prepare_panorama(atmosphere.get("sky_panorama")) + # Heavy image decode/preparation is scheduled by WorldView's sliced + # warm-up queue instead of happening in App construction/set_biome. + self.panorama_base = None self.panorama = self.panorama_base - self.clouds = self.prepare_clouds(atmosphere.get("smog_cloud")) - self.skyline_sprites = assets.folder("skyline_sprites") + self._smog_source = None + self._smog_loaded = False + self.clouds = [] + self.skyline_sprites = {} self.gradients = BoundedCache(24, 20 * 1024 * 1024) self.decor_cache = BoundedCache(64, 20 * 1024 * 1024) self.biome: Optional[Biome] = None @@ -133,16 +136,61 @@ def set_biome(self, biome: Biome) -> None: if self.biome is biome: return self.biome = biome - self.panorama = self.tint_panorama(biome) - decor_names = {decor.sprite for decor in biome.sky_decor} - decor_names.add(biome.horizon_vehicle[0]) - self.decor_sprites = self.assets.scenery_for(decor_names) + self.panorama = self.panorama_base + self.decor_sprites = {} self.skyline_cache = {} self.skyline_state = {} self.decor_cache = BoundedCache(64, 20 * 1024 * 1024) count = max(1, len(biome.sky_decor)) self.decor_x = [i * C.DECOR_CYCLE / count + 120 * i for i in range(len(biome.sky_decor))] + def prepare_atmosphere_asset(self, name: str) -> None: + image = self.assets.sprite("atmosphere", name) + if name == "sky_panorama": + self.panorama_base = self.prepare_panorama(image) + self.panorama = self.panorama_base + elif name == "smog_cloud": + self._smog_source = image + self._smog_loaded = True + + def prepare_cloud(self, index: int) -> None: + if len(self.clouds) > index: + return + if not self._smog_loaded: + return + if self._smog_source is None: + self.clouds = [] + return + x, y, width, drift, parallax, opacity = CLOUD_LAYOUT[index] + smoke = pygame.transform.smoothscale(self._smog_source, (width, int(width * 0.42))) + smoke.fill((38, 30, 24, 0), special_flags=pygame.BLEND_RGBA_ADD) + clean = display_format(paper_cloud(int(width * 0.8), index), alpha=True) + self.clouds.append( + { + "x": float(x), + "y": y, + "w": width, + "drift": drift, + "parallax": parallax, + "opacity": opacity, + "smoke": smoke, + "clean": clean, + "baked": BoundedCache(24, 2 * 1024 * 1024), + } + ) + + def prepare_tinted_panorama(self) -> None: + if self.biome is not None: + self.panorama = self.tint_panorama(self.biome) + + def prepare_decor(self, name: str) -> None: + self.decor_sprites.update(self.assets.scenery_for((name,))) + + def prepare_skyline_sprite(self, name: str) -> None: + sprite = self.assets.sprite("skyline_sprites", name) + if sprite is not None: + self.skyline_sprites[name] = sprite + def release_biome_cache(self) -> None: """Solta faixas e variações específicas de uma fase já encerrada.""" self.biome = None @@ -344,6 +392,11 @@ def skyline_base(self, name: str) -> Optional[pygame.Surface]: else: layout = SKYLINE_FRONT names = {sprite for sprite, _ in layout} + for sprite_name in names: + if sprite_name not in self.skyline_sprites: + sprite = self.assets.sprite("skyline_sprites", sprite_name) + if sprite is not None: + self.skyline_sprites[sprite_name] = sprite scene_sprites = self.assets.scenery_for(names) if name != "front" else {} strip = self.build_skyline(layout, {**self.skyline_sprites, **scene_sprites}) self.skyline_cache[name] = strip diff --git a/dobramundo/engine/watercolor.py b/dobramundo/engine/watercolor.py index a3a06a7..9ceb53b 100644 --- a/dobramundo/engine/watercolor.py +++ b/dobramundo/engine/watercolor.py @@ -22,33 +22,42 @@ class WatercolorWorld: def __init__(self, assets: Assets) -> None: self.assets = assets self.route = PaintedRoute(assets) - self.life = RegionalLife(assets) + self.life = RegionalLife(assets, defer=True) self.backdrops: dict[str, tuple] = {} self.composite_key = None self.composite = None def load(self, biome: str) -> tuple: if biome not in self.backdrops: - names = tuple(f"{biome}_{stage}" for stage in range(3)) - prepared = self.assets.folder("watercolor_prepared", names) - layers = [prepared.get(name) for name in names] - if all(image is not None for image in layers): - result = tuple(display_format(image) for image in layers) - else: - original = self.assets.folder("watercolor", names) - layers = [original.get(name) for name in names] - result = ( - tuple( - display_format(pygame.transform.smoothscale(image, (C.WIDTH + 32, C.HEIGHT))) - for image in layers - ) - if all(image is not None for image in layers) - else () - ) - self.assets.release_folder("watercolor", names) - self.assets.release_folder("watercolor_prepared", names) - self.backdrops[biome] = result - return self.backdrops[biome] + for stage in range(3): + self.prepare_backdrop(biome, stage) + layers = self.backdrops[biome] + return layers if len(layers) == 3 and all(layers) else () + + def prepare_backdrop(self, biome: str, stage: int) -> None: + """Load/prepare one stage image as an explicit, measurable task.""" + existing = self.backdrops.get(biome, ()) + if len(existing) == 3 and all(existing): + return + layers = list(existing) if existing else [None, None, None] + if layers[stage] is None: + name = f"{biome}_{stage}" + image = self.assets.sprite("watercolor_prepared", name) + if image is None: + image = self.assets.sprite("watercolor", name) + if image is not None: + image = display_format(pygame.transform.smoothscale(image, (C.WIDTH + 32, C.HEIGHT))) + layers[stage] = image + self.assets.release_folder("watercolor_prepared", (name,)) + self.assets.release_folder("watercolor", (name,)) + if all(image is not None for image in layers): + self.backdrops[biome] = tuple(layers) + else: + # Keep partial state without presenting a false successful package. + self.backdrops[biome] = tuple(layers) + + def has_backdrop(self, biome: str) -> bool: + return len(self.backdrops.get(biome, ())) == 3 and all(self.backdrops[biome]) def release_biome(self, biome: str) -> None: self.backdrops.pop(biome, None) @@ -58,16 +67,27 @@ def release_biome(self, biome: str) -> None: @staticmethod def stage_mix(visual: float) -> tuple[int, int, int]: - """Limiar real preservado: indústria < 1/3, despertar até 2/3, solar.""" - if visual < C.ERA_SPAN: + """Mistura cedo e sem salto, preservando o início industrial do voo. + + O primeiro 5% permanece inteiramente industrial. Depois, a passagem para + o despertar ocupa o restante do primeiro terço; a passagem solarpunk + ocupa o segundo terço. O valor devolvido é uma etapa de 0..32. + """ + if visual < 5.0: return 0, 0, 0 + if visual < C.ERA_SPAN: + progress = smoothstep(clamp((visual - 5.0) / (C.ERA_SPAN - 5.0), 0.0, 1.0)) + return 0, 1, round(progress * 32) if visual < 2 * C.ERA_SPAN: - return 0, 1, round(smoothstep(clamp((visual - C.ERA_SPAN) / 16, 0, 1)) * 32) - return 1, 2, round(smoothstep(clamp((visual - 2 * C.ERA_SPAN) / 12, 0, 1)) * 32) + progress = smoothstep(clamp((visual - C.ERA_SPAN) / C.ERA_SPAN, 0.0, 1.0)) + return 1, 2, round(progress * 32) + return 2, 2, 0 - def backdrop(self, biome: str, visual: float, visible_height: int = C.HEIGHT) -> pygame.Surface | None: - layers = self.load(biome) - if not layers: + def backdrop( + self, biome: str, visual: float, visible_height: int = C.HEIGHT, load_if_missing: bool = True + ) -> pygame.Surface | None: + layers = self.load(biome) if load_if_missing else self.backdrops.get(biome, ()) + if len(layers) != 3 or not all(layers): return None a, b, step = self.stage_mix(visual) if a == b or step == 0: @@ -94,10 +114,14 @@ def backdrop(self, biome: str, visual: float, visible_height: int = C.HEIGHT) -> return self.composite def draw(self, screen, world, cam: float, reduce_motion: bool = False) -> bool: + # Rendering never starts asset decoding or atlas extraction. Until all + # visual prerequisites are ready, the caller can show its light prep UI. + if not self.has_backdrop(world.biome.key) or not self.route.ready(world.biome.key): + return False height = C.HEIGHT - if self.route.ready(world.biome.key) and self.route.ground.rows: + if self.route.ground.rows: height = self.route.ground.rows[0][0] - painted = self.backdrop(world.biome.key, world.visual, height) + painted = self.backdrop(world.biome.key, world.visual, height, load_if_missing=False) if painted is None: return False drift = math.sin(world.distance / 1200) * 8 diff --git a/dobramundo/engine/world_view.py b/dobramundo/engine/world_view.py index 9625544..367be1b 100644 --- a/dobramundo/engine/world_view.py +++ b/dobramundo/engine/world_view.py @@ -8,7 +8,8 @@ from __future__ import annotations -from typing import Iterator, List, Optional, Tuple +import time +from typing import Callable, List, Optional, Tuple import pygame @@ -17,15 +18,15 @@ from ..util import Color, clamp, lerp_color from .accessible_view import screen_point, viewport from .assets import Assets -from .cache import BoundedCache -from .contracts import EntityView, FlightView, WorldStateView +from .cache import DEFAULT_CACHE_BUDGET, BoundedCache +from .contracts import EntityView, FlightView, RenderContext, WorldStateView from .contracts import PlaneLook as PlaneLook from .entity_layer import EntityLayer -from .ground import GroundRenderer +from .ground import GroundRenderer, compute_ground_rows from .paper_items import PaperItems from .plane_layer import PlaneLayer from .plane_skin import PlaneSkin -from .sky import SkyRenderer +from .sky import CLOUD_LAYOUT, SKYLINE_BACK, SKYLINE_FRONT, SkyRenderer from .sprites import SpriteCache, fog_level, project from .track_layer import TrackLayer from .watercolor import WatercolorWorld @@ -46,9 +47,9 @@ def __init__(self, assets: Assets, font: Optional[pygame.font.Font] = None) -> N self.scenery = {} self._scenery_loaded = False self._biome_scenery_names = set() - self.waste = assets.folder("waste_sprites") - self.powerups = assets.folder("powerup_sprites") - self.fx = assets.folder("era_final_fx") + self.waste = {} + self.powerups = {} + self.fx = {} self.shadows = BoundedCache(400, 8 * 1024 * 1024) self.rotations = BoundedCache(ROTATION_CACHE_LIMIT, 40 * 1024 * 1024) self.font = font or pygame.font.SysFont("segoeui,verdana,dejavusans", 20, bold=True) @@ -67,7 +68,13 @@ def __init__(self, assets: Assets, font: Optional[pygame.font.Font] = None) -> N self.player_rect = pygame.Rect(0, 0, 246, 180) self.reduce_motion = False self.show_hitboxes = False - self.warm_queue: Optional[Iterator] = None + self.warm_queue: List[Tuple[str, Callable[[], None]]] = [] + self._warmup_index = 0 + self.warmup_last_task_ms = 0.0 + self.warmup_max_task_ms = 0.0 + self.warmup_overruns = 0 + self.warmup_timings = [] + self._queued_looks = set() # ------------------------------------------------------------ preparo def set_biome(self, biome: Biome) -> None: @@ -80,6 +87,9 @@ def set_biome(self, biome: Biome) -> None: self.scenery = {} self._biome_scenery_names = self.scenery_names(biome) self.warm_queue = self.warm_tasks() + self._warmup_index = 0 + self.warmup_timings.clear() + self._queued_looks.clear() @staticmethod def scenery_names(biome: Biome) -> set: @@ -98,6 +108,8 @@ def scenery_names(biome: Biome) -> set: for table in (biome.industrial_obstacles, biome.solar_obstacles): for specs in table.values(): names.update(spec.sprite for spec in specs) + for layout in (biome.industrial_skyline, biome.green_skyline, biome.solar_skyline): + names.update(name for name, _height in layout) return names def ensure_scenery(self) -> None: @@ -116,13 +128,15 @@ def release_biome_cache(self, biome_key: str) -> None: biome_names.add(self.biome.horizon_vehicle[0]) if biome_names: self.assets.release_scenery(biome_names) + self.assets.release_scenery(self.watercolor.route.INDUSTRIAL_ART_NAMES) if self.biome is not None and self.biome.key == biome_key: self.scenery = {} self._scenery_loaded = False self._biome_scenery_names = set() self.biome = None self.world = None - self.warm_queue = None + self.warm_queue = [] + self._warmup_index = 0 self.sky.release_biome_cache() self.cache = SpriteCache() self.shadows.clear() @@ -161,11 +175,12 @@ def measure(name, *values): self.watercolor.backdrops, self.watercolor.composite, self.watercolor.route.banks, + self.watercolor.route.industrial_art, self.watercolor.route.cache.scaled, self.watercolor.route.cache.mips, self.watercolor.route.cache.outlines, route_ground.textures if route_ground else None, - route_ground.source_rows if route_ground else None, + route_ground.vertical_mips if route_ground else None, route_ground.line_buffers if route_ground else None, self.watercolor.life.frames, self.watercolor.life.cache.scaled, @@ -209,62 +224,222 @@ def measure(name, *values): "unique_retained_surface_bytes": sum(owners.values()), "surface_bytes_by_owner": owners, "cache_items": cache_items, + "aggregate_cache_bytes": DEFAULT_CACHE_BUDGET.retained_bytes(), + "aggregate_cache_limit_bytes": DEFAULT_CACHE_BUDGET.byte_limit, + "aggregate_cache_metrics": DEFAULT_CACHE_BUDGET.metrics(), "estimate": ( - "pitch*height unique by Surface object; shared pygame subsurfaces can be conservatively overcounted" + "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" ), } - def warm_tasks(self) -> Iterator: - """Preparo incremental (mip dos sprites e silhuetas) para a partida não engasgar.""" - if self.biome and self.watercolor.load(self.biome.key) and self.watercolor.route.ready(self.biome.key): - route = self.watercolor.route - if route.ground is not None: - yield from route.ground.warm_tasks() - for index, sprite in enumerate(route.load(self.biome.key)): - key = ("painted-bank", self.biome.key, index) - yield lambda s=sprite, k=key: route.cache.warm(s, k, (False, True)) - return - for name in ("back", "front", "green", "city"): - yield lambda n=name: self.sky.skyline_base(n) - yield from self.ground.warm_tasks() + @property + def warmup_pending(self) -> bool: + return self._warmup_index < len(self.warm_queue) + + @property + def warmup_progress(self) -> float: + total = len(self.warm_queue) + return 1.0 if total == 0 else self._warmup_index / total + + @property + def warmup_status(self) -> str: + if not self.warmup_pending: + return "Pronto" + return self.warm_queue[self._warmup_index][0] + + def warm_tasks(self) -> List[Tuple[str, Callable[[], None]]]: + """Build a side-effect-free queue of one-asset/preparation work units.""" biome = self.biome if biome is None: - return - self.ensure_scenery() - names = set() - for specs in ( - biome.industrial_mid, - biome.industrial_margin, - biome.green_mid, - biome.green_margin, - biome.restored, - biome.solar_mid, - biome.solar_margin, - [biome.landmark], - ): - names.update(n for n, _ in specs) + return [] + tasks = [] + + def add(label, function): + tasks.append((label, function)) + + route = self.watercolor.route + prepared_backdrops = all( + self.assets.has("watercolor_prepared", f"{biome.key}_{stage}") + or self.assets.has("watercolor", f"{biome.key}_{stage}") + for stage in range(3) + ) + ground_atlas = self.assets.has("watercolor", "terrain_tiles_v3") or self.assets.has( + "watercolor", "terrain_tiles" + ) + painted_available = prepared_backdrops and ground_atlas and self.assets.has("watercolor", "banks_" + biome.key) + + if painted_available: + # The active watercolor path does not render procedural sky, skyline, + # or fallback scenery; do not decode/warm those unused assets. + for stage in range(3): + add("Preparando paisagem", lambda s=stage: self.watercolor.prepare_backdrop(biome.key, s)) + add("Preparando textura do percurso", route.prepare_ground) + for index in range(12): + add("Preparando margens", lambda i=index: route.prepare_bank(biome.key, i)) + for name in route.INDUSTRIAL_ART_NAMES: + add("Preparando detalhes industriais", lambda n=name: route.prepare_industrial_art(n)) + active_textures = ("green", "negro", "solimoes") if biome.river else ("soil",) + for name in active_textures: + for _level in range(6): + add( + "Suavizando textura do chão", + lambda n=name: self._prepare_ground_mip(n), + ) + row_count = len(compute_ground_rows()[::3]) + for name in active_textures: + for start in range(0, row_count, 16): + add( + "Alocando faixas do chão", + lambda n=name, begin=start: self._prepare_ground_line_buffers(n, begin, begin + 16), + ) + add("Preparando fauna", self.watercolor.life.prepare) + regional_names = self.paper_items.regional_art_names(biome.key) + for name in regional_names: + add("Carregando elementos regionais", lambda n=name: self.scenery.update(self.assets.scenery_for((n,)))) + add("Preparando obstáculos regionais", lambda: self.paper_items.set_region_scenery(biome.key, self.scenery)) + return tasks + + # Legacy rendering fallback: queue only the selected biome's resources. + add("Preparando céu", lambda: self.sky.prepare_atmosphere_asset("sky_panorama")) + add("Preparando nuvens", lambda: self.sky.prepare_atmosphere_asset("smog_cloud")) + for index in range(len(CLOUD_LAYOUT)): + add("Preparando nuvens", lambda i=index: self.sky.prepare_cloud(i)) + add("Preparando cores do céu", self.sky.prepare_tinted_panorama) + + skyline_names = {name for name, _height in SKYLINE_BACK + SKYLINE_FRONT} + for layout in (biome.industrial_skyline, biome.green_skyline, biome.solar_skyline): + skyline_names.update(name for name, _height in layout) + names = set(self._biome_scenery_names) + names.update(decor.sprite for decor in biome.sky_decor) + names.add(biome.horizon_vehicle[0]) + names.update(skyline_names) for name in sorted(names): - sprite = self.scenery.get(name) - yield lambda s=sprite, n=name: self.cache.warm(s, ("scenery", n), (False, True)) - for table in (biome.industrial_obstacles, biome.solar_obstacles): - for specs in table.values(): - for spec in specs: - yield lambda s=self.scenery.get(spec.sprite), n=spec.sprite: self.cache.warm(s, ("scenery", n)) - for name, sprite in list(self.waste.items()) + list(self.powerups.items()): - yield lambda s=sprite, n=name: self.cache.warm(s, ("item", n)) + add("Carregando cenário", lambda n=name: self.scenery.update(self.assets.scenery_for((n,)))) + add("Finalizando cenário", self._mark_scenery_loaded) + decor_names = {decor.sprite for decor in biome.sky_decor} + decor_names.add(biome.horizon_vehicle[0]) + for name in sorted(decor_names): + add("Carregando decoração", lambda n=name: self.sky.prepare_decor(n)) + for name in sorted(skyline_names): + add("Carregando horizonte", lambda n=name: self.sky.prepare_skyline_sprite(n)) + for name in ("back", "front", "green", "city"): + add("Compondo horizonte", lambda n=name: self.sky.skyline_base(n)) - def step_warm_up(self, budget_ms: float) -> None: - import time + folders = ( + ("waste_sprites", self.waste), + ("powerup_sprites", self.powerups), + ("era_final_fx", self.fx), + ) + for folder, target in folders: + for name in self.assets.names(folder): + add("Carregando itens", lambda f=folder, n=name, store=target: self._load_sprite_into(f, n, store)) + for name in sorted(names): + add( + "Preparando imagens de cenário", + lambda n=name: self.cache.warm(self.scenery.get(n), ("scenery", n), (False, True)), + ) + for task in self.ground.warm_tasks(): + add("Preparando faixas do chão", task) + return tasks + + def prepare_look(self, look: PlaneLook) -> None: + """Queue only the selected flight look, keeping cold composition out of draw. - if self.warm_queue is None: + Atlas extraction, paint/pattern composition, pilot composition and final + mount are separate measured work units where the existing APIs allow it. + This deliberately does not warm the other selectable planes. + """ + key = self.skin.look_key(look.plane, look.color, look.pattern, look.pilot) + if key in self._queued_looks and self.warmup_pending: + return + if not self.warmup_pending: + # The global budget may have evicted this look since the last flight. + # Queue cached lookups again; deduplicate only the work still pending. + self._queued_looks.clear() + self.warm_queue.clear() + self._warmup_index = 0 + self.warmup_timings.clear() + self._queued_looks.add(key) + self.warm_queue.extend( + [ + ("Preparando avião", lambda: self.skin.base(look.plane, "flight")), + ( + "Aplicando pintura", + lambda: self.skin.painted(look.plane, "flight", look.color, look.pattern), + ), + ] + ) + if look.pilot: + self.warm_queue.append( + ( + "Preparando piloto", + lambda: self.skin.pilots.compose("flight", look.pilot, pose="back_seated"), + ) + ) + self.warm_queue.append( + ( + "Montando visual do voo", + lambda: self.skin.surface(look.plane, "flight", look.color, look.pattern, look.pilot), + ) + ) + + def _load_sprite_into(self, folder: str, name: str, target: dict) -> None: + sprite = self.assets.sprite(folder, name) + if sprite is not None: + target[name] = sprite + + def prepare_first_frame(self, run: FlightView, look: PlaneLook) -> None: + """Warm view-dependent scales before the flight becomes interactive. + + The scratch frame never replaces the preparation screen and advances no + rules. Its indivisible cost is reported as its own preparation task. + """ + + def prepare() -> None: + preview = pygame.Surface((C.WIDTH, C.HEIGHT)).convert() + self.draw_run(preview, run, look) + + self.warm_queue.append(("Preparando primeira vista", prepare)) + + def _prepare_ground_mip(self, name: str) -> None: + ground = self.watercolor.route.ground + if ground is not None: + ground.prepare_vertical_mip(name) + + def _prepare_ground_line_buffers(self, name: str, start: int, stop: int) -> None: + ground = self.watercolor.route.ground + if ground is not None: + ground.prepare_line_buffers(name, ground.rows[start:stop]) + + def _mark_scenery_loaded(self) -> None: + self._scenery_loaded = True + + def step_warm_up(self, budget_ms: float) -> None: + if not self.warmup_pending or budget_ms <= 0: return start = time.perf_counter() - while (time.perf_counter() - start) * 1000.0 < budget_ms: - task = next(self.warm_queue, None) - if task is None: - self.warm_queue = None - return + budget_s = budget_ms / 1000.0 + # Always execute at least one bounded unit for positive budgets. An + # indivisible image transform may overrun; record it rather than hiding it. + while self.warmup_pending: + label, task = self.warm_queue[self._warmup_index] + task_start = time.perf_counter() task() + elapsed_ms = (time.perf_counter() - task_start) * 1000.0 + self.warmup_last_task_ms = elapsed_ms + self.warmup_max_task_ms = max(self.warmup_max_task_ms, elapsed_ms) + self.warmup_overruns += int(elapsed_ms > budget_ms) + self.warmup_timings.append((label, elapsed_ms)) + # Completed tasks must not retain a previous run/appearance through + # their closures. Keep the label/slot for progress until the next queue. + self.warm_queue[self._warmup_index] = (label, self._prepared_task) + self._warmup_index += 1 + if time.perf_counter() - start >= budget_s: + break + + @staticmethod + def _prepared_task() -> None: + pass def update(self, dt: float) -> None: if not self.reduce_motion: @@ -343,26 +518,48 @@ def text(self, text: str, color: Tuple[int, int, int]) -> pygame.Surface: # ------------------------------------------------------------ quadro def background(self, screen: pygame.Surface, world: WorldStateView, cam: float) -> None: """Céu, chão, pista e margens (tudo o que fica atrás dos objetos).""" + context = RenderContext( + world=world, + camera_x=cam, + elapsed=self.elapsed, + high_contrast=self.high_contrast, + reduce_motion=self.reduce_motion, + contrast_scale=self.contrast_scale, + ) + self.compose_background(screen, context) + + def compose_background(self, screen: pygame.Surface, context: RenderContext) -> None: + """Compose background layers from a typed, immutable frame snapshot.""" + world = context.world + cam = context.camera_x self.cam = cam self.set_biome(world.biome) self.world = world - if self.watercolor.draw(screen, world, cam, self.reduce_motion): + if self.watercolor.draw(screen, world, cam, context.reduce_motion): self.cache.fog_color = (231, 232, 217) - if self.high_contrast: + if context.high_contrast: self.desaturate(screen) return - a, b, t = world.visual_stage_pair() + # Mantém a mesma curva suave do caminho aquarelado: o fallback não deve + # revelar um terço de vegetação no primeiro 9% por interpolação linear. + a, b, t = self.fallback_stage_looks(world.biome, world.visual) top = lerp_color(a.sky_top, b.sky_top, t) horizon = lerp_color(a.sky_horizon, b.sky_horizon, t) self.sky.update_atmosphere(world.visual, horizon, world.biome.polluted_haze) self.cache.fog_color = self.sky.fog_sprite_color solar = world.solar_share() - self.sky.draw(screen, top, horizon, cam, world.distance, solar, self.elapsed, world.challenge_theme) + self.sky.draw(screen, top, horizon, cam, world.distance, solar, context.elapsed, world.challenge_theme) pygame.draw.rect(screen, self.sky.fog_color, (0, C.HORIZON_Y, C.WIDTH, C.HEIGHT - C.HORIZON_Y)) self.draw_track(screen, world, world.stage_flags()) - if self.high_contrast: + if context.high_contrast: self.desaturate(screen) + @staticmethod + def fallback_stage_looks(biome, visual: float): + """Resolve watercolor stage indices to legacy sky looks for fallback.""" + a_index, b_index, blend = WatercolorWorld.stage_mix(visual) + return biome.stages[a_index], biome.stages[b_index], blend / 32.0 + def desaturate(self, screen: pygame.Surface) -> None: """Fundo em cinza escurecido, processado em um quarto da resolução. @@ -376,7 +573,7 @@ def desaturate(self, screen: pygame.Surface) -> None: pygame.transform.scale(screen, size, small) pygame.transform.grayscale(small, gray) gray.fill(HC_DIM, special_flags=pygame.BLEND_RGB_MULT) - pygame.transform.scale(gray, (w, h), screen) + pygame.transform.smoothscale(gray, (w, h), screen) def draw_run(self, screen: pygame.Surface, run: FlightView, look: PlaneLook, celebration: float = 0.0) -> None: """Quadro completo de um voo (sem HUD).""" @@ -386,6 +583,7 @@ def draw_run(self, screen: pygame.Surface, run: FlightView, look: PlaneLook, cel self.accessible_canvas = pygame.Surface((C.WIDTH, C.HEIGHT)).convert() self._draw_run(self.accessible_canvas, run, look) self.viewport = viewport(self.contrast_scale, self.player_rect.center, self.player_rect.size) + self.draw_edge_threats(self.accessible_canvas, run.world, self.viewport) # A ampliação mantém contornos nítidos e evita filtrar o quadro inteiro # outra vez; o fundo já recebeu a suavização de alto contraste. pygame.transform.scale(self.accessible_canvas.subsurface(self.viewport), screen.get_size(), screen) @@ -397,6 +595,63 @@ def screen_point(self, point: tuple) -> tuple: """Converte âncoras de setas/pictogramas pelo mesmo enquadramento do voo.""" return screen_point(point, self.viewport) + def draw_edge_threats(self, screen, world: WorldStateView, view_rect: pygame.Rect) -> int: + """Mark clipped upcoming hitboxes at the crop edge in magnified view. + + Indicators are derived from the real obstacle bounds, drawn inside the + same source viewport, and never change entity position or collision. + """ + if view_rect.size == (C.WIDTH, C.HEIGHT): + return 0 + margin = 15 + inner = view_rect.inflate(-2 * margin, -2 * margin) + if inner.width <= 0 or inner.height <= 0: + return 0 + marked = 0 + for entity in world.entities: + if entity.kind not in ("low", "gate", "tower") or entity.hit or entity.passed or entity.dodged: + continue + if entity.z <= C.PLAYER_Z or entity.z > C.PLAYER_Z + 1300 or fog_level(entity.z) >= C.FOG_LEVELS: + continue + bounds = self.hitbox_rect(entity.hitbox()) + if view_rect.contains(bounds): + continue + cx, cy = bounds.center + if bounds.left < view_rect.left: + point = (inner.left, int(clamp(cy, inner.top, inner.bottom))) + elif bounds.right > view_rect.right: + point = (inner.right, int(clamp(cy, inner.top, inner.bottom))) + elif bounds.top < view_rect.top: + point = (int(clamp(cx, inner.left, inner.right)), inner.top) + else: + point = (int(clamp(cx, inner.left, inner.right)), inner.bottom) + self._draw_edge_threat_marker(screen, point, entity.kind) + marked += 1 + return marked + + @staticmethod + def _draw_edge_threat_marker(screen, point: tuple, kind: str) -> None: + x, y = point + color = {"low": (214, 87, 43), "gate": (109, 69, 178), "tower": (22, 123, 132)}.get(kind, (214, 87, 43)) + diamond = [(x, y - 13), (x + 13, y), (x, y + 13), (x - 13, y)] + pygame.draw.polygon(screen, (8, 20, 44), diamond) + pygame.draw.polygon(screen, (255, 255, 255), [(x, y - 10), (x + 10, y), (x, y + 10), (x - 10, y)]) + pygame.draw.polygon(screen, color, [(x, y - 7), (x + 7, y), (x, y + 7), (x - 7, y)]) + if kind == "low": + for offset in (-3, 0, 3): + pygame.draw.line(screen, (255, 255, 255), (x - 3, y + offset), (x + 3, y + offset), 1) + elif kind == "gate": + pygame.draw.lines( + screen, + (255, 255, 255), + False, + [(x - 3, y + 3), (x - 3, y - 2), (x + 3, y - 2), (x + 3, y + 3)], + 1, + ) + else: + pygame.draw.line(screen, (255, 255, 255), (x, y - 4), (x, y + 4), 2) + pygame.draw.line(screen, (255, 255, 255), (x - 3, y), (x + 3, y), 1) + def _draw_run(self, screen: pygame.Surface, run: FlightView, look: PlaneLook) -> None: world = run.world self.mode = run.mode diff --git a/dobramundo/game/run.py b/dobramundo/game/run.py index 0079d45..d1390e9 100644 --- a/dobramundo/game/run.py +++ b/dobramundo/game/run.py @@ -45,6 +45,10 @@ def __init__( predictable_assistance: bool = False, community_challenge: bool = False, mission_preferred_waste: Optional[str] = None, + city_restoration: float = C.START_RESTORATION, + starting_stars: int = 0, + spawn_enabled: bool = True, + active_recovery: bool = True, ) -> None: self.biome = biome self.mode = mode @@ -63,7 +67,9 @@ def __init__( mode, random.Random(self.seed), self.intro, + restoration=city_restoration, challenge_seed=self.seed if community_challenge else None, + spawn_enabled=spawn_enabled, ) self.community_challenge = self.world.challenge_theme is not None self.focus = FocusMoment(mode, focus) @@ -78,6 +84,7 @@ def __init__( ) self.player = Player(plane_stats(self.parts), maneuvers) self.exploration = bool(exploration) + self.active_recovery = bool(active_recovery and spawn_enabled) self.predictable_assistance = bool(predictable_assistance) self.max_lives = C.ASSISTED_MAX_LIVES if self.predictable_assistance else C.MAX_LIVES self.invulnerable_duration = C.ASSISTED_INVULNERABLE_S if self.predictable_assistance else C.INVULNERABLE_S @@ -97,6 +104,8 @@ def __init__( self.invincible = False # modo de demonstração do supervisor (F2) self.game_over = False self.complete = False + self.city_restoration_at_start = self.world.restoration + self.local_restoration = C.START_RESTORATION # Um voo interrompido guarda as recompensas obtidas, mas não conclui a fase. self.interrupted = False self.finished = False # pronto para a tela de resultado @@ -104,7 +113,7 @@ def __init__( self.settlement = None self.settlement_callback_sent = False self.complete_timer = 0.0 - self.stars = 0 + self.stars = min(3, max(0, int(starting_stars))) self.stage = self.world.stage self.beams: List[Beam] = [] self.floating: List[FloatingText] = [] @@ -133,7 +142,7 @@ def speed(self) -> float: factor = C.NORMAL_SPEED_FACTOR if self.mode == "normal" else 1.0 return ( C.BASE_SPEED - + self.world.restoration * C.RESTORATION_SPEED_GAIN + + self.local_restoration * C.RESTORATION_SPEED_GAIN + self.world.difficulty * C.DIFFICULTY_SPEED_GAIN ) * factor @@ -146,9 +155,12 @@ def take_events(self) -> List[Event]: events, self.events = self.events, [] return events - def add_restoration(self, amount: float) -> None: + def add_restoration(self, amount: float, speed_amount: Optional[float] = None, *, earned: bool = True) -> None: """Transforma a cidade e publica mudança de estágio, estrelas e fase completa.""" - self.world.add_restoration(amount) + previous = self.world.restoration + self.world.add_restoration(amount, earned=earned) + speed_gain = amount if speed_amount is None else speed_amount + self.local_restoration = min(100.0, self.local_restoration + max(0.0, speed_gain)) stage = self.world.stage if stage > self.stage: self.stage = stage @@ -157,10 +169,17 @@ def add_restoration(self, amount: float) -> None: while self.stars < stars: self.stars += 1 self.emit("star", self.stars) - if self.world.restoration >= 100.0 and not self.complete: + if previous < 100.0 <= self.world.restoration and not self.complete: self.complete = True self.emit("complete", self.stars) + def add_active_recovery(self, dt: float) -> None: + """Recupera a cidade enquanto este voo está ativo, sem dar recursos ou acelerar o avião.""" + if self.world.restoration >= 100.0: + return + if self.active_recovery and dt > 0.0: + self.add_restoration(C.ACTIVE_RECOVERY_PER_S * dt, speed_amount=0.0, earned=False) + def collect_waste(self, entity: Entity) -> None: if entity.collected: return @@ -172,8 +191,12 @@ def collect_waste(self, entity: Entity) -> None: self.resources[entity.sprite] = self.resources.get(entity.sprite, 0) + RESOURCES_PER_WASTE[self.mode] if normal: gain = C.NORMAL_RESTORATION_PER_TRASH + speed_gain = C.NORMAL_SPEED_RESTORATION_PER_TRASH else: gain = C.RESTORATION_PER_TRASH + (C.RESTORATION_COMBO_BONUS if self.combo >= C.COMBO_BONUS_FROM else 0.0) + speed_gain = C.DIFFICULT_SPEED_RESTORATION_PER_TRASH + ( + C.RESTORATION_COMBO_BONUS if self.combo >= C.COMBO_BONUS_FROM else 0.0 + ) self.streak += 1 self.combo_timer = C.COMBO_WINDOW_S if not normal and self.streak % C.COMBO_STEP == 0: # Normal: pontos fixos, sem combo @@ -182,7 +205,7 @@ def collect_waste(self, entity: Entity) -> None: self.floating.append(FloatingText(f"+{value}", entity.x, entity.y + 35.0)) self.emit("collect", entity.sprite) self.mission_event("coletar", entity.sprite) - self.add_restoration(gain) + self.add_restoration(gain, speed_gain) def collect_powerup(self, entity: Entity) -> None: if entity.collected: @@ -251,6 +274,7 @@ def update(self, dt: float, ix: float = 0.0, iy: float = 0.0, target: Optional[T return real_dt = min(real_dt, remaining) self.flight_time += real_dt + self.add_active_recovery(real_dt) player = self.player aim = None if target is None else player.command_target(*target) command = target if target is not None else (ix, iy) diff --git a/dobramundo/game/settlement.py b/dobramundo/game/settlement.py new file mode 100644 index 0000000..9fcfc44 --- /dev/null +++ b/dobramundo/game/settlement.py @@ -0,0 +1,44 @@ +"""Aplica um voo ao perfil uma única vez, fora da apresentação de resultado.""" + +from __future__ import annotations + +from datetime import datetime + +from .. import config as C +from .run import FlightRun + + +def apply_run(profile, run: FlightRun) -> dict: + """Credita recompensas e registra a transformação persistente da cidade.""" + if run.settlement is not None: + return dict(run.settlement) + key = run.biome.key + best_before = profile.estrelas.get(key, 0) + for waste, amount in run.resources.items(): + profile.recursos[waste] = profile.recursos.get(waste, 0) + amount + profile.pontos += run.score + profile.voos += 1 + profile.voos_fase[key] = profile.voos_fase.get(key, 0) + 1 + profile.transformacao_cidades[key] = max( + profile.transformacao_cidades.get(key, C.START_RESTORATION), run.restoration + ) + entry = run.summary() + entry["data"] = datetime.now().isoformat(timespec="seconds") + entry["controle"] = profile.controle + profile.historico = (profile.historico + [entry])[-C.HISTORY_LIMIT :] + if run.stars > best_before: + profile.estrelas[key] = run.stars + record_key = f"{key}:{run.mode}" + new_record = run.score > profile.recordes.get(record_key, 0) + if new_record: + profile.recordes[record_key] = run.score + run.settlement = {"new_stars": max(0, run.stars - best_before), "new_record": new_record} + return dict(run.settlement) + + +def notify_settlement(app, run: FlightRun) -> None: + """Notifica o cartucho uma vez após o assentamento das recompensas.""" + if run.settlement_callback_sent or not run.settlement: + return + app.on_flight(app.profile.historico[-1]) + run.settlement_callback_sent = True diff --git a/dobramundo/game/world.py b/dobramundo/game/world.py index 256616e..230c1ab 100644 --- a/dobramundo/game/world.py +++ b/dobramundo/game/world.py @@ -113,19 +113,8 @@ def _axis_reachable( ) -def find_reachable_route(entities: List[Entity], mode: str) -> Optional[List[Tuple[float, float]]]: - """Planeja uma rota de referência por grupos de obstáculos no eixo x/altura. - - Cada obstáculo bloqueia a caixa real expandida pela hitbox comum do avião. - Grupos com janelas de colisão sobrepostas são resolvidos juntos; entre grupos, - o movimento usa o controlador de posição exponencial, 75% da velocidade - comum e margens explícitas de reação/reversão. A rota retorna um ponto seguro por - grupo ou None. É um filtro geométrico determinístico, não uma simulação de - câmera, input, latência, dinâmica contínua ou habilidade individual. - """ - stats = plane_stats({}) - half_w = C.PLANE_WIDTH * 0.42 * stats.hitbox - half_h = C.PLANE_HEIGHT * 0.5 * stats.hitbox +def _route_threat_groups(entities: List[Entity]) -> List[Tuple[float, float, List[Entity]]]: + """Agrupa janelas de colisão sobrepostas sem reordenar a pista por outro critério.""" threats = [ entity for entity in entities @@ -135,9 +124,6 @@ def find_reachable_route(entities: List[Entity], mode: str) -> Optional[List[Tup and not entity.dodged and entity.z - C.PLAYER_Z >= -ROUTE_Z_HALF ] - if not threats: - return [] - intervals = sorted( [(entity.z - C.PLAYER_Z - ROUTE_Z_HALF, entity.z - C.PLAYER_Z + ROUTE_Z_HALF, entity) for entity in threats], key=lambda item: (item[0], item[1]), @@ -150,6 +136,71 @@ def find_reachable_route(entities: List[Entity], mode: str) -> Optional[List[Tup groups[-1] = (old_start, max(old_end, end), members) else: groups.append((start, end, [entity])) + return groups + + +def _free_route_cells(members: List[Entity], half_w: float, half_h: float) -> set[Tuple[int, int]]: + """Células discretas cuja hitbox expandida não intercepta nenhum membro do grupo.""" + safe = set() + for xi, x in enumerate(_ROUTE_XS): + for yi, y in enumerate(_ROUTE_YS): + blocked = any( + abs(x - entity.x) <= entity.spec.width * 0.5 + half_w + and y + half_h >= entity.spec.y_min + and y - half_h <= entity.spec.y_max + for entity in members + ) + if not blocked: + safe.add((xi, yi)) + return safe + + +def _point_reachable( + start: Tuple[float, float], + end: Tuple[float, float], + elapsed: float, + speed: Tuple[float, float], + position_response: float, + velocity_response: float, +) -> bool: + """Os dois eixos devem caber no mesmo intervalo, com seus limites físicos.""" + return _axis_reachable( + start[0], + end[0], + elapsed, + speed[0], + -C.MAX_PLAYER_X, + C.MAX_PLAYER_X, + position_response, + velocity_response, + ) and _axis_reachable( + start[1], + end[1], + elapsed, + speed[1], + C.MIN_ALTITUDE, + C.MAX_ALTITUDE, + position_response, + velocity_response, + ) + + +def find_reachable_route(entities: List[Entity], mode: str) -> Optional[List[Tuple[float, float]]]: + """Planeja uma rota de referência por grupos de obstáculos no eixo x/altura. + + Cada obstáculo bloqueia a caixa real expandida pela hitbox comum do avião. + Grupos com janelas de colisão sobrepostas são resolvidos juntos; entre grupos, + o movimento usa o controlador de posição exponencial, 75% da velocidade + comum e margens explícitas de reação/reversão. A rota retorna um ponto seguro por + grupo ou None. É um filtro geométrico determinístico, não uma simulação de + câmera, input, latência, dinâmica contínua ou habilidade individual. + """ + stats = plane_stats({}) + half_w = C.PLANE_WIDTH * 0.42 * stats.hitbox + half_h = C.PLANE_HEIGHT * 0.5 * stats.hitbox + groups = _route_threat_groups(entities) + if not groups: + return [] factor = C.NORMAL_SPEED_FACTOR if mode == "normal" else 1.0 worst_case_speed = (C.BASE_SPEED + 100.0 * C.RESTORATION_SPEED_GAIN + C.DIFFICULTY_SPEED_GAIN) * factor @@ -159,25 +210,11 @@ def find_reachable_route(entities: List[Entity], mode: str) -> Optional[List[Tup velocity_response = C.FLIGHT_RESPONSE * stats.response movement_margin = ROUTE_REACTION_MARGIN_S + ROUTE_REVERSAL_MARGIN_S - def free_cells(members: List[Entity]) -> set[Tuple[int, int]]: - safe = set() - for xi, x in enumerate(_ROUTE_XS): - for yi, y in enumerate(_ROUTE_YS): - blocked = any( - abs(x - entity.x) <= entity.spec.width * 0.5 + half_w - and y + half_h >= entity.spec.y_min - and y - half_h <= entity.spec.y_max - for entity in members - ) - if not blocked: - safe.add((xi, yi)) - return safe - parents: List[Dict[Tuple[int, int], Optional[Tuple[int, int]]]] = [] previous: set[Tuple[int, int]] = set() previous_end = 0.0 for index, (start, end, members) in enumerate(groups): - safe = free_cells(members) + safe = _free_route_cells(members, half_w, half_h) if not safe: return None if index == 0: @@ -186,23 +223,11 @@ def free_cells(members: List[Entity]) -> set[Tuple[int, int]]: (xi, yi) for xi, x in enumerate(_ROUTE_XS) for yi, y in enumerate(_ROUTE_YS) - if _axis_reachable( - 0.0, - x, - available, - move_x, - -C.MAX_PLAYER_X, - C.MAX_PLAYER_X, - position_response, - velocity_response, - ) - and _axis_reachable( - C.START_ALTITUDE, - y, + if _point_reachable( + (0.0, C.START_ALTITUDE), + (x, y), available, - move_y, - C.MIN_ALTITUDE, - C.MAX_ALTITUDE, + (move_x, move_y), position_response, velocity_response, ) @@ -224,23 +249,11 @@ def free_cells(members: List[Entity]) -> set[Tuple[int, int]]: if ( cell not in current and cell in safe - and _axis_reachable( - _ROUTE_XS[px], - _ROUTE_XS[xi], + and _point_reachable( + (_ROUTE_XS[px], _ROUTE_YS[py]), + (_ROUTE_XS[xi], _ROUTE_YS[yi]), available, - move_x, - -C.MAX_PLAYER_X, - C.MAX_PLAYER_X, - position_response, - velocity_response, - ) - and _axis_reachable( - _ROUTE_YS[py], - _ROUTE_YS[yi], - available, - move_y, - C.MIN_ALTITUDE, - C.MAX_ALTITUDE, + (move_x, move_y), position_response, velocity_response, ) @@ -400,15 +413,18 @@ def __init__( intro: bool = False, restoration: Optional[float] = None, challenge_seed: Optional[int] = None, + spawn_enabled: bool = True, ) -> None: self.biome = biome self.mode = mode self.intro = intro # abertura didática: uma coisa por vez antes do sorteio + self.spawn_enabled = bool(spawn_enabled) self.challenge_theme: Optional[ChallengeTheme] = challenge_theme_for(biome.key, challenge_seed) self.rng = rng or random.Random() self.route_planner = RoutePlanner(mode) self.restoration = C.START_RESTORATION # transformação real (jogabilidade) self.visual = C.START_RESTORATION # transformação desenhada (alcança a real aos poucos) + self.spawn_restoration = C.START_RESTORATION # avanço de voo ganho; não inclui recuperação passiva self.segments: List[float] = [] self.segment_base = 0 self.entities: List[Entity] = [] @@ -441,14 +457,17 @@ def reset(self, restoration: float = C.START_RESTORATION) -> None: self.set_restoration(restoration) self.plan_intro() z = 520.0 - while z <= C.TRACK_LENGTH: - self.spawn_pattern(z) - z += self.rng.choice((100.0, 120.0, 140.0)) - self.spawn_lessons() + if self.spawn_enabled: + while z <= C.TRACK_LENGTH: + self.spawn_pattern(z) + z += self.rng.choice((100.0, 120.0, 140.0)) + if self.intro and self.spawn_enabled: + self.spawn_lessons() def set_restoration(self, value: float) -> None: """Atribuição direta (início, testes): o cenário fica no estado final na hora.""" self.restoration = clamp(float(value), 0.0, 100.0) + self.spawn_restoration = self.restoration self.visual = self.restoration self.green_since = {} self.solar_since = {} @@ -460,8 +479,10 @@ def set_restoration(self, value: float) -> None: self.solar_since[seg] = -1e12 # ------------------------------------------------------- transformação - def add_restoration(self, amount: float) -> None: + def add_restoration(self, amount: float, *, earned: bool = True) -> None: self.restoration = clamp(self.restoration + amount, 0.0, 100.0) + if earned: + self.spawn_restoration = clamp(self.spawn_restoration + amount, 0.0, 100.0) @property def stage(self) -> int: @@ -503,6 +524,12 @@ def solar_share(self) -> float: return 0.0 return smoothstep((self.visual - C.SOLAR_START_RESTORATION) / C.SOLAR_SWEEP_RESTORATION) + def spawn_solar_share(self) -> float: + """Share de ameaças solares baseado apenas no progresso ganho em jogo.""" + if self.spawn_restoration < C.SOLAR_START_RESTORATION: + return 0.0 + return smoothstep((self.spawn_restoration - C.SOLAR_START_RESTORATION) / C.SOLAR_SWEEP_RESTORATION) + def _sweep(self, since: Dict[int, float], rank, share: float) -> None: for seg in [s for s in since if s < self.segment_base]: del since[seg] @@ -546,7 +573,7 @@ def spawn_is_solar(self, z: float) -> bool: seg = self.segment_at(z) if seg is None: seg = self.segment_base + len(self.segments) - return seg in self.solar_since or self.solar_rank(seg) < self.solar_share() + return self.solar_rank(seg) < self.spawn_solar_share() def stage_flags(self): """Por trecho: (chão verde, estágio solarpunk), calculados uma vez por quadro.""" @@ -664,6 +691,8 @@ def add_reachable_obstacle(self, z: float, preferred_lane: int, preferred_kind: return False def spawn_pattern(self, z: float) -> None: + if not self.spawn_enabled: + return if self.in_intro(z): self.intro_pattern(z) return @@ -708,7 +737,8 @@ def advance(self, dt: float, dz: float) -> None: # usado pelo planner deve ser o mesmo que a entidade manterá neste quadro. for entity in self.entities: entity.z -= dz - self.spawn_lessons() + if self.intro and self.spawn_enabled: + self.spawn_lessons() segments = self.segments for i in range(len(segments)): segments[i] -= dz @@ -718,7 +748,8 @@ def advance(self, dt: float, dz: float) -> None: self.solar_since.pop(self.segment_base - 1, None) new_z = (segments[-1] if segments else C.SEGMENT_LENGTH) + C.SEGMENT_LENGTH segments.append(new_z) - self.spawn_pattern(new_z + 20.0) + if self.spawn_enabled: + self.spawn_pattern(new_z + 20.0) def prune(self) -> None: """Remove o que já passou pelo avião ou foi coletado (não cobre a visão).""" diff --git a/dobramundo/input/console.py b/dobramundo/input/console.py index dd03c7b..ccc4a24 100644 --- a/dobramundo/input/console.py +++ b/dobramundo/input/console.py @@ -17,11 +17,55 @@ import math from typing import List, Optional, Sequence, Tuple +from .floor import expand_reach, offset_reach from .pose import Landmark, Point RawPoint = Tuple[float, float, Optional[float]] # x, y e visibilidade (None: o modelo não informa) +def floor_position(tracking) -> Optional[Point]: + """Posição dos pés para o jogo, incluindo a folga que a API do console reserva. + + Um pé pode passar da borda enquanto o centro entre os dois ainda indica um + alvo válido. A API padrão deixa de retornar a média quando qualquer pé sai + da área; aqui conservamos o centro enquanto os dois pés ainda são rastreados + e descartamos apenas quando ambos estão fora. + """ + if tracking is None or tracking.missing or tracking.stale: + return None + feet = tracking.feet + left, right = feet.get("left"), feet.get("right") + if left is None or right is None: + return None + outside = tracking.out_of_area + if outside.get("left") and outside.get("right"): + return None + + center = (left.x + right.x) / 2.0, (left.y + right.y) / 2.0 + if not all(math.isfinite(value) for value in center): + return None + try: + target_active = tracking.control_target_active + target = tracking.control_target + except AttributeError: + # Compatibilidade com TSDKs anteriores ao marcador control_target. + target_active, target = False, None + if target_active: + if target is None or not (math.isfinite(target.x) and math.isfinite(target.y)): + return None + offset = target.x - center[0], target.y - center[1] + else: + offset = (0.0, 0.0) + return offset_reach(expand_reach(center), offset) + + +def floor_indicator_position(body) -> Optional[Point]: + """Retorna o cursor de voo apenas enquanto a leitura corporal está visível.""" + if body is None or body.error is not None or not body.visible: + return None + return body.position() + + def body_points(raw: Optional[Sequence[RawPoint]], mirror: bool = True) -> Optional[List[Landmark]]: """Pontos do console -> pontos do jogo (x espelhado; inválidos com visibilidade 0).""" if not raw or len(raw) < 33: diff --git a/dobramundo/input/floor.py b/dobramundo/input/floor.py index 23ee94a..35ee589 100644 --- a/dobramundo/input/floor.py +++ b/dobramundo/input/floor.py @@ -20,10 +20,37 @@ from .pose import MIN_VISIBILITY, Landmark, Point TARGETS: Tuple[Point, ...] = ((0.15, 0.15), (0.85, 0.15), (0.85, 0.85), (0.15, 0.85)) +REACH_INSET = 0.15 # margem física dos marcadores/apoios em relação ao centro dos pés +REACH_SPAN = 1.0 - 2.0 * REACH_INSET HEEL_TOE = ((29, 31), (30, 32)) # (calcanhar, ponta) do pé esquerdo e do direito no MediaPipe Pose Matrix = Tuple[Tuple[float, float, float], ...] +def expand_reach(point: Point) -> Point: + """Expande a zona confortável do centro dos pés (15–85%) para a tela inteira. + + Os quatro alvos de calibração ficam afastados das bordas para serem visíveis e + alcançáveis. A média dos pés, porém, não chega às bordas quando uma pegada está + próxima do limite; esta camada de alcance compensa essa folga sem alterar a + homografia nem o centro neutro. + """ + + def axis(value: float) -> float: + return min(1.0, max(0.0, (value - REACH_INSET) / REACH_SPAN)) + + return axis(point[0]), axis(point[1]) + + +def offset_reach(point: Point, offset: Point) -> Point: + """Aplica offsets de mira com atenuação nas bordas para preservar os cantos.""" + + def axis(value: float, shift: float) -> float: + edge_weight = min(1.0, max(0.0, 4.0 * value * (1.0 - value))) + return min(1.0, max(0.0, value + shift * edge_weight)) + + return axis(point[0], offset[0]), axis(point[1], offset[1]) + + def is_convex(points: Sequence[Point]) -> bool: """Quadrilátero convexo, sem cruzar, e com área que não seja minúscula.""" if len(points) != 4: @@ -118,9 +145,9 @@ def locate(landmarks: Optional[Sequence[Landmark]]) -> Optional[Point]: if image is None: return None x, y = unrotate_point(image[0], image[1], rotation, mirrored) - y -= lead # o cursor fica à frente dos dedos, visível, e não sob o corpo if not (-0.05 <= x <= 1.05 and -0.05 <= y <= 1.05): return None # fora da projeção - return min(1.0, max(0.0, x)), min(1.0, max(0.0, y)) + position = expand_reach((x, y)) + return offset_reach(position, (0.0, -lead)) return locate diff --git a/dobramundo/input/hub.py b/dobramundo/input/hub.py index 25e1293..939227c 100644 --- a/dobramundo/input/hub.py +++ b/dobramundo/input/hub.py @@ -188,12 +188,22 @@ def note_rendered(self) -> Optional[float]: """Marca o fim da composição para a leitura corporal consumida.""" if self.body is None: return None + try: return self.body.note_rendered() except AttributeError: # Compatibilidade com controles simples usados por hosts/fixtures antigos. return None + def note_presented(self): + """Associar apresentação à mesma sequência já consumida pelo controle.""" + if self.body is None: + return None + try: + return self.body.note_presented() + except AttributeError: + return None + def update(self, dt: float) -> None: self.mouse_moved += dt if self._pending_segment is not None: diff --git a/dobramundo/input/pose.py b/dobramundo/input/pose.py index da31103..42b485e 100644 --- a/dobramundo/input/pose.py +++ b/dobramundo/input/pose.py @@ -14,6 +14,8 @@ import time from typing import Callable, Dict, List, NamedTuple, Optional, Sequence, Tuple +from .telemetry import input_frame + Point = Tuple[float, float] # posição normalizada (0..1 na imagem) Landmark = Tuple[float, float, float] # x, y, visibilidade MIN_VISIBILITY = 0.5 @@ -286,6 +288,9 @@ def __init__( self.inference_ms = 0.0 self.capture_to_publish_ms = 0.0 self.reading_captured_at: Optional[float] = None + self.reading_consumed_at: Optional[float] = None + self.reading_rendered_at: Optional[float] = None + self.presented_frame = None self.capture_to_render_ms: Optional[float] = None self.stale_dropped = 0 self.read_failures = 0 @@ -353,6 +358,7 @@ def poll(self, dt: float) -> None: self.landmarks = landmarks self.preview = preview self.reading_captured_at = captured_at + self.reading_consumed_at = time.monotonic() if captured_at is None: self.capture_to_render_ms = None point = self.locate(landmarks) @@ -418,9 +424,21 @@ def note_rendered(self) -> Optional[float]: if self.reading_captured_at is None: self.capture_to_render_ms = None return None - self.capture_to_render_ms = max(0.0, (time.monotonic() - self.reading_captured_at) * 1000.0) + self.reading_rendered_at = time.monotonic() + self.capture_to_render_ms = max(0.0, (self.reading_rendered_at - self.reading_captured_at) * 1000.0) return self.capture_to_render_ms + def note_presented(self): + self.presented_frame = input_frame( + self._seq, + self.reading_captured_at, + self.reading_consumed_at, + self.reading_rendered_at, + time.monotonic(), + self.visible and self.calibrated, + ) + return self.presented_frame + def axes(self) -> Tuple[float, float]: return self.mapper.axes() diff --git a/dobramundo/input/telemetry.py b/dobramundo/input/telemetry.py new file mode 100644 index 0000000..844b3fd --- /dev/null +++ b/dobramundo/input/telemetry.py @@ -0,0 +1,37 @@ +"""Tempos da leitura consumida; nunca guarda imagem, posição ou identificação.""" + +from __future__ import annotations + +from dataclasses import dataclass +from typing import Dict, Optional + + +@dataclass(frozen=True) +class InputFrame: + sequence: int + captured_at: float + consumed_at: float + rendered_at: float + presented_at: float + usable: bool + + def milliseconds(self) -> Dict[str, float]: + return { + "capture_to_consume": max(0.0, self.consumed_at - self.captured_at) * 1000, + "consume_to_canvas": max(0.0, self.rendered_at - self.consumed_at) * 1000, + "canvas_to_present": max(0.0, self.presented_at - self.rendered_at) * 1000, + "capture_to_present": max(0.0, self.presented_at - self.captured_at) * 1000, + } + + +def input_frame( + sequence: int, + captured: Optional[float], + consumed: Optional[float], + rendered: Optional[float], + presented: float, + usable: bool, +) -> Optional[InputFrame]: + if captured is None or consumed is None or rendered is None or sequence < 1: + return None + return InputFrame(sequence, captured, consumed, rendered, presented, usable) diff --git a/dobramundo/instance_lock.py b/dobramundo/instance_lock.py new file mode 100644 index 0000000..c54f275 --- /dev/null +++ b/dobramundo/instance_lock.py @@ -0,0 +1,48 @@ +"""Uma instância desktop por pasta de dados; o SO libera o lock após queda. + +O arquivo permanece no disco: removê-lo permitiria dois locks em inodes distintos. +Este módulo não faz parte do cartucho, cujo armazenamento é gerido pelo console. +""" + +from __future__ import annotations + +import os +from pathlib import Path + + +class InstanceBusyError(RuntimeError): + """Outra instância já está usando estes pilotos.""" + + +class InstanceLock: + def __init__(self, directory: Path) -> None: + self.path = directory / ".dobramundo.lock" + self.stream = None + + def __enter__(self): + self.path.parent.mkdir(parents=True, exist_ok=True) + stream = self.path.open("a+b") + try: + if stream.tell() == 0: + stream.write(b"0") + stream.flush() + stream.seek(0) + if os.name == "nt": + import msvcrt + + msvcrt.locking(stream.fileno(), msvcrt.LK_NBLCK, 1) + else: + import fcntl + + fcntl.flock(stream.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB) + except OSError as exc: + stream.close() + raise InstanceBusyError("O Dobramundo já está aberto com estes pilotos. Use a janela existente.") from exc + self.stream = stream + return self + + def __exit__(self, *_): + if self.stream is not None: + # Fechar o handle libera o lock também em KeyboardInterrupt e erros. + self.stream.close() + self.stream = None diff --git a/dobramundo/main.py b/dobramundo/main.py index 45fc370..2d4855b 100644 --- a/dobramundo/main.py +++ b/dobramundo/main.py @@ -51,6 +51,7 @@ def main(argv: Optional[List[str]] = None) -> int: import pygame from .core import first_scene + from .instance_lock import InstanceBusyError, InstanceLock from .log import setup_logging setup_logging() @@ -63,9 +64,13 @@ def main(argv: Optional[List[str]] = None) -> int: return run_self_test(frames, require_camera="--exigir-camera" in argv) from .app import App - app = App(audio="--sem-som" not in argv) - app.run(first_scene(app)) + with InstanceLock(user_data_dir()): + app = App(audio="--sem-som" not in argv) + app.run(first_scene(app)) return 0 + except InstanceBusyError as exc: + show_message(APP_NAME, str(exc)) + return 2 except KeyboardInterrupt: return 0 except Exception: diff --git a/dobramundo/persistence.py b/dobramundo/persistence.py index 1a64c23..3626aee 100644 --- a/dobramundo/persistence.py +++ b/dobramundo/persistence.py @@ -1,247 +1,54 @@ -"""Perfil do jogador num único JSON versionado (dobramundo_perfil.json). +"""Armazenamento atômico, recuperação e catálogo local de pilotos. -Guarda progresso (estrelas, recursos, vila, peças), personalização (avião, -pintura, piloto) e opções (controle, som, acessibilidade, superfície). Na -primeira execução, importa o recorde, os pontos e a pintura do protótipo -Eco Runner, se existirem. +O modelo e as migrações ficam em profile_model; nomes públicos antigos são +reexportados para manter o contrato com cenas, console e ferramentas. """ from __future__ import annotations +import hashlib import json import os import re import uuid -from dataclasses import asdict, dataclass, field +from dataclasses import dataclass from datetime import datetime, timezone from pathlib import Path -from typing import Dict, List, Optional - -from .config import HISTORY_LIMIT -from .content.biomes import BIOME_ORDER -from .content.items import WASTE_KEYS -from .content.pilot import DEFAULT_PILOT, normalize_pilot -from .content.planes import ( - DEFAULT_PATTERN, - DEFAULT_PLANE, - FREE_PATTERNS, - PATTERN_PRICES, - PLANE_COLOR_KEYS, - PLANE_KEYS, - PLANE_PATTERN_KEYS, -) -from .content.progress import MAX_PART_LEVEL, PART_KEYS, VILLAGE_KEYS +from typing import List, Optional + +from .content.planes import PLANE_KEYS from .log import log from .paths import legacy_data_dirs, profiles_dir, profiles_index_path, user_data_dir +from .profile_model import ( + CONTROL_SEGMENTS as CONTROL_SEGMENTS, +) +from .profile_model import ( + GAME_MODES as GAME_MODES, +) +from .profile_model import ( + MODE_LABELS as MODE_LABELS, +) +from .profile_model import ( + SCHEMA_VERSION as SCHEMA_VERSION, +) +from .profile_model import ( + SURFACES as SURFACES, +) +from .profile_model import ( + Options as Options, +) +from .profile_model import ( + Profile as Profile, +) +from .profile_model import ( + ProfileError as ProfileError, +) PROFILE_FILENAME = "dobramundo_perfil.json" DEFAULT_PROFILE_SLOT = "principal" PROFILE_INDEX_VERSION = 1 PROFILE_SLOT_LIMIT = 8 _READ_BLOCKED_SLOT_IDS = set() -SCHEMA_VERSION = 1 -GAME_MODES = ("normal", "dificil") -MODE_LABELS = {"normal": "Normal", "dificil": "Difícil"} -# Segmentos corporais de controle (GDD, seção 4) e o teclado do supervisor. -CONTROL_SEGMENTS = ("teclado", "pes", "tronco_pe", "tronco_sentado", "mao_direita", "mao_esquerda", "cabeca") -SURFACES = ("monitor", "parede", "mesa", "chao") - - -@dataclass -class Options: - volume_geral: float = 0.8 - volume_musica: float = 0.6 - volume_efeitos: float = 0.8 - silencio: bool = False - alto_contraste: bool = False - superficie: str = "monitor" - espelhar: bool = False # inverte a imagem na horizontal (projeção por trás) - rotacao: int = 0 # 0, 90, 180 ou 270 graus no sentido horário (projetor no teto, chão, mesa) - tela_cheia: bool = False - permanencia: float = 2.0 # segundos parado sobre um botão para selecioná-lo (padrão do console) - sensibilidade: float = 1.0 # alcance do movimento corporal (maior = movimento menor basta) - inverter_vertical: bool = False # câmera vista de cima (chão, mesa): subir e descer trocados - inverter_horizontal: bool = False # imagem da câmera sem espelho: esquerda e direita trocadas - controle_posicao: bool = True # o corpo indica onde o avião fica (não: indica a velocidade) - momento_foco: bool = True # câmera lenta guiada perto de uma batida - efeitos_fortes: bool = True # clarões e tremor de tela (desligar para sensibilidade sensorial) - reduzir_movimento: bool = False # menos movimento decorativo; mantém avanço do percurso - abertura_automatica: bool = False # avança sozinha a história opcional - centralizar_sozinho: bool = False # recentralização automática após perda longa (opt-in) - # Calibração do chão (projeção + webcam): onde a câmera vê os 4 alvos projetados - # (superior esquerdo, superior direito, inferior direito, inferior esquerdo), 0..1. - chao_pontos: List[List[float]] = field(default_factory=list) - alvo_frente: float = 0.12 # cursor dos pés à frente dos dedos (fração da altura da imagem) - permanencia_editor: float = 3.0 - escala_contraste: float = 1.3 - modo_exploracao: bool = False - limite_voo_s: int = 0 - assistencia_previsivel: bool = False - semente_desafio: int = 0 - - -@dataclass -class Profile: - versao: int = SCHEMA_VERSION - consentimento: bool = False # supervisor leu o aviso de uso e privacidade - consentimento_em: str = "" # data e hora (ISO) da confirmação do supervisor - abertura_vista: bool = False - piloto_montado: bool = False # a criança já montou o personagem (primeira tela do jogo) - tutorial_visto: bool = False # ensaio opcional de controles antes da primeira decolagem - modo: str = "normal" - controle: str = "teclado" - estrelas: Dict[str, int] = field(default_factory=dict) - recordes: Dict[str, int] = field(default_factory=dict) # "bioma:modo" -> pontos - recursos: Dict[str, int] = field(default_factory=lambda: {k: 0 for k in WASTE_KEYS}) - pontos: int = 0 # carteira da loja de padrões - padroes_comprados: List[str] = field(default_factory=list) - vila: List[str] = field(default_factory=list) - pedidos_vila: Dict[str, str] = field(default_factory=dict) - pecas: Dict[str, int] = field(default_factory=lambda: {k: 0 for k in PART_KEYS}) - aviao: str = DEFAULT_PLANE - cores: Dict[str, str] = field(default_factory=dict) # avião -> cor - padroes: Dict[str, str] = field(default_factory=dict) # avião -> padrão - piloto: Dict[str, str] = field(default_factory=lambda: dict(DEFAULT_PILOT)) - voos: int = 0 - voos_fase: Dict[str, int] = field(default_factory=dict) # bioma -> voos concluídos - historico: List[dict] = field(default_factory=list) # resumo dos últimos voos (supervisor) - opcoes: Options = field(default_factory=Options) - - # ------------------------------------------------------------ consultas - @property - def owned_patterns(self) -> set: - return set(FREE_PATTERNS) | set(self.padroes_comprados) - - def plane_color(self, plane: str) -> str: - return self.cores.get(plane, "original") - - def plane_pattern(self, plane: str) -> str: - return self.padroes.get(plane, DEFAULT_PATTERN) - - def record(self, biome: str, mode: str) -> int: - return self.recordes.get(f"{biome}:{mode}", 0) - - def total_stars(self) -> int: - return sum(self.estrelas.values()) - - def unlocked(self, biome: str) -> bool: - """A Caatinga abre com 1 estrela em Manaus (a primeira fase está sempre aberta).""" - index = BIOME_ORDER.index(biome) - return index == 0 or self.estrelas.get(BIOME_ORDER[index - 1], 0) >= 1 - - # ------------------------------------------------------------ validação - def normalize(self) -> Profile: - self.modo = self.modo if self.modo in GAME_MODES else "normal" - self.controle = self.controle if self.controle in CONTROL_SEGMENTS else "teclado" - self.aviao = self.aviao if self.aviao in PLANE_KEYS else DEFAULT_PLANE - self.estrelas = {b: max(0, min(3, int(self.estrelas.get(b, 0)))) for b in BIOME_ORDER if self.estrelas.get(b)} - self.recursos = {k: max(0, int(self.recursos.get(k, 0))) for k in WASTE_KEYS} - self.pontos = max(0, int(self.pontos)) - self.padroes_comprados = sorted({p for p in self.padroes_comprados if p in PATTERN_PRICES}) - self.vila = [k for k in VILLAGE_KEYS if k in set(self.vila)] - self.pedidos_vila = { - str(k): str(v) - for k, v in self.pedidos_vila.items() - if k in VILLAGE_KEYS and v in ("solicitada", "concluida") - } - self.pecas = {k: max(0, min(MAX_PART_LEVEL, int(self.pecas.get(k, 0)))) for k in PART_KEYS} - self.cores = {m: c for m, c in self.cores.items() if m in PLANE_KEYS and c in PLANE_COLOR_KEYS} - self.padroes = {m: c for m, c in self.padroes.items() if m in PLANE_KEYS and c in PLANE_PATTERN_KEYS} - self.piloto = normalize_pilot(self.piloto) - self.voos_fase = {b: max(0, int(self.voos_fase[b])) for b in BIOME_ORDER if b in self.voos_fase} - self.historico = [_flat(e) for e in self.historico if isinstance(e, dict)][-HISTORY_LIMIT:] - o = self.opcoes - for name in ("volume_geral", "volume_musica", "volume_efeitos"): - setattr(o, name, max(0.0, min(1.0, float(vars(o)[name])))) - o.superficie = o.superficie if o.superficie in SURFACES else "monitor" - o.rotacao = o.rotacao if o.rotacao in (0, 90, 180, 270) else 0 - o.alvo_frente = max(0.0, min(0.35, float(o.alvo_frente))) - o.chao_pontos = _floor_points(o.chao_pontos) - o.permanencia = max(1.0, min(3.5, float(o.permanencia))) - o.permanencia_editor = max(1.0, min(5.0, float(o.permanencia_editor))) - o.escala_contraste = max(1.0, min(1.6, float(o.escala_contraste))) - o.sensibilidade = max(0.5, min(2.0, float(o.sensibilidade))) - o.modo_exploracao = o.modo_exploracao if isinstance(o.modo_exploracao, bool) else False - o.limite_voo_s = o.limite_voo_s if type(o.limite_voo_s) is int and o.limite_voo_s in (0, 120, 180, 240) else 0 - o.assistencia_previsivel = o.assistencia_previsivel if isinstance(o.assistencia_previsivel, bool) else False - o.semente_desafio = ( - o.semente_desafio if type(o.semente_desafio) is int and 0 <= o.semente_desafio <= 0xFFFFFFFF else 0 - ) - return self - - # ---------------------------------------------------------------- JSON - def to_dict(self) -> dict: - return asdict(self) - - @classmethod - def from_dict(cls, data: dict) -> Profile: - """Lê campo a campo, aceitando só o tipo esperado. ProfileError se não der para validar.""" - profile = cls() - if not isinstance(data, dict): - raise ProfileError("o perfil não é um objeto JSON") - for name in profile.__dataclass_fields__: - if name != "opcoes" and name in data: - _assign(profile, name, data[name]) - options = data.get("opcoes") - if isinstance(options, dict) and "rotacao" not in options and _as_bool(options.get("girar", False)): - options = {**options, "rotacao": 180} # perfis até a 1.2 tinham só "girar 180°" - if isinstance(options, dict): - for name in profile.opcoes.__dataclass_fields__: - if name in options: - if name in ("modo_exploracao", "assistencia_previsivel"): - if not isinstance(options[name], bool): - continue - elif name == "limite_voo_s": - if type(options[name]) is not int or options[name] not in (0, 120, 180, 240): - continue - elif name == "semente_desafio": - if type(options[name]) is not int or not 0 <= options[name] <= 0xFFFFFFFF: - continue - _assign(profile.opcoes, name, options[name]) - try: - return profile.normalize() - except (TypeError, ValueError, AttributeError, IndexError) as exc: - raise ProfileError(f"perfil inválido ({exc.__class__.__name__})") from exc - - -def _floor_points(points: object) -> List[List[float]]: - """Quatro pontos (x, y) entre 0 e 1, ou nenhum (calibração ausente ou inválida).""" - try: - result = [[float(p[0]), float(p[1])] for p in points] # type: ignore[union-attr] - except (TypeError, ValueError, IndexError): - return [] - ok = len(result) == 4 and all(0.0 <= v <= 1.0 for p in result for v in p) - return result if ok else [] - - -def _flat(entry: dict) -> dict: - """Entrada do histórico só com textos e números (nada que quebre o JSON).""" - return {str(k): v for k, v in entry.items() if isinstance(v, (str, int, float)) and not isinstance(v, bool)} - - -class ProfileError(ValueError): - """Perfil salvo que não pôde ser lido ou validado.""" - - -def _as_bool(value: object) -> bool: - """Booleanos também vindos de texto ("false", "0", "não") quando o JSON foi editado à mão.""" - if isinstance(value, str): - return value.strip().lower() not in ("", "0", "false", "falso", "nao", "não", "no", "off") - return bool(value) - - -def _assign(target: object, name: str, value: object) -> None: - """Grava value em target.name convertendo para o tipo do valor padrão (ignora o que não serve).""" - default = vars(target)[name] - try: - if isinstance(default, bool): - setattr(target, name, _as_bool(value)) - elif isinstance(default, (int, float)) and not isinstance(value, bool): - setattr(target, name, type(default)(value)) - elif isinstance(default, type(value)): - setattr(target, name, value) - except (TypeError, ValueError): - pass @dataclass(frozen=True) @@ -351,6 +158,17 @@ def _profile_from_bytes(raw: bytes) -> Optional[Profile]: return None +def _future_profile(raw: bytes) -> bool: + data = _decode_json(raw) + return data is not None and type(data.get("versao")) is int and data["versao"] > SCHEMA_VERSION + + +def _remember_revision(profile: Profile, path: Path, raw: bytes) -> Profile: + # Metadado de sessão: não é um campo do save nem vai para asdict(). + vars(profile)["_disk_revision"] = (str(path), hashlib.sha256(raw).hexdigest()) + return profile + + def _registry_from_bytes(raw: bytes) -> Optional[dict]: data = _decode_json(raw) if data is None or data.get("version") != PROFILE_INDEX_VERSION: @@ -410,6 +228,9 @@ def _registry_with_notice() -> tuple[dict, Optional[str]]: registry = _registry_from_bytes(raw) if raw is not None else None if registry is not None: return registry, None + decoded = _decode_json(raw) if raw is not None else None + if decoded and type(decoded.get("version")) is int and decoded["version"] > PROFILE_INDEX_VERSION: + return _default_registry(), "Esta lista de pilotos foi salva por uma versão mais nova. Atualize o jogo." if not missing and not read_error: log.warning("índice de perfis inválido: %s", path) corrupt_copy = _archive_corrupt(path) @@ -502,10 +323,16 @@ def _load_profile_with_notice(slot_id: str, allow_legacy: bool) -> tuple[Profile _READ_BLOCKED_SLOT_IDS.add(slot_id) return Profile(), "Não foi possível ler este perfil. Um perfil vazio foi aberto." else: + if _future_profile(raw): + _READ_BLOCKED_SLOT_IDS.add(slot_id) + return ( + Profile(), + "Este piloto foi salvo por uma versão mais nova. Atualize o jogo; o arquivo foi preservado.", + ) profile = _profile_from_bytes(raw) if profile is not None: _READ_BLOCKED_SLOT_IDS.discard(slot_id) - return profile, None + return _remember_revision(profile, path, raw), None if existed: log.warning("perfil inválido: %s", path) corrupt_copy = _archive_corrupt(path) @@ -528,7 +355,7 @@ def _load_profile_with_notice(slot_id: str, allow_legacy: bool) -> tuple[Profile notice = "Recuperei o último salvamento íntegro. Confira se o progresso recente aparece." if not restored: notice = "Recuperei o último salvamento íntegro na memória, mas não consegui restaurar o arquivo." - return profile, notice + return _remember_revision(profile, path, backup_raw), notice if existed: notice = "O arquivo do perfil estava danificado; guardei uma cópia. Confira os dados carregados." else: @@ -540,7 +367,7 @@ def _load_profile_with_notice(slot_id: str, allow_legacy: bool) -> tuple[Profile profile = Profile() if allow_legacy: import_legacy(profile) - return profile, notice + return _remember_revision(profile, path, b""), notice def load_profile_with_notice(slot_id: str = DEFAULT_PROFILE_SLOT) -> tuple[Profile, Optional[str]]: @@ -599,6 +426,13 @@ def save_profile(profile: Profile, slot_id: str = DEFAULT_PROFILE_SLOT) -> bool: except OSError as exc: log.error("não foi possível ler o perfil antes de salvar %s (%s)", path, exc) return False + if _future_profile(previous): + log.error("perfil de versão futura preservado: %s", path) + return False + revision = vars(profile).get("_disk_revision") + if revision is not None and revision != (str(path), hashlib.sha256(previous).hexdigest()): + log.error("o perfil mudou em outra sessão; gravação cancelada: %s", path) + return False if _valid_profile_bytes(previous): if not _rotate_backup(path, previous, _profile_from_bytes): return False @@ -606,7 +440,10 @@ def save_profile(profile: Profile, slot_id: str = DEFAULT_PROFILE_SLOT) -> bool: log.warning("preservando perfil inválido antes de salvar: %s", path) if _archive_corrupt(path) is None: return False - return _atomic_write(path, raw) + if not _atomic_write(path, raw): + return False + _remember_revision(profile, path, raw) + return True def import_legacy(profile: Profile) -> bool: diff --git a/dobramundo/profile_model.py b/dobramundo/profile_model.py new file mode 100644 index 0000000..202dd7d --- /dev/null +++ b/dobramundo/profile_model.py @@ -0,0 +1,281 @@ +"""Modelo validado e migrações de perfis, sem operações de disco.""" + +from __future__ import annotations + +import math +from dataclasses import asdict, dataclass, field +from typing import Dict, List + +from .config import HISTORY_LIMIT +from .content.biomes import BIOME_ORDER +from .content.items import WASTE_KEYS +from .content.pilot import DEFAULT_PILOT, normalize_pilot +from .content.planes import ( + DEFAULT_PATTERN, + DEFAULT_PLANE, + FREE_PATTERNS, + PATTERN_PRICES, + PLANE_COLOR_KEYS, + PLANE_KEYS, + PLANE_PATTERN_KEYS, +) +from .content.progress import MAX_PART_LEVEL, PART_KEYS, STAR_THRESHOLDS, VILLAGE_KEYS + +SCHEMA_VERSION = 2 +GAME_MODES = ("normal", "dificil") +MODE_LABELS = {"normal": "Normal", "dificil": "Difícil"} +# Segmentos corporais de controle (GDD, seção 4) e o teclado do supervisor. +CONTROL_SEGMENTS = ("teclado", "pes", "tronco_pe", "tronco_sentado", "mao_direita", "mao_esquerda", "cabeca") +SURFACES = ("monitor", "parede", "mesa", "chao") + + +@dataclass +class Options: + volume_geral: float = 0.8 + volume_musica: float = 0.6 + volume_efeitos: float = 0.8 + silencio: bool = False + alto_contraste: bool = False + superficie: str = "monitor" + espelhar: bool = False # inverte a imagem na horizontal (projeção por trás) + rotacao: int = 0 # 0, 90, 180 ou 270 graus no sentido horário (projetor no teto, chão, mesa) + tela_cheia: bool = False + permanencia: float = 2.0 # segundos parado sobre um botão para selecioná-lo (padrão do console) + sensibilidade: float = 1.0 # alcance do movimento corporal (maior = movimento menor basta) + inverter_vertical: bool = False # câmera vista de cima (chão, mesa): subir e descer trocados + inverter_horizontal: bool = False # imagem da câmera sem espelho: esquerda e direita trocadas + controle_posicao: bool = True # o corpo indica onde o avião fica (não: indica a velocidade) + momento_foco: bool = True # câmera lenta guiada perto de uma batida + efeitos_fortes: bool = True # clarões e tremor de tela (desligar para sensibilidade sensorial) + reduzir_movimento: bool = False # menos movimento decorativo; mantém avanço do percurso + abertura_automatica: bool = False # avança sozinha a história opcional + centralizar_sozinho: bool = False # recentralização automática após perda longa (opt-in) + # Calibração do chão (projeção + webcam): onde a câmera vê os 4 alvos projetados + # (superior esquerdo, superior direito, inferior direito, inferior esquerdo), 0..1. + chao_pontos: List[List[float]] = field(default_factory=list) + alvo_frente: float = 0.12 # cursor dos pés à frente dos dedos (fração da altura da imagem) + permanencia_editor: float = 3.0 + escala_contraste: float = 1.3 + modo_exploracao: bool = False + limite_voo_s: int = 0 + assistencia_previsivel: bool = False + semente_desafio: int = 0 + + +@dataclass +class Profile: + versao: int = SCHEMA_VERSION + consentimento: bool = False # supervisor leu o aviso de uso e privacidade + consentimento_em: str = "" # data e hora (ISO) da confirmação do supervisor + abertura_vista: bool = False + piloto_montado: bool = False # a criança já montou o personagem (primeira tela do jogo) + tutorial_visto: bool = False # ensaio opcional de controles antes da primeira decolagem + modo: str = "normal" + controle: str = "teclado" + transformacao_cidades: Dict[str, float] = field(default_factory=dict) + apoio_escolhido: bool = False + estrelas: Dict[str, int] = field(default_factory=dict) + recordes: Dict[str, int] = field(default_factory=dict) # "bioma:modo" -> pontos + recursos: Dict[str, int] = field(default_factory=lambda: {k: 0 for k in WASTE_KEYS}) + pontos: int = 0 # carteira da loja de padrões + padroes_comprados: List[str] = field(default_factory=list) + vila: List[str] = field(default_factory=list) + pedidos_vila: Dict[str, str] = field(default_factory=dict) + pecas: Dict[str, int] = field(default_factory=lambda: {k: 0 for k in PART_KEYS}) + aviao: str = DEFAULT_PLANE + cores: Dict[str, str] = field(default_factory=dict) # avião -> cor + padroes: Dict[str, str] = field(default_factory=dict) # avião -> padrão + piloto: Dict[str, str] = field(default_factory=lambda: dict(DEFAULT_PILOT)) + voos: int = 0 + voos_fase: Dict[str, int] = field(default_factory=dict) # bioma -> voos concluídos + historico: List[dict] = field(default_factory=list) # resumo dos últimos voos (supervisor) + opcoes: Options = field(default_factory=Options) + + # ------------------------------------------------------------ consultas + @property + def owned_patterns(self) -> set: + return set(FREE_PATTERNS) | set(self.padroes_comprados) + + def plane_color(self, plane: str) -> str: + return self.cores.get(plane, "original") + + def plane_pattern(self, plane: str) -> str: + return self.padroes.get(plane, DEFAULT_PATTERN) + + def record(self, biome: str, mode: str) -> int: + return self.recordes.get(f"{biome}:{mode}", 0) + + def total_stars(self) -> int: + return sum(self.estrelas.values()) + + def unlocked(self, biome: str) -> bool: + """Os biomas implementados ficam disponíveis desde o início.""" + return biome in BIOME_ORDER + + # ------------------------------------------------------------ validação + def normalize(self) -> Profile: + self.versao = SCHEMA_VERSION + self.transformacao_cidades = { + b: min(100.0, max(0.0, float(v))) + for b, v in self.transformacao_cidades.items() + if b in BIOME_ORDER and isinstance(v, (int, float)) and not isinstance(v, bool) and math.isfinite(v) + } + self.modo = self.modo if self.modo in GAME_MODES else "normal" + self.controle = self.controle if self.controle in CONTROL_SEGMENTS else "teclado" + self.aviao = self.aviao if self.aviao in PLANE_KEYS else DEFAULT_PLANE + self.estrelas = {b: max(0, min(3, int(self.estrelas.get(b, 0)))) for b in BIOME_ORDER if self.estrelas.get(b)} + self.recursos = {k: max(0, int(self.recursos.get(k, 0))) for k in WASTE_KEYS} + self.pontos = max(0, int(self.pontos)) + self.padroes_comprados = sorted({p for p in self.padroes_comprados if p in PATTERN_PRICES}) + self.vila = [k for k in VILLAGE_KEYS if k in set(self.vila)] + self.pedidos_vila = { + str(k): str(v) + for k, v in self.pedidos_vila.items() + if k in VILLAGE_KEYS and v in ("solicitada", "concluida") + } + self.pecas = {k: max(0, min(MAX_PART_LEVEL, int(self.pecas.get(k, 0)))) for k in PART_KEYS} + self.cores = {m: c for m, c in self.cores.items() if m in PLANE_KEYS and c in PLANE_COLOR_KEYS} + self.padroes = {m: c for m, c in self.padroes.items() if m in PLANE_KEYS and c in PLANE_PATTERN_KEYS} + self.piloto = normalize_pilot(self.piloto) + self.voos_fase = {b: max(0, int(self.voos_fase[b])) for b in BIOME_ORDER if b in self.voos_fase} + self.historico = [_flat(e) for e in self.historico if isinstance(e, dict)][-HISTORY_LIMIT:] + o = self.opcoes + for name in ("volume_geral", "volume_musica", "volume_efeitos"): + setattr(o, name, max(0.0, min(1.0, float(vars(o)[name])))) + o.superficie = o.superficie if o.superficie in SURFACES else "monitor" + o.rotacao = o.rotacao if o.rotacao in (0, 90, 180, 270) else 0 + o.alvo_frente = max(0.0, min(0.35, float(o.alvo_frente))) + o.chao_pontos = _floor_points(o.chao_pontos) + o.permanencia = max(1.0, min(3.5, float(o.permanencia))) + o.permanencia_editor = max(1.0, min(5.0, float(o.permanencia_editor))) + o.escala_contraste = max(1.0, min(1.6, float(o.escala_contraste))) + o.sensibilidade = max(0.5, min(2.0, float(o.sensibilidade))) + o.modo_exploracao = o.modo_exploracao if isinstance(o.modo_exploracao, bool) else False + o.limite_voo_s = o.limite_voo_s if type(o.limite_voo_s) is int and o.limite_voo_s in (0, 120, 180, 240) else 0 + o.assistencia_previsivel = o.assistencia_previsivel if isinstance(o.assistencia_previsivel, bool) else False + o.semente_desafio = ( + o.semente_desafio if type(o.semente_desafio) is int and 0 <= o.semente_desafio <= 0xFFFFFFFF else 0 + ) + return self + + # ---------------------------------------------------------------- JSON + def to_dict(self) -> dict: + return asdict(self) + + @classmethod + def from_dict(cls, data: dict) -> Profile: + """Lê campo a campo, aceitando só o tipo esperado. ProfileError se não der para validar.""" + profile = cls() + if not isinstance(data, dict): + raise ProfileError("o perfil não é um objeto JSON") + data = migrate_profile(data) + for name in profile.__dataclass_fields__: + if name != "opcoes" and name in data: + _assign(profile, name, data[name]) + options = data.get("opcoes") + if isinstance(options, dict) and "rotacao" not in options and _as_bool(options.get("girar", False)): + options = {**options, "rotacao": 180} # perfis até a 1.2 tinham só "girar 180°" + if isinstance(options, dict): + for name in profile.opcoes.__dataclass_fields__: + if name in options: + if name in ("modo_exploracao", "assistencia_previsivel"): + if not isinstance(options[name], bool): + continue + elif name == "limite_voo_s": + if type(options[name]) is not int or options[name] not in (0, 120, 180, 240): + continue + elif name == "semente_desafio": + if type(options[name]) is not int or not 0 <= options[name] <= 0xFFFFFFFF: + continue + _assign(profile.opcoes, name, options[name]) + try: + return profile.normalize() + except (TypeError, ValueError, AttributeError, IndexError) as exc: + raise ProfileError(f"perfil inválido ({exc.__class__.__name__})") from exc + + +def _floor_points(points: object) -> List[List[float]]: + """Quatro pontos (x, y) entre 0 e 1, ou nenhum (calibração ausente ou inválida).""" + if not isinstance(points, (list, tuple)): + return [] + try: + result = [[float(p[0]), float(p[1])] for p in points] + except (TypeError, ValueError, IndexError): + return [] + ok = len(result) == 4 and all(0.0 <= v <= 1.0 for p in result for v in p) + return result if ok else [] + + +def _flat(entry: dict) -> dict: + """Entrada do histórico só com textos e números (nada que quebre o JSON).""" + return {str(k): v for k, v in entry.items() if isinstance(v, (str, int, float)) and not isinstance(v, bool)} + + +class ProfileError(ValueError): + """Perfil salvo que não pôde ser lido ou validado.""" + + +def _as_bool(value: object) -> bool: + """Booleanos também vindos de texto ("false", "0", "não") quando o JSON foi editado à mão.""" + if isinstance(value, str): + return value.strip().lower() not in ("", "0", "false", "falso", "nao", "não", "no", "off") + return bool(value) + + +def _assign(target: object, name: str, value: object) -> None: + """Grava value em target.name convertendo para o tipo do valor padrão (ignora o que não serve).""" + default = vars(target)[name] + try: + if isinstance(default, bool): + setattr(target, name, _as_bool(value)) + elif isinstance(default, (int, float)) and isinstance(value, (str, int, float)) and not isinstance(value, bool): + setattr(target, name, type(default)(value)) + elif isinstance(default, type(value)): + setattr(target, name, value) + except (TypeError, ValueError): + pass + + +class FutureProfileError(ProfileError): + """Versão posterior: o arquivo deve permanecer intacto e somente para leitura.""" + + +def _legacy_city_progress(data: dict) -> Dict[str, float]: + """Recover recorded progress; stars provide only their proven lower bound.""" + progress: Dict[str, float] = {} + stars = data.get("estrelas", {}) + if isinstance(stars, dict): + for biome in BIOME_ORDER: + count = stars.get(biome) + if type(count) is int and 1 <= count <= 3: + progress[biome] = STAR_THRESHOLDS[count - 1] + history = data.get("historico", []) + if isinstance(history, (list, tuple)): + for entry in history: + if not isinstance(entry, dict): + continue + biome, value = entry.get("fase"), entry.get("transformacao") + if ( + biome in BIOME_ORDER + and isinstance(value, (int, float)) + and not isinstance(value, bool) + and math.isfinite(value) + ): + progress[biome] = max(progress.get(biome, 0.0), min(100.0, max(0.0, float(value)))) + return progress + + +def migrate_profile(data: dict) -> dict: + """Migra cópia do documento antigo; nunca reinterpreta uma versão futura.""" + version = data.get("versao", 1) + if type(version) is not int or version < 1: + raise ProfileError("versão de perfil inválida") + if version > SCHEMA_VERSION: + raise FutureProfileError("este piloto foi salvo por uma versão mais nova do Dobramundo") + result = dict(data) + if version == 1: + result.setdefault("transformacao_cidades", _legacy_city_progress(result)) + # Em perfis anteriores, conservar a escolha de assistência já configurada. + result.setdefault("apoio_escolhido", int(result.get("voos", 0) or 0) > 0) + result["versao"] = 2 + return result diff --git a/dobramundo/scenes/base.py b/dobramundo/scenes/base.py index 339c9ee..469003d 100644 --- a/dobramundo/scenes/base.py +++ b/dobramundo/scenes/base.py @@ -128,10 +128,11 @@ def dwell_time(self) -> float: return self.app.options.permanencia def title(self, screen: pygame.Surface, title: str, subtitle: str = "") -> None: + subtitle_size = max(T.SIZES["small"], 18) width = ( max( self.font("title", True).size(title)[0], - self.font("small").size(subtitle)[0], + self.font(subtitle_size).size(subtitle)[0], ) + 70 ) @@ -139,7 +140,7 @@ def title(self, screen: pygame.Surface, title: str, subtitle: str = "") -> None: T.panel(screen, bar, T.PAPER, T.NAVY, 240, 18) self.text.blit(screen, title, (24, 6), T.SIZES["title"], T.NAVY, True) if subtitle: - self.text.blit(screen, subtitle, (26, 50), T.SIZES["small"], T.MUTED) + self.text.blit(screen, subtitle, (26, 50), subtitle_size, T.MUTED_STRONG) def resource_bar( self, screen: pygame.Surface, right: int = C.WIDTH - 20, top: int = 12, values: Optional[dict] = None diff --git a/dobramundo/scenes/calibration.py b/dobramundo/scenes/calibration.py index 4193cb7..335a980 100644 --- a/dobramundo/scenes/calibration.py +++ b/dobramundo/scenes/calibration.py @@ -159,11 +159,7 @@ def draw(self, screen: pygame.Surface) -> None: message, detail = "Não estou vendo o segmento", "Entre na área da câmera." else: message, detail = segment.hint if segment else "Fique parado", "Fique parado assim um instante..." - size = ( - T.SIZES["title"] - if self.text.font(T.SIZES["title"], True).size(message)[0] < card.width - 60 - else T.SIZES["label"] - ) + size = T.SIZES["title"] if self.font("title", True).size(message)[0] < card.width - 60 else T.SIZES["label"] self.text.blit(screen, message, (card.centerx, card.top + 24), size, T.NAVY, True, "midtop") self.text.blit(screen, detail, (card.centerx, card.top + 74), T.SIZES["label"], T.INK, anchor="midtop") center = (card.left + 250, card.top + 270) diff --git a/dobramundo/scenes/flight.py b/dobramundo/scenes/flight.py index 13f667f..d297397 100644 --- a/dobramundo/scenes/flight.py +++ b/dobramundo/scenes/flight.py @@ -16,14 +16,14 @@ from ..content.progress import PART_BY_KEY, STAR_THRESHOLDS, VILLAGE_UPGRADES, parts_ok from ..engine.sprites import project from ..game.run import FlightRun +from ..game.settlement import apply_run, notify_settlement from ..ui import theme as T -from ..ui.widgets import row, star -from ..util import lerp_color +from ..ui.widgets import row from .base import Scene +from .flight_hud import FlightHUDMixin RESUME_COUNTDOWN = 3.0 FOCUS_SOUNDS = {"foco": "sfx_desvio_alerta", "foco_ok": "sfx_desvio_ok", "foco_quase": "sfx_desvio_quase"} -ARROW_VECTORS = {"up": (0, -1), "down": (0, 1), "left": (-1, 0), "right": (1, 0)} _maneuvers = None _vignettes: Dict[Tuple[Tuple[int, int], bool], pygame.Surface] = {} @@ -62,7 +62,7 @@ def __init__( self.action = action # up, down, side, collect; pictograma contextual à lição -class FlightScene(Scene): +class FlightScene(FlightHUDMixin, Scene): idle_warm_up = False def __init__( @@ -93,7 +93,15 @@ def __init__( flight_seed = seed if seed is not None else option_seed if option_seed > 0 else secrets.randbits(32) limit = app.options.limite_voo_s if session_limit_s is None else session_limit_s explore = app.options.modo_exploracao if exploration is None else exploration - assisted = app.options.assistencia_previsivel if predictable_assistance is None else predictable_assistance + city_restoration = p.transformacao_cidades.get(biome_key) + if city_restoration is None: + old_stars = min(3, max(0, p.estrelas.get(biome_key, 0))) + city_restoration = STAR_THRESHOLDS[old_stars - 1] if old_stars else C.START_RESTORATION + assisted = ( + app.options.assistencia_previsivel or (not p.apoio_escolhido and p.voos < 3) + if predictable_assistance is None + else predictable_assistance + ) community = (seed is None and option_seed > 0) if community_challenge is None else community_challenge if mission_preference_fixed: preferred_waste = mission_preferred_waste @@ -124,12 +132,15 @@ def __init__( predictable_assistance=assisted, community_challenge=community, mission_preferred_waste=preferred_waste, + city_restoration=city_restoration, + starting_stars=p.estrelas.get(biome_key, 0), ) self.look = app.plane_look() self.paused = False self.auto_paused = False self.countdown = 0.0 self.banners: List[Banner] = [] + self.banner_occluded = False self.flash = 0.0 self.shake = 0.0 self.celebration = 0.0 @@ -137,6 +148,7 @@ def __init__( self.cam_bytes: Optional[bytes] = None self.music = self.stage_music(0) self.started = False + self.departure_announced = False def stage_music(self, stage: int) -> str: return f"musica_{self.biome.music}_{stage + 1}" @@ -147,16 +159,9 @@ def enter(self) -> None: self.music = self.stage_music(self.run.stage) super().enter() self.app.view.set_biome(self.biome) + self.app.view.prepare_look(self.look) + self.app.view.prepare_first_frame(self.run, self.look) self.app.input.resync_keys() - if not self.started: - self.started = True - self.app.audio.play("sfx_decolagem") - theme = self.run.world.challenge_theme - title = theme.title if theme is not None else f"{self.biome.city} — {self.biome.name}" - subtitle = ( - f"Desafio comunitário · semente {self.run.seed}" if theme is not None else texts.STAGE_MESSAGES[0] - ) - self.banners.append(Banner(title, subtitle, T.WHITE, 3.2)) # ------------------------------------------------------------- pausa def build(self) -> None: @@ -192,6 +197,9 @@ def recalibrate(self) -> None: self.goto("calibracao", return_to=self) def quit_to_village(self) -> None: + if not self.started: + self.goto("vila") + return if not self.run.complete and not self.run.game_over: self.run.interrupted = True self.run.finished = True @@ -206,8 +214,6 @@ def settle_on_close(self) -> None: if not self.run.complete and not self.run.game_over: self.run.interrupted = True self.run.finished = True - from .result import apply_run, notify_settlement - apply_run(self.app.profile, self.run) self.app.save() notify_settlement(self.app, self.run) @@ -256,6 +262,9 @@ def update(self, dt: float) -> None: if self.menu.update(dt, hub.pointer(), self.app.options.permanencia): self.app.audio.play("sfx_selecao") return + if self.app.view.warmup_pending: + # Aquecimento de renderização não consome tempo/vidas do voo. + return body = hub.body if ( self.app.profile.controle != "teclado" @@ -268,13 +277,25 @@ def update(self, dt: float) -> None: # Durante a janela que antecede a pausa automática, um snapshot corporal # perdido não deixa o avião estacionado receber uma colisão. return + if not self.started: + self.started = True + if not self.departure_announced: + self.departure_announced = True + self.app.audio.play("sfx_decolagem") + theme = self.run.world.challenge_theme + title = theme.title if theme is not None else f"{self.biome.city} — {self.biome.name}" + subtitle = ( + f"Desafio comunitário · semente {self.run.seed}" if theme is not None else texts.STAGE_MESSAGES[0] + ) + self.banners.append(Banner(title, subtitle, T.WHITE, 3.2)) ix, iy, target = hub.flight_command() if hub.body_ready: self.run.record_movement(dt, hub.body.axes()) self.run.update(dt, ix, iy, target) self.handle_run_events() for banner in self.banners: - banner.ttl -= dt + if not self.banner_occluded: + banner.ttl -= dt self.banners = [b for b in self.banners if b.ttl > 0] self.flash = max(0.0, self.flash - dt) self.shake = max(0.0, self.shake - dt) @@ -332,7 +353,7 @@ def handle_run_events(self) -> None: self.banners.append(Banner(f"{self.biome.city} solarpunk!", "A cidade se transformou.", T.SUN, 3.0)) elif name == "session_end": self.banners.append( - Banner("Tempo combinado", "O voo ficou guardado para continuar depois.", T.TEAL, 2.5) + Banner("Tempo combinado", "Este voo terminou. Veja as conquistas no resultado.", T.TEAL, 2.5) ) elif name == "exploration_continue": self.banners.append( @@ -342,6 +363,21 @@ def handle_run_events(self) -> None: audio.play("sfx_game_over") def draw(self, screen: pygame.Surface) -> None: + if self.app.view.warmup_pending: + screen.fill((230, 239, 235)) + card = pygame.Rect(C.WIDTH // 2 - 250, C.HEIGHT // 2 - 86, 500, 172) + T.panel(screen, card, T.PAPER, T.NAVY, 248, 24, 3) + label = "Preparando seu voo" + self.text.blit(screen, label, (card.centerx, card.top + 45), T.SIZES["title"], T.NAVY, True, "center") + bar = pygame.Rect(card.left + 64, card.top + 112, card.width - 128, 18) + pygame.draw.rect(screen, (222, 215, 197), bar, border_radius=9) + fill = bar.copy() + fill.width = round(bar.width * max(0.0, min(1.0, self.app.view.warmup_progress))) + if fill.width: + pygame.draw.rect(screen, T.TEAL, fill, border_radius=9) + if self.paused: + self.draw_pause(screen) + return view = self.app.view view.draw_run(screen, self.run, self.look, celebration=self.celebration) strong = self.app.options.efeitos_fortes and not self.app.options.reduzir_movimento @@ -369,286 +405,6 @@ def draw(self, screen: pygame.Surface) -> None: self.draw_pause(screen) # --------------------------------------------------------------- HUD - def draw_hud(self, screen: pygame.Surface) -> None: - run = self.run - text = self.text - accent = self.biome.stages[run.stage].accent - box = pygame.Rect(18, 14, 444, 70) - T.panel(screen, box, T.PAPER, T.NAVY, 238, 16, 2) - text.blit( - screen, - f"{self.biome.city} · {texts.STAGE_NAMES[run.stage]}", - (32, 19), - T.SIZES["body"], - T.NAVY, - True, - ) - text.blit(screen, f"{int(run.restoration)}%", (box.right - 14, 19), T.SIZES["body"], T.INK, True, "topright") - bar = pygame.Rect(32, 52, box.width - 30, 14) - pygame.draw.rect(screen, (220, 213, 195), bar, border_radius=8) - fill = bar.copy() - fill.width = int(bar.width * run.restoration / 100.0) - pygame.draw.rect(screen, lerp_color(accent, T.GREEN, 0.3), fill, border_radius=8) - for limit in STAR_THRESHOLDS: - x = bar.left + int(bar.width * limit / 100.0) - (8 if limit >= 100 else 0) - star( - screen, (x, bar.centery), 11, run.restoration >= limit - 1e-6 and (limit < 100 or run.stars >= 3), T.SUN - ) - if run.session_limit_s: - clock = max(0, run.session_limit_s - int(run.flight_time)) - minutes, seconds = divmod(clock, 60) - timer_box = pygame.Rect(C.WIDTH // 2 - 62, 14, 124, 56) - T.panel(screen, timer_box, T.PAPER, T.TEAL, 245, 14, 2) - text.blit( - screen, "TEMPO", (timer_box.centerx, timer_box.top + 7), T.SIZES["small"], T.MUTED, True, "midtop" - ) - text.blit( - screen, - f"{minutes:02d}:{seconds:02d}", - (timer_box.centerx, timer_box.top + 28), - T.SIZES["label"], - T.NAVY, - True, - "midtop", - ) - self.draw_mission(screen) - status = pygame.Rect(C.WIDTH - 244, 14, 226, 70) - T.panel(screen, status, T.PAPER, T.NAVY, 238, 16, 2) - spacing = 39 - start_x = status.left + (status.width - (run.max_lives - 1) * spacing) // 2 - life_y = 40 if run.exploration or run.predictable_assistance else 48 - for i in range(run.max_lives): - self.draw_life(screen, (start_x + i * spacing, life_y), i < run.lives) - label_anchor = (status.centerx, status.bottom - 24) - if run.exploration: - label = "EXPLORAR" + (" · APOIO" if run.predictable_assistance else "") - text.blit(screen, label, label_anchor, T.SIZES["small"], T.TEAL, True, "midtop") - elif run.predictable_assistance: - text.blit(screen, "APOIO", label_anchor, T.SIZES["small"], T.TEAL, True, "midtop") - if run.shield_timer > 0 or run.magnet_timer > 0: - # Ambos os benefícios têm um relógio visual próprio. A leitura de - # segundos é auxiliar; o arco se esvazia sem piscar. - benefits = (("shield", run.shield_timer, C.SHIELD_S), ("magnet", run.magnet_timer, C.MAGNET_S)) - for i, (active, timer, total) in enumerate(benefits): - if timer <= 0: - continue - center = (status.left + 36 + i * 74, status.bottom + 36) - pygame.draw.circle(screen, T.PAPER, center, 27) - pygame.draw.circle(screen, T.NAVY, center, 27, 2) - screen.blit(T.icon_surface(active, 30, T.NAVY), (center[0] - 15, center[1] - 15)) - arc = pygame.Rect(center[0] - 23, center[1] - 23, 46, 46) - pygame.draw.arc(screen, T.TEAL, arc, math.pi / 2, math.pi / 2 + math.tau * min(1.0, timer / total), 5) - elif run.invincible: - text.blit( - screen, - "DEMO", - status.midbottom + pygame.Vector2(0, 4), - T.SIZES["small"], - T.MUTED, - True, - "midtop", - ) - - def draw_focus(self, screen: pygame.Surface) -> None: - """Seta do momento de foco junto do avião, pedido em letras grandes e tempo que resta.""" - focus = self.run.focus - if focus.state is None: - return - player = self.run.player - sx, sy, _ = project(player.x, player.y, C.PLAYER_Z, self.app.view.cam) - sx, sy = self.app.view.screen_point((sx, sy)) - if focus.state != "pending": - ok = focus.state == "success" - center = (int(sx), max(178, int(sy) - 120)) - pygame.draw.circle(screen, T.PAPER, center, 26) - pygame.draw.circle(screen, T.NAVY, center, 26, 3) - if ok: - pygame.draw.lines( - screen, - T.TEAL, - False, - [(center[0] - 13, center[1]), (center[0] - 3, center[1] + 10), (center[0] + 15, center[1] - 12)], - 6, - ) - else: - screen.blit(T.icon_surface("plane", 36, T.NAVY), (center[0] - 18, center[1] - 18)) - self.text.blit( - screen, - texts.FOCUS_SUCCESS if ok else texts.FOCUS_MISS, - (int(sx), int(sy) - 90), - T.SIZES["title"], - T.SUN if ok else T.WHITE, - True, - "center", - ) - return - dx, dy = ARROW_VECTORS[focus.direction] - pulse = 1.0 if self.app.options.reduzir_movimento else 1.0 + 0.08 * math.sin(self.time * 16.0) - self.draw_arrow(screen, (sx + dx * 130, sy + dy * 110), (dx, dy), 62 * pulse) - prompt = texts.FOCUS_PROMPTS[focus.direction] - width = max(340, self.text.font(T.SIZES["hero"], True).size(prompt)[0] + 60) - # embaixo, longe do avião e da seta (que podem apontar para cima) - card = pygame.Rect(C.WIDTH // 2 - width // 2, C.HEIGHT - 124, width, 108) - T.panel(screen, card, T.NAVY, T.SUN, 225, 18, 3) - self.text.blit(screen, prompt, (C.WIDTH // 2, card.top + 38), T.SIZES["hero"], T.SUN, True, "center") - bar = pygame.Rect(C.WIDTH // 2 - 140, card.top + 80, 280, 14) - pygame.draw.rect(screen, T.NAVY_DARK, bar.inflate(6, 6), border_radius=9) - fill = bar.copy() - fill.width = max(1, int(bar.width * focus.progress)) - pygame.draw.rect(screen, T.SUN, fill, border_radius=7) - - @staticmethod - def draw_arrow(screen: pygame.Surface, center, direction, size: float) -> None: - """Seta grossa apontando para direction ((1, 0) direita, (0, -1) cima...).""" - cx, cy = center - ux, uy = direction - px, py = -uy, ux # perpendicular - - def at(along: float, across: float): - return (int(cx + ux * along + px * across), int(cy + uy * along + py * across)) - - head, neck, tail, shaft, wing = size, size * 0.1, -size, size * 0.36, size * 0.8 - points = [ - at(head, 0), - at(neck, wing), - at(neck, shaft), - at(tail, shaft), - at(tail, -shaft), - at(neck, -shaft), - at(neck, -wing), - ] - pygame.draw.polygon(screen, T.SUN, points) - pygame.draw.polygon(screen, T.NAVY, points, 5) - - def draw_mission(self, screen: pygame.Surface) -> None: - """Meta pictográfica com texto auxiliar; mantém a instrução completa disponível.""" - mission = self.run.missions.current - if mission is None: - return - width = 365 - box = pygame.Rect(18, 94, width, 58) - T.panel(screen, box, T.PAPER, T.TEAL, 240, 15, 2) - center = (box.left + 34, box.centery) - if mission.kind == "desviar": - self.draw_arrow(screen, (center[0] - 9, center[1]), (-1, 0), 17) - self.draw_arrow(screen, (center[0] + 9, center[1]), (1, 0), 17) - elif mission.kind == "portal": - self.draw_arrow(screen, center, (0, 1), 20) - elif mission.kind == "coletar": - waste = next((item for item in WASTE_TYPES if item.key == mission.waste), None) - icon = self.app.assets.sprite("waste_sprites", waste.sprite) if waste else None - if icon is not None: - icon = self.scaled(icon, (44, 44), ("mission", mission.waste)) - else: - icon = T.icon_surface("paper", 44, T.TEAL) - screen.blit(icon, icon.get_rect(center=center)) - else: - screen.blit(T.icon_surface("powerup", 44, T.TEAL), (center[0] - 22, center[1] - 22)) - self.text.blit( - screen, - f"{self.run.missions.progress}/{mission.target}", - (box.left + 66, box.top + 6), - T.SIZES["label"], - T.NAVY, - True, - ) - # Uma conta por ação: permite acompanhar a missão sem ler números. - for i in range(mission.target): - center = (box.left + 145 + i * 24, box.top + 18) - pygame.draw.circle(screen, T.TEAL if i < self.run.missions.progress else T.PAPER, center, 8) - pygame.draw.circle(screen, T.NAVY, center, 8, 2) - instruction = mission.text(0).split(" (")[0] - self.text.blit(screen, instruction, (box.left + 68, box.top + 34), T.SIZES["small"], T.INK, True) - - @staticmethod - def draw_life(screen: pygame.Surface, center, alive: bool) -> None: - """Vida = aviãozinho de papel.""" - x, y = center - color = T.WHITE if alive else (190, 184, 170) - wing = [(x - 16, y + 8), (x + 16, y - 10), (x - 2, y + 12)] - pygame.draw.polygon(screen, color, wing) - pygame.draw.polygon(screen, T.NAVY if alive else T.LOCKED, wing, 2) - pygame.draw.line(screen, T.NAVY if alive else T.LOCKED, (x - 2, y + 12), (x + 16, y - 10), 2) - - def draw_banners(self, screen: pygame.Surface) -> None: - if self.flash > 0: - T.veil(screen, (255, 236, 150), int(80 * self.flash / 0.6) // 10 * 10) - if not self.banners or self.run.focus.state == "pending": - return # a seta do momento de foco fica sozinha na tela - banner = self.banners[-1] - reduced = self.app.options.reduzir_movimento - fade = 1.0 if reduced else min(1.0, banner.ttl / 0.4, (banner.total - banner.ttl) / 0.3 + 0.2) - # Faixa curta, junto à margem superior, sem cobrir o avião ou o corredor. - rect = pygame.Rect(C.WIDTH // 2 - 300, 160, 600, 54) - T.panel(screen, rect, T.PAPER, T.ORANGE, int(245 * fade), 15, 2) - icon_center = (rect.left + 31, rect.centery) - if banner.action in ("up", "down", "side"): - if banner.action == "side": - self.draw_arrow(screen, (icon_center[0] - 9, icon_center[1]), (-1, 0), 17) - self.draw_arrow(screen, (icon_center[0] + 9, icon_center[1]), (1, 0), 17) - else: - direction = (0, -1) if banner.action == "up" else (0, 1) - self.draw_arrow(screen, icon_center, direction, 20) - else: - icon_name = "paper" if banner.action == "collect" else "star" - screen.blit(T.icon_surface(icon_name, 42, T.TEAL), (icon_center[0] - 21, icon_center[1] - 21)) - left = rect.left + 62 - right = rect.right - 15 - if banner.stars: - for index in range(min(3, banner.stars)): - star(screen, (left + 13 + index * 28, rect.centery), 11, True) - left += 92 - title_font = self.text.font(T.SIZES["label"], True) - subtitle_font = self.text.font(T.SIZES["small"]) - title_text = self._fit_banner_text(banner.title, title_font, right - left) - title_surface = self.text.render(title_text, T.SIZES["label"], T.NAVY, True) - if banner.subtitle: - title_y = rect.top + 4 - subtitle_text = self._fit_banner_text(banner.subtitle, subtitle_font, right - left) - subtitle_y = rect.top + 30 - subtitle_surface = self.text.render(subtitle_text, T.SIZES["small"], T.INK) - else: - title_y = rect.centery - title_surface.get_height() // 2 - subtitle_surface = None - screen.blit(title_surface, (left, title_y)) - if subtitle_surface is not None: - screen.blit(subtitle_surface, (left, subtitle_y)) - - @staticmethod - def _fit_banner_text(value: str, font: pygame.font.Font, max_width: int) -> str: - """Evita que textos de missão/cidade ultrapassem a faixa compacta.""" - text = " ".join(value.split()) - if font.size(text)[0] <= max_width: - return text - suffix = "…" - while text and font.size(text + suffix)[0] > max_width: - text = text[:-1] - return text.rstrip() + suffix - - def draw_camera(self, screen: pygame.Surface) -> None: - """Miniatura para o supervisor e avisos de calibração ou de câmera.""" - body = self.app.input.body - if body is None: - return - if body.error: - self.text.blit( - screen, - f"Câmera indisponível ({body.error}): voo pausado; tente Recalibrar", - (C.WIDTH // 2, C.HEIGHT - 30), - T.SIZES["small"], - T.WHITE, - True, - "center", - ) - return - if body.preview is not None: - if self.cam_bytes is not body.preview: # só converte quando chega quadro novo - self.cam_surface = pygame.image.frombytes(body.preview, (160, 120), "RGB") - self.cam_bytes = body.preview - rect = self.cam_surface.get_rect(bottomleft=(12, C.HEIGHT - 12)) - screen.blit(self.cam_surface, rect) - pygame.draw.rect(screen, T.WHITE if body.visible else T.RED, rect, 3) - def draw_pause(self, screen: pygame.Surface) -> None: T.veil(screen, (10, 18, 40), 170) card = pygame.Rect(C.WIDTH // 2 - 420, 82, 840, 520) diff --git a/dobramundo/scenes/flight_hud.py b/dobramundo/scenes/flight_hud.py new file mode 100644 index 0000000..742ca51 --- /dev/null +++ b/dobramundo/scenes/flight_hud.py @@ -0,0 +1,323 @@ +"""Apresentação HUD e retorno visual do voo, separada das regras da sessão.""" + +from __future__ import annotations + +import math + +import pygame + +from .. import config as C +from ..content import texts +from ..content.items import WASTE_TYPES +from ..content.progress import STAR_THRESHOLDS +from ..engine.sprites import project +from ..game.missions import MISSION_TIMEOUT_S +from ..ui import theme as T +from ..ui.widgets import star +from ..util import lerp_color + +ARROW_VECTORS = {"up": (0, -1), "down": (0, 1), "left": (-1, 0), "right": (1, 0)} + + +class FlightHUDMixin: + def draw_hud(self, screen: pygame.Surface) -> None: + run = self.run + text = self.text + accent = self.biome.stages[run.stage].accent + box = pygame.Rect(18, 14, 444, 70) + T.panel(screen, box, T.PAPER, T.NAVY, 238, 16, 2) + text.blit( + screen, + f"{self.biome.city} · {texts.STAGE_NAMES[run.stage]}", + (32, 19), + T.SIZES["body"], + T.NAVY, + True, + ) + text.blit(screen, f"{int(run.restoration)}%", (box.right - 14, 19), T.SIZES["body"], T.INK, True, "topright") + bar = pygame.Rect(32, 52, box.width - 30, 14) + pygame.draw.rect(screen, (220, 213, 195), bar, border_radius=8) + fill = bar.copy() + fill.width = int(bar.width * run.restoration / 100.0) + pygame.draw.rect(screen, lerp_color(accent, T.GREEN, 0.3), fill, border_radius=8) + for limit in STAR_THRESHOLDS: + x = bar.left + int(bar.width * limit / 100.0) - (8 if limit >= 100 else 0) + star( + screen, (x, bar.centery), 11, run.restoration >= limit - 1e-6 and (limit < 100 or run.stars >= 3), T.SUN + ) + if run.session_limit_s: + clock = max(0, run.session_limit_s - int(run.flight_time)) + minutes, seconds = divmod(clock, 60) + timer_box = pygame.Rect(C.WIDTH // 2 - 62, 14, 124, 56) + T.panel(screen, timer_box, T.PAPER, T.TEAL, 245, 14, 2) + text.blit( + screen, "TEMPO", (timer_box.centerx, timer_box.top + 7), T.SIZES["small"], T.MUTED, True, "midtop" + ) + text.blit( + screen, + f"{minutes:02d}:{seconds:02d}", + (timer_box.centerx, timer_box.top + 28), + T.SIZES["label"], + T.NAVY, + True, + "midtop", + ) + self.draw_mission(screen) + status = pygame.Rect(C.WIDTH - 244, 14, 226, 70) + T.panel(screen, status, T.PAPER, T.NAVY, 238, 16, 2) + spacing = 39 + start_x = status.left + (status.width - (run.max_lives - 1) * spacing) // 2 + life_y = 40 if run.exploration or run.predictable_assistance else 48 + for i in range(run.max_lives): + self.draw_life(screen, (start_x + i * spacing, life_y), i < run.lives) + label_anchor = (status.centerx, status.bottom - 24) + if run.exploration: + label = "EXPLORAR" + (" · APOIO" if run.predictable_assistance else "") + text.blit(screen, label, label_anchor, T.SIZES["small"], T.MUTED_STRONG, True, "midtop") + elif run.predictable_assistance: + text.blit(screen, "APOIO", label_anchor, T.SIZES["small"], T.MUTED_STRONG, True, "midtop") + if run.shield_timer > 0 or run.magnet_timer > 0: + # Ambos os benefícios têm um relógio visual próprio. A leitura de + # segundos é auxiliar; o arco se esvazia sem piscar. + benefits = (("shield", run.shield_timer, C.SHIELD_S), ("magnet", run.magnet_timer, C.MAGNET_S)) + for i, (active, timer, total) in enumerate(benefits): + if timer <= 0: + continue + center = (status.left + 36 + i * 74, status.bottom + 36) + pygame.draw.circle(screen, T.PAPER, center, 27) + pygame.draw.circle(screen, T.NAVY, center, 27, 2) + screen.blit(T.icon_surface(active, 30, T.NAVY), (center[0] - 15, center[1] - 15)) + arc = pygame.Rect(center[0] - 23, center[1] - 23, 46, 46) + pygame.draw.arc(screen, T.TEAL, arc, math.pi / 2, math.pi / 2 + math.tau * min(1.0, timer / total), 5) + elif run.invincible: + text.blit( + screen, + "DEMO", + status.midbottom + pygame.Vector2(0, 4), + T.SIZES["small"], + T.MUTED, + True, + "midtop", + ) + + def draw_focus(self, screen: pygame.Surface) -> None: + """Seta do momento de foco junto do avião, pedido em letras grandes e tempo que resta.""" + focus = self.run.focus + if focus.state is None: + return + player = self.run.player + sx, sy, _ = project(player.x, player.y, C.PLAYER_Z, self.app.view.cam) + sx, sy = self.app.view.screen_point((sx, sy)) + if focus.state != "pending": + ok = focus.state == "success" + center = (int(sx), max(178, int(sy) - 120)) + pygame.draw.circle(screen, T.PAPER, center, 26) + pygame.draw.circle(screen, T.NAVY, center, 26, 3) + if ok: + pygame.draw.lines( + screen, + T.TEAL, + False, + [(center[0] - 13, center[1]), (center[0] - 3, center[1] + 10), (center[0] + 15, center[1] - 12)], + 6, + ) + else: + screen.blit(T.icon_surface("plane", 36, T.NAVY), (center[0] - 18, center[1] - 18)) + self.text.blit( + screen, + texts.FOCUS_SUCCESS if ok else texts.FOCUS_MISS, + (int(sx), int(sy) - 90), + T.SIZES["title"], + T.SUN if ok else T.WHITE, + True, + "center", + ) + return + dx, dy = ARROW_VECTORS[focus.direction] + pulse = 1.0 if self.app.options.reduzir_movimento else 1.0 + 0.08 * math.sin(self.time * 16.0) + self.draw_arrow(screen, (sx + dx * 130, sy + dy * 110), (dx, dy), 62 * pulse) + prompt = texts.FOCUS_PROMPTS[focus.direction] + width = max(340, self.font("hero", True).size(prompt)[0] + 60) + # embaixo, longe do avião e da seta (que podem apontar para cima) + card = pygame.Rect(C.WIDTH // 2 - width // 2, C.HEIGHT - 124, width, 108) + T.panel(screen, card, T.NAVY, T.SUN, 225, 18, 3) + self.text.blit(screen, prompt, (C.WIDTH // 2, card.top + 38), T.SIZES["hero"], T.SUN, True, "center") + bar = pygame.Rect(C.WIDTH // 2 - 140, card.top + 80, 280, 14) + pygame.draw.rect(screen, T.NAVY_DARK, bar.inflate(6, 6), border_radius=9) + fill = bar.copy() + fill.width = max(1, int(bar.width * focus.progress)) + pygame.draw.rect(screen, T.SUN, fill, border_radius=7) + + @staticmethod + def draw_arrow(screen: pygame.Surface, center, direction, size: float) -> None: + """Seta grossa apontando para direction ((1, 0) direita, (0, -1) cima...).""" + cx, cy = center + ux, uy = direction + px, py = -uy, ux # perpendicular + + def at(along: float, across: float): + return (int(cx + ux * along + px * across), int(cy + uy * along + py * across)) + + head, neck, tail, shaft, wing = size, size * 0.1, -size, size * 0.36, size * 0.8 + points = [ + at(head, 0), + at(neck, wing), + at(neck, shaft), + at(tail, shaft), + at(tail, -shaft), + at(neck, -shaft), + at(neck, -wing), + ] + pygame.draw.polygon(screen, T.SUN, points) + pygame.draw.polygon(screen, T.NAVY, points, 5) + + def draw_mission(self, screen: pygame.Surface) -> None: + """Meta pictográfica com texto auxiliar; mantém a instrução completa disponível.""" + mission = self.run.missions.current + if mission is None: + return + width = 365 + box = pygame.Rect(18, 94, width, 66) + T.panel(screen, box, T.PAPER, T.TEAL, 240, 15, 2) + center = (box.left + 34, box.centery) + if mission.kind == "desviar": + self.draw_arrow(screen, (center[0] - 9, center[1]), (-1, 0), 17) + self.draw_arrow(screen, (center[0] + 9, center[1]), (1, 0), 17) + elif mission.kind == "portal": + self.draw_arrow(screen, center, (0, 1), 20) + elif mission.kind == "coletar": + waste = next((item for item in WASTE_TYPES if item.key == mission.waste), None) + icon = self.app.assets.sprite("waste_sprites", waste.sprite) if waste else None + if icon is not None: + icon = self.scaled(icon, (44, 44), ("mission", mission.waste)) + else: + icon = T.icon_surface("paper", 44, T.TEAL) + screen.blit(icon, icon.get_rect(center=center)) + else: + screen.blit(T.icon_surface("powerup", 44, T.TEAL), (center[0] - 22, center[1] - 22)) + self.text.blit( + screen, + f"{self.run.missions.progress}/{mission.target}", + (box.left + 66, box.top + 6), + T.SIZES["label"], + T.NAVY, + True, + ) + # Uma conta por ação: permite acompanhar a missão sem ler números. + for i in range(mission.target): + center = (box.left + 145 + i * 24, box.top + 18) + pygame.draw.circle(screen, T.TEAL if i < self.run.missions.progress else T.PAPER, center, 8) + pygame.draw.circle(screen, T.NAVY, center, 8, 2) + instruction = mission.text(0).split(" (")[0] + self.text.blit(screen, instruction, (box.left + 68, box.top + 32), T.SIZES["small"], T.INK, True) + remaining = max(0.0, 1.0 - self.run.missions.current_age / MISSION_TIMEOUT_S) + timer = pygame.Rect(box.left + 5, box.bottom - 9, box.width - 10, 8) + pygame.draw.rect(screen, (211, 222, 218), timer, border_radius=2) + fill = timer.copy() + fill.width = round(timer.width * remaining) + if fill.width: + pygame.draw.rect(screen, T.TEAL if remaining > 0.25 else T.ORANGE, fill, border_radius=2) + + @staticmethod + def draw_life(screen: pygame.Surface, center, alive: bool) -> None: + """Vida = aviãozinho de papel.""" + x, y = center + color = T.WHITE if alive else (190, 184, 170) + wing = [(x - 16, y + 8), (x + 16, y - 10), (x - 2, y + 12)] + pygame.draw.polygon(screen, color, wing) + pygame.draw.polygon(screen, T.NAVY if alive else T.LOCKED, wing, 2) + pygame.draw.line(screen, T.NAVY if alive else T.LOCKED, (x - 2, y + 12), (x + 16, y - 10), 2) + + def draw_banners(self, screen: pygame.Surface) -> None: + if self.flash > 0: + T.veil(screen, (255, 236, 150), int(80 * self.flash / 0.6) // 10 * 10) + if not self.banners: + self.banner_occluded = False + return + # Área periférica inferior direita, longe da prévia da webcam. Se um + # obstáculo projetado cruzar a faixa, a mensagem espera em vez de cobri-lo. + rect = pygame.Rect(C.WIDTH - 538, C.HEIGHT - 72, 520, 54) + self.banner_occluded = self._banner_overlaps_obstacle(rect) + if self.run.focus.state == "pending" or self.banner_occluded: + return + banner = self.banners[-1] + reduced = self.app.options.reduzir_movimento + fade = 1.0 if reduced else min(1.0, banner.ttl / 0.4, (banner.total - banner.ttl) / 0.3 + 0.2) + # Faixa compacta na borda inferior, subordinada a obstáculos próximos. + T.panel(screen, rect, T.PAPER, T.ORANGE, int(245 * fade), 15, 2) + icon_center = (rect.left + 31, rect.centery) + if banner.action in ("up", "down", "side"): + if banner.action == "side": + self.draw_arrow(screen, (icon_center[0] - 9, icon_center[1]), (-1, 0), 17) + self.draw_arrow(screen, (icon_center[0] + 9, icon_center[1]), (1, 0), 17) + else: + direction = (0, -1) if banner.action == "up" else (0, 1) + self.draw_arrow(screen, icon_center, direction, 20) + else: + icon_name = "paper" if banner.action == "collect" else "star" + screen.blit(T.icon_surface(icon_name, 42, T.TEAL), (icon_center[0] - 21, icon_center[1] - 21)) + left = rect.left + 62 + right = rect.right - 15 + if banner.stars: + for index in range(min(3, banner.stars)): + star(screen, (left + 13 + index * 28, rect.centery), 11, True) + left += 92 + title_font = self.font("label", True) + subtitle_font = self.font("small") + title_text = T.elide_text(banner.title, title_font, right - left) + title_surface = self.text.render(title_text, T.SIZES["label"], T.NAVY, True) + if banner.subtitle: + title_y = rect.top + 4 + subtitle_text = T.elide_text(banner.subtitle, subtitle_font, right - left) + subtitle_y = rect.top + 30 + subtitle_surface = self.text.render(subtitle_text, T.SIZES["small"], T.INK) + else: + title_y = rect.centery - title_surface.get_height() // 2 + subtitle_surface = None + screen.blit(title_surface, (left, title_y)) + if subtitle_surface is not None: + screen.blit(subtitle_surface, (left, subtitle_y)) + + def _banner_overlaps_obstacle(self, banner: pygame.Rect) -> bool: + view = self.app.view + for entity in self.run.world.entities: + spec = entity.spec + if spec is None or entity.collected or entity.hit or entity.dodged or entity.passed: + continue + corners = [ + view.screen_point(project(x, y, entity.z, view.cam)[:2]) + for x in (entity.x - spec.width * 0.5, entity.x + spec.width * 0.5) + for y in (spec.y_min, spec.y_max) + ] + xs = [point[0] for point in corners] + ys = [point[1] for point in corners] + bounds = pygame.Rect( + round(min(xs)), round(min(ys)), max(1, round(max(xs) - min(xs))), max(1, round(max(ys) - min(ys))) + ) + if banner.colliderect(bounds.inflate(12, 12)): + return True + return False + + def draw_camera(self, screen: pygame.Surface) -> None: + """Miniatura para o supervisor e avisos de calibração ou de câmera.""" + body = self.app.input.body + if body is None: + return + if body.error: + self.text.blit( + screen, + f"Câmera indisponível ({body.error}): voo pausado; tente Recalibrar", + (C.WIDTH // 2, C.HEIGHT - 30), + T.SIZES["small"], + T.WHITE, + True, + "center", + ) + return + if body.preview is not None: + if self.cam_bytes is not body.preview: # só converte quando chega quadro novo + self.cam_surface = pygame.image.frombytes(body.preview, (160, 120), "RGB") + self.cam_bytes = body.preview + rect = self.cam_surface.get_rect(bottomleft=(12, C.HEIGHT - 12)) + screen.blit(self.cam_surface, rect) + pygame.draw.rect(screen, T.WHITE if body.visible else T.RED, rect, 3) diff --git a/dobramundo/scenes/intro.py b/dobramundo/scenes/intro.py index 5074165..c74ee8e 100644 --- a/dobramundo/scenes/intro.py +++ b/dobramundo/scenes/intro.py @@ -234,7 +234,7 @@ def draw_child( image.set_alpha(255) def caption(self, screen: pygame.Surface, text: str, sub: str = "") -> None: - width = self.text.font(T.SIZES["hero"], hand=True).size(text)[0] + 70 + width = self.font("hero", hand=True).size(text)[0] + 70 box = pygame.Rect(0, 0, max(520, width), 112 if sub else 74) box.center = (C.WIDTH // 2, C.HEIGHT - (80 if sub else 72)) T.panel(screen, box, T.PAPER, T.NAVY, 240, 18, 3) diff --git a/dobramundo/scenes/map.py b/dobramundo/scenes/map.py index 95e5345..7a69e00 100644 --- a/dobramundo/scenes/map.py +++ b/dobramundo/scenes/map.py @@ -6,6 +6,7 @@ from __future__ import annotations +import random from typing import List, Optional, Tuple import pygame @@ -188,12 +189,13 @@ def _part_icon(key: str, size: int = 36) -> pygame.Surface: _map_cache: Optional[pygame.Surface] = None +_map_cache_texture: Optional[pygame.Surface] = None -def brazil_map() -> pygame.Surface: - """Mapa pintado uma vez: Cerrado como fundo e os demais biomas recortados pelo contorno.""" - global _map_cache - if _map_cache is not None: +def brazil_map(texture: Optional[pygame.Surface] = None) -> pygame.Surface: + """Mapa geográfico com pigmento aquarelado recortado pelo contorno e cacheado.""" + global _map_cache, _map_cache_texture + if _map_cache is not None and _map_cache_texture is texture: return _map_cache size = (C.WIDTH, C.HEIGHT) regions = pygame.Surface(size, pygame.SRCALPHA) @@ -203,9 +205,29 @@ def brazil_map() -> pygame.Surface: pygame.draw.polygon(regions, BIOME_MAP_COLORS[key], [to_screen(p) for p in polygon]) mask = pygame.Surface(size, pygame.SRCALPHA) pygame.draw.polygon(mask, (255, 255, 255, 255), outline) + pigment = pygame.Surface(MAP_RECT.size) + pigment.fill((255, 255, 255)) + if texture is not None: + wash = pygame.transform.smoothscale(texture, MAP_RECT.size) + wash.set_alpha(76) + pigment.blit(wash, (0, 0)) + else: + # Fallback sem asset: manchas sobrepostas em pequenas lavagens, com + # semente fixa e sem tocar nos limites geográficos. + rng = random.Random(1804) + for _ in range(260): + x = rng.randint(0, MAP_RECT.width) + y = rng.randint(0, MAP_RECT.height) + radius = rng.randint(5, 19) + tint = rng.choice(((252, 239, 207), (225, 240, 238), (221, 230, 235), (252, 227, 198))) + pygame.draw.circle(pigment, tint, (x, y), radius) + # Multiplicar uma lavagem clara preserva os tons do bioma e o alpha da + # máscara do país, em vez de substituir a geografia pela textura raster. + regions.blit(pigment, MAP_RECT.topleft, special_flags=pygame.BLEND_RGB_MULT) regions.blit(mask, (0, 0), special_flags=pygame.BLEND_RGBA_MIN) pygame.draw.polygon(regions, T.NAVY_DARK, outline, 3) _map_cache = regions + _map_cache_texture = texture return regions @@ -307,7 +329,10 @@ def _draw_geography(self, screen: pygame.Surface, key: str) -> None: self.app.backdrop(screen, self.last_dt, key, 5.0) T.veil(screen, (10, 18, 40), 110) T.panel(screen, MAP_RECT.inflate(20, 20), T.PAPER, T.NAVY, 240, 22, 3) - screen.blit(brazil_map(), (0, 0)) + pigment = self.app.assets.sprite("watercolor_prepared", "map_pigment_v17") + if pigment is None: + pigment = self.app.assets.sprite("watercolor", "map_pigment_v17") + screen.blit(brazil_map(pigment), (0, 0)) # A rota de aventura é uma pincelada sobre o mapa geográfico existente. city_a, city_b = [to_screen(BIOMES[key].map_point) for key in BIOME_ORDER] route = [ @@ -354,16 +379,23 @@ def _draw_destinations(self, screen: pygame.Surface) -> None: pygame.Rect(rect.left + 12, rect.top + 14, 140, 72), border_radius=14, ) - color = T.NAVY if button.enabled else T.MUTED + label_color = T.NAVY_DARK self.text.blit( - screen, biome.city, (rect.left + 178, rect.top + 14), T.SIZES["label"], color, True, "topleft" + screen, + biome.city, + (rect.left + 178, rect.top + 9), + T.SIZES["label"], + label_color, + True, + "topleft", ) self.text.blit( screen, biome.name, - (rect.left + 178, rect.top + 48), - T.SIZES["small"], - color, + (rect.left + 178, rect.top + 43), + max(T.SIZES["small"], 18), + label_color, + True, anchor="topleft", ) for star_index in range(3): @@ -390,25 +422,25 @@ def _draw_destinations(self, screen: pygame.Surface) -> None: screen, "3ª", (rect.left + 208, rect.top + 81), - T.SIZES["small"], + max(T.SIZES["small"], 18), T.NAVY, True, "midleft", ) x = rect.left + 239 for part_key, level in biome.required_parts.items(): - icon = _part_icon(part_key, 36) - screen.blit(icon, (x, rect.top + 66)) + icon = _part_icon(part_key, 30) + screen.blit(icon, (x, rect.top + 68)) self.text.blit( screen, str(level), - (x + 37, rect.top + 84), - T.SIZES["small"], + (x + 32, rect.top + 84), + max(T.SIZES["small"], 18), T.NAVY, True, "midleft", ) - x += 70 + x += 64 def _draw_future_biomes(self, screen: pygame.Surface) -> None: # Os biomas futuros ficam em duas colunas dentro de um painel legível. diff --git a/dobramundo/scenes/options.py b/dobramundo/scenes/options.py index 4543a54..41cc74e 100644 --- a/dobramundo/scenes/options.py +++ b/dobramundo/scenes/options.py @@ -23,11 +23,24 @@ } ROW_H = 48 GAP = 6 +SECTION_H = 54 +PAGE_ROW_H = 56 +PAGE_GAP = 10 +OPTION_PAGES = ( + ("controle", "Controle", "plane"), + ("superficie", "Superfície", "map"), + ("som", "Som", "sound"), + ("acessibilidade", "Acessibilidade", "accessibility"), +) # Superfície -> segmento sugerido (aplicado quando a câmera já está em uso). SURFACE_SEGMENT = {"chao": "pes", "mesa": "mao_direita", "parede": "tronco_pe"} class OptionsScene(Scene): + def __init__(self, app) -> None: + super().__init__(app) + self.section = "controle" + def build(self) -> None: buttons = [] self._build_controls(buttons) @@ -35,7 +48,153 @@ def build(self) -> None: self._build_audio(buttons) self._build_accessibility(buttons) self._build_footer(buttons) - self.menu.set_buttons(buttons) + self._add_comfort_options(buttons) + self._section_buttons = [] + tab_gap = 10 + tab_w = (C.WIDTH - 48 - tab_gap * 3) // 4 + for index, (key, label, icon_name) in enumerate(OPTION_PAGES): + fitted_label, label_size = T.fit_text( + self.text, label, tab_w - 64, size=T.SIZES["body"], minimum=T.SIZES["small"], bold=True + ) + self._section_buttons.append( + self.button( + (24 + index * (tab_w + tab_gap), 92, tab_w, SECTION_H), + fitted_label, + lambda section=key: self.select_section(section), + icon=T.icon_surface(icon_name, 34, T.TEAL if key == self.section else T.NAVY), + selected=key == self.section, + size=label_size, + key=f"section:{key}", + ) + ) + controls, footer = self._partition_buttons(buttons) + self._arrange_page(controls) + visible_controls = [button for group in controls.values() for button in group] + self.menu.set_buttons([*self._section_buttons, *visible_controls, *footer]) + + def _add_comfort_options(self, buttons) -> None: + o = self.app.options + self._toggle( + buttons, + 24, + 562, + "movimento", + "Movimento reduzido", + o.reduzir_movimento, + lambda: self.flip("reduzir_movimento"), + 510, + ) + self._toggle( + buttons, + 566, + 562, + "auto_abertura", + "Abertura automática", + o.abertura_automatica, + lambda: self.flip("abertura_automatica"), + 510, + ) + + @staticmethod + def _unit_for_key(key: str) -> str: + prefixes = ( + "seg", + "sens", + "perm_editor", + "perm", + "sup", + "volume_geral", + "volume_musica", + "volume_efeitos", + "escala_contraste", + ) + for prefix in prefixes: + if key.startswith(prefix): + return prefix + return key + + def _partition_buttons(self, buttons): + page_for = { + "seg": "controle", + "calibrar": "controle", + "posicao": "controle", + "sens": "controle", + "perm": "controle", + "perm_editor": "controle", + "sup": "superficie", + "projecao": "superficie", + "centralizar": "superficie", + "foco": "superficie", + "volume_geral": "som", + "volume_musica": "som", + "volume_efeitos": "som", + "silencio": "som", + "tela": "som", + "contraste": "acessibilidade", + "escala_contraste": "acessibilidade", + "inverter": "acessibilidade", + "inverter_lados": "acessibilidade", + "efeitos": "acessibilidade", + "movimento": "acessibilidade", + "auto_abertura": "acessibilidade", + } + grouped = {name: {} for name, _, _ in OPTION_PAGES} + footer = [] + for button in buttons: + if button.key in {"voltar", "abertura", "treino", "dwell_treino", "preparar"}: + footer.append(button) + continue + unit = self._unit_for_key(button.key) + page = page_for.get(unit) + if page is not None: + grouped[page].setdefault(unit, []).append(button) + return grouped[self.section], footer + + def _arrange_page(self, units) -> None: + rows = { + "controle": [ + (("seg", 2),), + (("calibrar", 1), ("posicao", 1)), + (("sens", 2),), + (("perm", 1), ("perm_editor", 1)), + ], + "superficie": [(("sup", 2),), (("projecao", 1), ("centralizar", 1)), (("foco", 2),)], + "som": [ + (("volume_geral", 2),), + (("volume_musica", 2),), + (("volume_efeitos", 2),), + (("silencio", 1), ("tela", 1)), + ], + "acessibilidade": [ + (("contraste", 1), ("escala_contraste", 1)), + (("inverter", 1), ("inverter_lados", 1)), + (("efeitos", 2),), + (("movimento", 1), ("auto_abertura", 1)), + ], + }[self.section] + full_w = C.WIDTH - 48 + half_w = (full_w - GAP) // 2 + y = 165 + for row in rows: + for unit_key, span in row: + group = units.get(unit_key, []) + if not group: + continue + width = full_w if span == 2 else half_w + x = 24 if span == 2 or len(row) == 1 else 24 + (0 if row.index((unit_key, span)) == 0 else half_w + GAP) + if len(group) == 3: + arrow = min(48, max(38, width // 5)) + group[0].rect = pygame.Rect(x, y, arrow, PAGE_ROW_H) + group[1].rect = pygame.Rect(x + arrow + 4, y, width - 2 * arrow - 8, PAGE_ROW_H) + group[2].rect = pygame.Rect(x + width - arrow, y, arrow, PAGE_ROW_H) + else: + group[0].rect = pygame.Rect(x, y, width, PAGE_ROW_H) + y += PAGE_ROW_H + PAGE_GAP + + def select_section(self, section: str) -> None: + if section in {key for key, _, _ in OPTION_PAGES}: + self.section = section + self.build() def _stepper( self, buttons, x: int, y: int, key: str, label: str, value: str, minus: Callable, plus: Callable, w: int = 510 @@ -282,8 +441,6 @@ def _build_accessibility(self, buttons) -> None: ) def _build_footer(self, buttons) -> None: - o = self.app.options - width = 510 footer = ( (texts.UI["voltar"], lambda: self.goto("vila"), "voltar"), ("História", self.intro, "abertura"), @@ -291,36 +448,18 @@ def _build_footer(self, buttons) -> None: ("Mirar", self.replay_dwell, "dwell_treino"), ("Preparar", self.prepare, "preparar"), ) + footer_y = 536 + footer_width = (C.WIDTH - 48 - 4 * 10) // 5 for index, (label, action, key) in enumerate(footer): buttons.append( self.button( - (24 + index * 210, 508, 202, ROW_H), + (24 + index * (footer_width + 10), footer_y, footer_width, 56), label, action, key=key, icon=T.icon_surface("stabilizer", 28, T.GREEN) if key == "preparar" else None, ) ) - self._toggle( - buttons, - 24, - 562, - "movimento", - "Movimento reduzido", - o.reduzir_movimento, - lambda: self.flip("reduzir_movimento"), - width, - ) - self._toggle( - buttons, - 566, - 562, - "auto_abertura", - "Abertura automática", - o.abertura_automatica, - lambda: self.flip("abertura_automatica"), - width, - ) # ------------------------------------------------------------ ações def changed(self) -> None: @@ -381,10 +520,8 @@ def draw(self, screen: pygame.Surface) -> None: self.app.backdrop(screen, self.last_dt, None, 50.0) T.veil(screen, (10, 18, 40), 140) self.title(screen, texts.UI["opcoes"], "Ajustes para o supervisor e para a criança") - self.text.blit(screen, "Controle e superfície", (24, 92), T.SIZES["label"], T.WHITE, True) - self.text.blit(screen, "Som e visão", (566, 92), T.SIZES["label"], T.WHITE, True) self.draw_menu(screen) - self.toast.draw(screen, self.text, (C.WIDTH // 2 + 160, 604), 560) + self.toast.draw(screen, self.text, (C.WIDTH // 2, 492), 560) body = self.app.input.body if body is not None and body.error: self.text.blit( diff --git a/dobramundo/scenes/pilot.py b/dobramundo/scenes/pilot.py index dcf3c27..5ae0236 100644 --- a/dobramundo/scenes/pilot.py +++ b/dobramundo/scenes/pilot.py @@ -50,7 +50,7 @@ ) PAGE_BY_FIELD = {field: (label, options) for field, label, options in PAGES} MOBILITY_KEYS = ("livre", "cadeira", "andador") -NAV_LABELS = {"cor_cabelo": "Tom", "acessorio": "Acess.", "mobilidade": "Apoio"} +NAV_LABELS = {"cor_cabelo": "Cor", "acessorio": "Enfeite", "mobilidade": "Apoio"} GREETINGS = ("Oi! Esse é você?", "Que legal!", "Pronto para voar?", "Uau, ficou ótimo!") PREVIEW = pygame.Rect(24, 146, 300, 390) CHOICES = pygame.Rect(340, 146, 736, 390) @@ -299,7 +299,9 @@ def draw(self, screen: pygame.Surface) -> None: app = self.app app.backdrop(screen, self.last_dt, None, 40.0) T.veil(screen, (10, 18, 40), 112) - subtitle = "Escolha cada parte do seu jeito" if self.first_time else "Personalize seu piloto" + subtitle = ( + "Fique sobre uma escolha para selecionar" if self.first_time else "Fique sobre uma escolha para mudar" + ) self.title(screen, texts.UI["piloto"], subtitle) T.panel(screen, PREVIEW, T.PAPER, T.NAVY, 245, 22, 3) @@ -317,8 +319,4 @@ def draw(self, screen: pygame.Surface) -> None: screen.blit(img, img.get_rect(midbottom=(PREVIEW.centerx, stage.top + 3 + bob))) T.panel(screen, CHOICES, (250, 246, 233), T.NAVY, 225, 20, 2) - instruction = f"{PAGE_BY_FIELD[self.page][0]}: toque em uma opção" - self.text.blit( - screen, instruction, (CHOICES.centerx, CHOICES.top - 20), T.SIZES["small"], T.NAVY, True, "midbottom" - ) self.draw_menu(screen) diff --git a/dobramundo/scenes/preparation.py b/dobramundo/scenes/preparation.py index 48e4d7f..10bbfc9 100644 --- a/dobramundo/scenes/preparation.py +++ b/dobramundo/scenes/preparation.py @@ -107,7 +107,7 @@ def _build_my_flight(self) -> None: (384, 160, 332, 230), "Explorar" if o.modo_exploracao else "Com vidas", lambda: self.set_option("modo_exploracao", not o.modo_exploracao), - sublabel="Sem eliminação · batidas contam" if o.modo_exploracao else "Vidas normais · 3 corações", + sublabel="Sem eliminação · batidas contam" if o.modo_exploracao else "3 vidas", size=T.SIZES["title"], key="exploracao", selected=o.modo_exploracao, @@ -143,6 +143,7 @@ def set_option(self, name: str, value) -> None: self.app.options.modo_exploracao = bool(value) elif name == "assistencia_previsivel": self.app.options.assistencia_previsivel = bool(value) + self.app.profile.apoio_escolhido = True elif name == "semente_desafio": self.app.options.semente_desafio = int(value) else: diff --git a/dobramundo/scenes/profiles.py b/dobramundo/scenes/profiles.py index f0c055b..646c2a0 100644 --- a/dobramundo/scenes/profiles.py +++ b/dobramundo/scenes/profiles.py @@ -135,5 +135,5 @@ def draw(self, screen: pygame.Surface) -> None: if self.error: box = pygame.Rect(80, C.HEIGHT - 54, C.WIDTH - 160, 42) T.panel(screen, box, T.PAPER, T.ORANGE, 245, 12, 3) - label, size = T.fit_text(self.text, self.error, box.width - 24, T.SIZES["small"], bold=True) + label, size = T.fit_text(self.text, self.error, box.width - 24, size=20, minimum=18, bold=True) self.text.blit(screen, label, box.center, size, T.INK, True, "center") diff --git a/dobramundo/scenes/result.py b/dobramundo/scenes/result.py index 13f4b90..48ad462 100644 --- a/dobramundo/scenes/result.py +++ b/dobramundo/scenes/result.py @@ -2,8 +2,6 @@ from __future__ import annotations -from datetime import datetime - import pygame from .. import config as C @@ -12,45 +10,13 @@ from ..content.progress import PART_BY_KEY, VILLAGE_UPGRADES, can_afford, missing from ..engine.village_art import village_prop from ..game.run import FlightRun +from ..game.settlement import apply_run, notify_settlement from ..ui import theme as T from ..ui.widgets import row, star from .base import Scene from .village import VILLAGE_REQUESTS -def apply_run(profile, run: FlightRun) -> dict: - """Leva o voo para o perfil: recursos, pontos, estrelas e recorde. Devolve o resumo.""" - if run.settlement is not None: - return dict(run.settlement) - key = run.biome.key - best_before = profile.estrelas.get(key, 0) - for waste, amount in run.resources.items(): - profile.recursos[waste] = profile.recursos.get(waste, 0) + amount - profile.pontos += run.score - profile.voos += 1 - profile.voos_fase[key] = profile.voos_fase.get(key, 0) + 1 - entry = run.summary() - entry["data"] = datetime.now().isoformat(timespec="seconds") - entry["controle"] = profile.controle - profile.historico = (profile.historico + [entry])[-C.HISTORY_LIMIT :] - if run.stars > best_before: - profile.estrelas[key] = run.stars - record_key = f"{key}:{run.mode}" - new_record = run.score > profile.recordes.get(record_key, 0) - if new_record: - profile.recordes[record_key] = run.score - run.settlement = {"new_stars": max(0, run.stars - best_before), "new_record": new_record} - return dict(run.settlement) - - -def notify_settlement(app, run: FlightRun) -> None: - """Notifica o cartucho uma vez, inclusive se o processo fechar durante um voo.""" - if run.settlement_callback_sent or not run.settlement: - return - app.on_flight(app.profile.historico[-1]) - run.settlement_callback_sent = True - - def movement_line(run: FlightRun) -> str: """Linha do movimento no resultado: tempo em ação, alcances percorridos e momentos de foco.""" parts = [] @@ -68,14 +34,30 @@ class ResultScene(Scene): def __init__(self, app, run: FlightRun) -> None: super().__init__(app) self.run = run - self.summary = apply_run(app.profile, run) - app.save() - notify_settlement(app, run) + self.summary = dict(run.settlement or {"new_stars": 0, "new_record": False}) biome = run.biome facts = texts.BIOME_FACTS.get(biome.key, ()) self.fact = facts[app.profile.voos % len(facts)] if facts else "" self.music = f"musica_{biome.music}_{min(2, run.stage) + 1}" + def enter(self) -> None: + """Assenta o voo quando o resultado passa a ser a cena ativa, nunca ao criar preview.""" + if self.run.settlement is None: + self.summary = apply_run(self.app.profile, self.run) + self.app.save() + notify_settlement(self.app, self.run) + facts = texts.BIOME_FACTS.get(self.run.biome.key, ()) + self.fact = facts[self.app.profile.voos % len(facts)] if facts else "" + else: + self.summary = dict(self.run.settlement) + super().enter() + + def settle_on_close(self) -> None: + """Um resultado pendente no fechamento também preserva suas recompensas.""" + apply_run(self.app.profile, self.run) + self.app.save() + notify_settlement(self.app, self.run) + def build(self) -> None: count = 3 if self.app.save_failed else 2 width = C.WIDTH - 100 if self.app.save_failed else 720 @@ -95,7 +77,12 @@ def village_action(key: str = next_build.key) -> None: self.goto("melhorias", tab="vila", initial_key=key) buttons = [ - self.button(rects[0], texts.UI["tentar_de_novo"] if self.run.game_over else "Voar de novo", self.again), + self.button( + rects[0], + texts.UI["tentar_de_novo"] if self.run.game_over else "Voar de novo", + self.again, + sublabel="Nova decolagem · progresso mantido", + ), self.button( rects[-1], village_label, @@ -156,7 +143,7 @@ def draw(self, screen: pygame.Surface) -> None: elif run.game_over: title = "Seu avião precisa de reparos" elif run.timeout: - title = "Tempo combinado: voo guardado" + title = "Tempo combinado: voo terminado" elif run.interrupted: title = "Voo encerrado por agora" else: @@ -200,28 +187,30 @@ def draw(self, screen: pygame.Surface) -> None: movement, (card.centerx, card.top + 178), T.SIZES["small"], - T.TEAL, + T.MUTED_STRONG, True, "midtop", ) - details = [f"Semente {run.seed}"] if run.world.challenge_theme is not None: - details.append(run.world.challenge_theme.title) + details = [run.world.challenge_theme.title, f"Semente {run.seed}"] + else: + details = [] if run.session_limit_s: details.append(f"tempo combinado {run.session_limit_s // 60} min") if run.exploration: details.append("Explorar") if run.predictable_assistance: - details.append("assistência previsível") - self.text.blit( - screen, - " · ".join(details), - (card.centerx, card.top + 199), - T.SIZES["small"], - T.TEAL, - True, - "midtop", - ) + details.append("Com apoio") + if details: + self.text.blit( + screen, + " · ".join(details), + (card.centerx, card.top + 199), + T.SIZES["small"], + T.MUTED_STRONG, + True, + "midtop", + ) self.text.blit(screen, "Recursos para a vila", (card.left + 38, card.top + 222), T.SIZES["body"], T.NAVY, True) cells = row(pygame.Rect(card.left + 32, card.top + 251, card.width - 64, 66), 4, 12) for waste, rect in zip(WASTE_TYPES, cells): @@ -237,7 +226,7 @@ def draw(self, screen: pygame.Surface) -> None: T.INK, True, ) - self.text.blit(screen, waste.name, (rect.left + 62, rect.top + 39), T.SIZES["small"], T.MUTED) + self.text.blit(screen, waste.name, (rect.left + 62, rect.top + 37), T.SIZES["small"] + 2, T.INK, True) self.draw_next_build(screen, pygame.Rect(card.left + 32, card.top + 331, 468, 92)) self.draw_missing_parts(screen, pygame.Rect(card.left + 520, card.top + 331, card.width - 552, 92)) if self.app.save_failed: @@ -253,7 +242,7 @@ def draw(self, screen: pygame.Surface) -> None: "center", ) else: - self.text.blit(screen, "Curiosidade", (card.left + 38, card.top + 428), T.SIZES["small"], T.TEAL, True) + self.text.blit(screen, "Curiosidade", (card.left + 38, card.top + 428), T.SIZES["small"], T.INK, True) self.text.paragraph( screen, self.fact, @@ -261,6 +250,7 @@ def draw(self, screen: pygame.Surface) -> None: T.SIZES["small"], T.INK, spacing=1.1, + bold=True, ) self.draw_menu(screen) @@ -276,7 +266,7 @@ def draw_next_build(self, screen: pygame.Surface, rect: pygame.Rect) -> None: "Todos os espaços ganharam vida.", (rect.left + 68, rect.top + 48), T.SIZES["small"], - T.MUTED, + T.MUTED_STRONG, ) return icon = village_prop(next_build.key, self.app.assets.sprite("watercolor", "village_props")) @@ -290,7 +280,7 @@ def draw_next_build(self, screen: pygame.Surface, rect: pygame.Rect) -> None: True, ) request = VILLAGE_REQUESTS.get(next_build.key, "A vila pede ajuda!") - self.text.blit(screen, request, (rect.left + 132, rect.top + 38), T.SIZES["small"], T.TEAL) + self.text.blit(screen, request, (rect.left + 132, rect.top + 38), T.SIZES["small"], T.MUTED_STRONG) shortfall = missing(profile.recursos, next_build.cost) if not shortfall: self.text.blit( @@ -302,7 +292,7 @@ def draw_next_build(self, screen: pygame.Surface, rect: pygame.Rect) -> None: True, ) return - self.text.blit(screen, "Materiais", (rect.left + 132, rect.top + 62), T.SIZES["small"], T.ORANGE, True) + self.text.blit(screen, "Faltam", (rect.left + 132, rect.top + 62), T.SIZES["small"], T.INK, True) x = rect.left + 226 for waste in WASTE_TYPES: needed = next_build.cost.get(waste.key, 0) @@ -312,12 +302,12 @@ def draw_next_build(self, screen: pygame.Surface, rect: pygame.Rect) -> None: if icon is not None: screen.blit(self.scaled(icon, (24, 24), ("next-build-waste", waste.key)), (x, rect.top + 68)) have = profile.recursos.get(waste.key, 0) - color = T.GREEN if have >= needed else T.ORANGE + color = T.GREEN if have >= needed else T.INK self.text.blit( screen, - f"{have}/{needed}", - (x + 25, rect.top + 71), - 15, + str(max(0, needed - have)), + (x + 25, rect.top + 67), + T.SIZES["small"], color, True, ) diff --git a/dobramundo/scenes/tutorial.py b/dobramundo/scenes/tutorial.py index 56dba9b..d5aeadf 100644 --- a/dobramundo/scenes/tutorial.py +++ b/dobramundo/scenes/tutorial.py @@ -159,14 +159,13 @@ def __init__(self, app, next_scene=None, return_to=None) -> None: super().__init__(app) self.next_scene = next_scene self.return_to = return_to - self.run = FlightRun(BIOMES["amazonia"], app.profile.modo, app.profile.pecas, focus=False) + self.run = FlightRun(BIOMES["amazonia"], app.profile.modo, app.profile.pecas, focus=False, spawn_enabled=False) self.run.invincible = True self.run.player.x = 0.0 self.run.player.y = C.REST_ALTITUDE self.run.player.vx = self.run.player.vy = 0.0 self.run.world.entities.clear() self.run.world.pending_lessons.clear() - self.run.world.spawn_pattern = lambda _z: None # type: ignore[method-assign] self.step_index = 0 self.trial: Optional[Trial] = None self.feedback = 0.0 diff --git a/dobramundo/scenes/village.py b/dobramundo/scenes/village.py index 9730f77..75db9c3 100644 --- a/dobramundo/scenes/village.py +++ b/dobramundo/scenes/village.py @@ -491,7 +491,10 @@ def draw(self, screen: pygame.Surface) -> None: if plane is not None: key = ("vila", skin.look_key(profile.aviao, color, pattern, profile.piloto)) backgrounds = self.watercolor_backgrounds - painted = any(backgrounds.get(name) is not None for name in ("village_start_v2", "village_start")) + painted = any( + backgrounds.get(name) is not None + for name in ("village_industrial_v3", "village_start_v2", "village_start") + ) plane_size = (225, 150) if painted else (250, 170) img = self.scaled(plane, plane_size, key) bob = 0.0 if app.options.reduzir_movimento else math.sin(self.time * 2.2) * 6 diff --git a/dobramundo/selftest.py b/dobramundo/selftest.py index fb6aae5..f10a8f0 100644 --- a/dobramundo/selftest.py +++ b/dobramundo/selftest.py @@ -90,6 +90,8 @@ def check_report(report: dict, require_camera: bool) -> List[str]: for biome, flight in report["voos"].items(): if flight["estagio"] < 2: failures.append(f"o voo em {biome} não chegou ao estágio 3") + if flight.get("segundos_ativos", 0) <= 0 or flight.get("distancia", 0) <= 0: + failures.append(f"o voo em {biome} não avançou após o preparo") if require_camera and report["camera"]["detector"] != "ok": failures.append(f"detector de pose: {report['camera']['detector']}") return failures @@ -170,9 +172,21 @@ def run_self_test(frames: int, require_camera: bool = False) -> int: scene = FlightScene(app, biome) scene.run.invincible = True # o teste não termina em game over app.go(scene) + preparation_frames = 0 + for _ in range(1800): + if app.scene is scene and not app.view.warmup_pending: + break + app.step(0.0, []) + preparation_frames += 1 + else: + raise RuntimeError(f"O preparo do voo em {biome} não terminou") times: List[float] = [] per_stage = max(1, frames // 3) for frame in range(frames): + # Mantém a carga de desenho pelos N quadros; conclusão e recompensas + # têm testes de regras e capturas de resultado separados. + scene.run.complete = False + scene.run.complete_timer = 0.0 if frame % per_stage == 0 and frame: # força a passagem pelos três estágios scene.run.add_restoration(100.0 / 3.0) if frame % 40 == 0: @@ -184,6 +198,10 @@ def run_self_test(frames: int, require_camera: bool = False) -> int: run = scene.run flights[biome] = { "quadros": frames, + "quadros_preparo": preparation_frames, + "segundos_ativos": round(run.flight_time, 3), + "distancia": round(run.world.distance, 3), + "carga_sintetica": "invencivel; encerramento por conclusao desativado", "transformacao": round(run.restoration, 1), "estrelas": run.stars, "estagio": run.stage, diff --git a/dobramundo/ui/theme.py b/dobramundo/ui/theme.py index c0288fe..d40563a 100644 --- a/dobramundo/ui/theme.py +++ b/dobramundo/ui/theme.py @@ -24,7 +24,8 @@ PAPER = rgb("f7f1e3") PAPER_DARK = rgb("e8dcc0") INK = rgb("1d2433") -MUTED = rgb("6b7280") +MUTED = rgb("525b68") +MUTED_STRONG = rgb("3f4654") WHITE = (255, 255, 255) GREEN = rgb("2e9e44") RED = rgb("d64532") @@ -34,7 +35,7 @@ # Fontes embutidas (assets/fonts, licença OFL): Fredoka (títulos e botões, arredondada e # amigável), Nunito (leitura) e Patrick Hand (legendas "escritas à mão" da abertura). FONT_FILES = {"bold": "Fredoka.ttf", "regular": "Nunito.ttf", "hand": "PatrickHand.ttf"} -SIZES = {"small": 16, "body": 20, "label": 24, "title": 34, "hero": 46} +SIZES = {"small": 18, "body": 20, "label": 24, "title": 34, "hero": 46} SHADOW = (31, 44, 80) # sombra azulada dos cartões (tinta diluída) @@ -292,6 +293,30 @@ def points(values): elif kind == "clock": pygame.draw.circle(surface, ink, (cx, cy), int(16 * s), max(2, int(3 * s))) pygame.draw.lines(surface, ink, False, points([(0, -10), (0, 0), (9, 5)]), max(2, int(3 * s))) + elif kind in {"sound", "audio"}: + pygame.draw.polygon(surface, ink, points([(-16, -7), (-7, -7), (5, -16), (5, 16), (-7, 7), (-16, 7)])) + pygame.draw.arc( + surface, + TEAL, + pygame.Rect(cx - int(5 * s), cy - int(13 * s), int(25 * s), int(26 * s)), + -0.9, + 0.9, + max(2, int(3 * s)), + ) + pygame.draw.arc( + surface, + ORANGE, + pygame.Rect(cx - int(1 * s), cy - int(20 * s), int(35 * s), int(40 * s)), + -0.9, + 0.9, + max(2, int(3 * s)), + ) + elif kind in {"accessibility", "inclusive"}: + pygame.draw.circle(surface, ink, points([(0, -13)])[0], max(3, int(5 * s))) + pygame.draw.line(surface, ink, points([(0, -7)])[0], points([(0, 8)])[0], max(3, int(4 * s))) + pygame.draw.line(surface, TEAL, points([(-13, -2)])[0], points([(13, -2)])[0], max(3, int(4 * s))) + pygame.draw.line(surface, ink, points([(0, 7)])[0], points([(-10, 17)])[0], max(3, int(4 * s))) + pygame.draw.line(surface, ink, points([(0, 7)])[0], points([(10, 17)])[0], max(3, int(4 * s))) elif kind == "back": pygame.draw.polygon(surface, ink, points([(17, -6), (-4, -6), (-4, -15), (-19, 0), (-4, 15), (-4, 6), (17, 6)])) elif kind == "plane": diff --git a/dobramundo/ui/widgets.py b/dobramundo/ui/widgets.py index 5a01857..44799f4 100644 --- a/dobramundo/ui/widgets.py +++ b/dobramundo/ui/widgets.py @@ -79,8 +79,9 @@ def draw(self, screen: pygame.Surface, text: T.Text, focused: bool, progress: fl screen, self.sublabel, (rect.centerx, rect.top + 14 + self.size + 4), - T.SIZES["small"], - T.MUTED, + max(T.SIZES["small"], 18 if rect.height >= 54 else T.SIZES["small"]), + T.MUTED_STRONG, + True, anchor="midtop", ) elif self.label: @@ -91,8 +92,9 @@ def draw(self, screen: pygame.Surface, text: T.Text, focused: bool, progress: fl screen, self.sublabel, (rect.centerx, rect.centery + 13), - T.SIZES["small"], - T.MUTED, + max(T.SIZES["small"], 18 if rect.height >= 54 else T.SIZES["small"]), + T.MUTED_STRONG, + True, anchor="center", ) else: @@ -102,7 +104,13 @@ def draw(self, screen: pygame.Surface, text: T.Text, focused: bool, progress: fl if self.sublabel: text.blit(screen, self.label, (left, rect.centery - 10), self.size, color, True, "midleft") text.blit( - screen, self.sublabel, (left, rect.centery + 12), T.SIZES["small"], T.MUTED, anchor="midleft" + screen, + self.sublabel, + (left, rect.centery + 12), + max(T.SIZES["small"], 18 if rect.height >= 54 else T.SIZES["small"]), + T.MUTED_STRONG, + True, + anchor="midleft", ) else: text.blit(screen, self.label, (left, rect.centery), self.size, color, True, "midleft") diff --git a/docs/ENTREGA_1_7.md b/docs/ENTREGA_1_7.md new file mode 100644 index 0000000..0202fe9 --- /dev/null +++ b/docs/ENTREGA_1_7.md @@ -0,0 +1,62 @@ +# Dobramundo 1.7 — a cidade continua mudando + +A transformação conquistada fica guardada em cada cidade. Um voo curto deixa de apagar o avanço anterior: na próxima decolagem, a paisagem continua de onde estava, com vidas e velocidade inicial renovadas. Ao terminar o tempo combinado, a tela informa que o voo terminou e mostra o que foi conquistado. + +Perfis anteriores recuperam o maior avanço registrado no histórico. Quando só há estrelas, a migração conserva o estágio mínimo que elas comprovam; duas estrelas, por exemplo, não são tratadas automaticamente como 100% de transformação. + +Na primeira execução, a criança monta seu piloto, acompanha a história do jornal e chega à vila. A história tem **Pular** e pode ser revista. Os primeiros três voos oferecem apoio, respeitando uma escolha feita no menu. Fechar durante a preparação do cenário não consome um desses voos. + +Manaus e Petrolina estão abertas desde o começo. A recuperação avança 1 ponto percentual por segundo de voo ativo, além das coletas: começa a aparecer cedo e fica guardada no mesmo percentual mostrado pela interface. Pausas e preparação não contam, e esse avanço não dá recursos ou velocidade extra. O cenário inicial reforça estruturas e poluição industrial nas margens; a mistura da aquarela começa após os 5% iniciais. + +No chão, a zona central de 15–85% agora alcança a tela inteira. A mira à frente perde intensidade nas bordas, preservando os quatro cantos. No TSDK atual, o marcador acompanha o alvo real, inclusive em menus com outro segmento escolhido; a perda de leitura esconde o marcador e suspende a seleção. + +## O que mudou na experiência + +- **Escolhas mais claras:** Opções tem quatro grupos — Controle, Superfície, Som e Acessibilidade. O editor conserva o tempo de permanência mais lento e a exigência de sair do alvo antes de repetir. +- **Leitura:** textos auxiliares maiores e mais escuros, números de vidas derivados das regras, avisos de recompensa fora do horizonte e sinal discreto de troca das pequenas missões. +- **Identidade:** piloto neutro em papel quente, criança maior e sentada no avião, textura de pigmento no mapa e detalhes regionais dos obstáculos, preservando as três manobras aprendidas. +- **Preparação:** o cenário é preparado antes do primeiro quadro interativo. A barra representa tarefas concluídas; não é um temporizador fictício. +- **Movimento:** amostragem suave do chão, margens contínuas e avisos de ameaças que ficam fora da imagem ampliada no alto contraste. +- **Progresso protegido:** duas janelas não abrem simultaneamente o mesmo diretório de dados. Perfis antigos são migrados; um arquivo de uma versão futura é preservado e não é sobrescrito. +- **Downloads menores:** os pacotes levam uma variante de cada imagem usada no jogo. Originais e instruções de geração continuam no repositório para edição. + +## Revisão dos 18 itens anteriores + +| Item | Implementação e verificação | +|---|---| +| R01 — custo dos quadros | Medição de tempos inclusivos e exclusivos; solo com amostragem suave; comparação por bioma, contraste e câmera no relatório de desempenho. | +| R02 — entrada do voo | Fila de preparo com tarefas nomeadas e medidas; voo aguarda a prontidão real. Preparação e primeiro quadro interativo são medidos separadamente. | +| R03 — memória | Orçamento compartilhado de 192 MiB para caches de superfícies derivadas, contagem de armazenamento compartilhado e remoção da conversão duplicada. Arte base e buffers ativos não fazem parte desse teto; RSS é medido separadamente. | +| R04 — latência usada | Sequência da amostra consumida acompanha o quadro até a apresentação; ferramenta tem modo de controle real pela câmera, sem salvar imagens ou posições corporais. | +| R05 — duas instâncias | Bloqueio por diretório e revisão esperada do arquivo; testes com processos, encerramento inesperado e escrita antiga. | +| R06 — versão do perfil | Esquema 2, migração explícita da versão 1, testes de repetição e preservação byte a byte de versão futura. | +| R07 — mensagens e vidas | Mensagem de encerramento honesta; preparação mostra as mesmas vidas e proteção utilizadas pelo motor. | +| R08 — avisos na pista | HUD extraído; aviso de conquista posicionado na periferia, com tratamento de oclusão e redução de movimento. | +| R09 — ampliação | Indicadores de ameaça fora da imagem ampliada; testes de bordas e escalas 1,0/1,3/1,6. | +| R10 — piloto | Proporção maior, pose sentada, separação de cabelo/roupa/papel e ajuste por modelo de avião. | +| R11 — escolhas | Piso de texto auxiliar e contraste maiores; pictogramas e benefícios de apoio consistentes com as regras. | +| R12 — ritmo | Transformação persistente, ganho por coleta revisto e assistência inicial; simulações com erros/tempos de reação e trajetórias independentes, sem alterar os preços. | +| R13 — pequenas missões | Barra discreta de prazo no cartão da missão, sem piscar; usa tempo ativo do mundo e não retira recursos. | +| R14 — continuidade | Capturas de todos os estágios, abertura, resultados e obras; sequências das emendas e mudanças de estágio. | +| R15 — contratos | Dependências explícitas do desenho e verificação estática incremental no CI, com testes das camadas. | +| R16 — responsabilidades | Modelo/migração separados do armazenamento, liquidação em serviço próprio, HUD separado e geração desativada por política explícita. Construtor de resultado não grava nem notifica. | +| R17 — regressões | Novos casos de persistência, abertura, progresso, zoom, preparo, recursos, telemetria e comparação de imagens revisadas em ambiente fixo. | +| R18 — distribuição | Inventário compartilhado pelos builds, montagem versionada da release, manifestos/hashes, self-tests nativos e verificação do cartucho isolado. | + +As funções auxiliares sem uso foram removidas. A busca de rota separa agrupamento de ameaças e cálculo de células seguras; seus testes preservam os intervalos e predicados de segurança. O modelo de perfil saiu de `persistence.py`. Fontes e ajuste de texto usam os helpers compartilhados nos caminhos alterados. + +As notas das entregas anteriores estão em [histórico](historico/README.md). O README e a descrição do repositório explicam o jogo em linguagem direta. Onze branches já mescladas foram removidas após conferência dos commits; suas alterações continuam na história da main e dos pull requests. + +## Evidências e limites + +Os resultados medidos ficam em [validação 1.7](validacao-v1.7/README.md). Os testes sintéticos não demonstram conforto infantil, reconhecimento dos seis segmentos em todas as pessoas, leitura a 2–3 m ou desempenho do console físico. Esses critérios têm roteiro próprio em [validação presencial](VALIDACAO_PRESENCIAL.md). + +O limite de cache não é um limite de memória total do processo. A medição da câmera começa no retorno da captura e termina na chamada de apresentação; não inclui atraso do sensor nem do projetor. Repetir usa a mesma semente e as mesmas escolhas, com a transformação já conquistada; não reconstrói uma partida interrompida. + +Os 72 mil quadros do ensaio prolongado terminaram sem falha e com cache dentro do orçamento. **A meta de 60 FPS ainda não passou integralmente:** o p95 excede 16,67 ms em parte das condições com câmera/alto contraste. Nas 20 entradas frias da rodada final, o primeiro quadro ficou abaixo de 50 ms nos dois biomas; esse resultado não garante o mesmo limite sob outra carga. A implementação e a medição dos itens R01/R02 estão entregues, com o alvo de quadros do R01 ainda em aberto. Consulte os [números e limites](validacao-v1.7/desempenho.md) antes de escolher o equipamento da sessão. + +## Arte e procedência + +A textura nova do mapa foi gerada pela ferramenta integrada `image_gen` e aplicada às máscaras geográficas existentes. O arquivo de edição é [map_pigment_v17.png](../assets/watercolor/map_pigment_v17.png); o [prompt completo e a procedência](../assets/watercolor/generation_v17_map.json) acompanham a imagem. A versão preparada do pacote tem 768 × 768 px. As demais alterações desta entrega usam composição e os assets já disponíveis. + +Código, arte e textos próprios seguem CC BY 4.0; fontes e dependências mantêm seus créditos e licenças. diff --git a/docs/GUIA_DO_JOGO.md b/docs/GUIA_DO_JOGO.md index dcd7aad..5a2f62f 100644 --- a/docs/GUIA_DO_JOGO.md +++ b/docs/GUIA_DO_JOGO.md @@ -8,7 +8,7 @@ O Dobramundo é um jogo de voo com atividade corporal e tema de sustentabilidade O jogo atende ao console T-TEA, com projeção no chão e controle pelos pés, mas não se restringe a ele: pode ser projetado em mesas e paredes ou exibido em monitores, e o controle pode ser feito pelos pés, pelo tronco, por uma das mãos ou pela cabeça. Destina-se a crianças neurodiversas e com deficiências motoras, visuais, sensoriais ou do neurodesenvolvimento, oferecendo a cada uma um modo de interação compatível. -Projeto da Liga de Psiquiatria e Neurociências – CENSUPEG, desenvolvido para a 3ª ExerGame JAM LARVA/UDESC 2026. Versão 1.6.0. +Projeto da Liga de Psiquiatria e Neurociências – CENSUPEG, desenvolvido para a 3ª ExerGame JAM LARVA/UDESC 2026. Versão 1.7.0. ### Tema e objetivo @@ -39,9 +39,9 @@ A versão atual tem duas fases, cada uma numa cidade brasileira do seu bioma: | Amazônia | Manaus (AM) | Estabilizador, nível 1 | | Caatinga | Petrolina (PE) | Leme, nível 1, e Quilha, nível 1 | -- Petrolina abre quando a criança conquista pelo menos 1 estrela em Manaus. +- Manaus e Petrolina estão abertas desde o primeiro voo; a criança escolhe a ordem das visitas. - Cerrado, Mata Atlântica, Pantanal e Pampa aparecem no mapa como "Em breve". -- A paisagem de cada fase tem três estágios: cidade industrial (dieselpunk), despertar ecológico e cidade solarpunk. Eles se sucedem aos 33,3% e aos 66,7% de transformação. +- A paisagem de cada fase tem três estágios: cidade industrial (dieselpunk), despertar ecológico e cidade solarpunk. Os marcos de estrelas/estágio ficam em 33,3% e 66,7%; a mistura visual da aquarela começa após os 5% iniciais e antecipa gradualmente essas mudanças. - No estágio industrial, peças regionais (guindaste, termelétrica e contêineres em Manaus; torres de transmissão, caixas d'água e galpões em Petrolina) se misturam às estruturas do kit, e silhuetas da cidade regional aparecem no horizonte. - O céu das fases poluídas é tingido pelo bioma: cinza e úmido em Manaus, ocre e seco em Petrolina. - Na direção aquarelada, água/solo avançam em perspectiva e as peças regionais se aproximam pelas margens. O cenário procedural de reserva usa quarteirões com vãos entre eles. @@ -52,7 +52,7 @@ Cada partida segue o ciclo **vila-base, mapa, voo e resultado**. Na vila, a cria ### Primeira execução -Na primeira execução, o **aviso ao supervisor** e a **calibração corporal**, quando necessários, preparam a interação. Um treino opcional ensina mirar, esperar e sair do alvo. A criança então começa com um **piloto neutro**, escolhe sua aparência e chega à **vila**. Na primeira decolagem pelo mapa, outro treino opcional ensina movimento, coleta e os três desvios com pictogramas e prática sem perda de vidas. Ambos podem ser pulados ou repetidos em Opções. A história fica disponível em Opções, e o personagem pode ser modificado pelo botão Piloto da vila. No desktop, a tela **Pilotos** permite criar e selecionar slots locais independentes; nomes e perfis pessoais não são solicitados. +Na primeira execução, o **aviso ao supervisor** e a **calibração corporal**, quando necessários, preparam a interação. Um treino opcional ensina mirar, esperar e sair do alvo. A criança começa com um **piloto neutro de papel**, escolhe sua aparência, acompanha a **história do jornal** e chega à **vila**. O botão **Pular** permite seguir imediatamente; a história pode ser revista em Opções. Na primeira decolagem pelo mapa, outro treino opcional ensina movimento, coleta e os três desvios com pictogramas e prática sem perda de vidas. Ambos podem ser pulados ou repetidos em Opções. O personagem pode ser modificado pelo botão Piloto da vila. No desktop, **Pilotos** permite criar e selecionar perfis locais independentes; nomes e dados pessoais não são solicitados. A abertura é um livro ilustrado de quatro páginas: uma cidade industrial colorida, com fumaça e resíduos; uma criança que encontra um jornal na rua; a dobradura do avião sobre uma mesa de trabalho, com setas e legenda de cada dobra; e o lançamento, com um rastro de aquarela nas cores da logo. @@ -89,17 +89,19 @@ Só conta o movimento feito depois que a seta aparece. Os momentos ocorrem no m ### Vidas -A criança tem três vidas. Cada colisão consome uma delas, seguida de 1,25 segundo de invulnerabilidade, e zera o combo. Sem vidas, o voo termina. +Sem apoio, a criança tem três vidas e 1,25 segundo de proteção após cada colisão. Com apoio, tem cinco vidas e 2 segundos de proteção. Os três primeiros voos oferecem apoio automaticamente, a menos que o jogador ou supervisor já tenha escolhido o contrário. Cada colisão consome uma vida e zera o combo. Sem vidas, o voo termina no modo Com vidas; Explorar permite continuar. ### Transformação e estrelas -A transformação da cidade vai de 0% a 100%, começando em 5%. Ao atingir os limiares, a criança ganha estrelas: +A transformação de uma cidade nova começa em 5%, em uma paisagem industrial e poluída. Ela avança durante o voo ativo, e as coletas aceleram a recuperação. Preparação, menus e pausas não transformam a cidade. O avanço fica guardado no perfil ao terminar ou encerrar um voo; a próxima decolagem continua desse percentual, com vidas e velocidade inicial renovadas. A posição do avião e os obstáculos da partida anterior não são retomados. Recursos e pontos continuam vindo das ações do jogo, não da passagem do tempo. Ao atingir os limiares, a criança ganha estrelas: - 1 estrela aos 33,3%, no despertar ecológico; - 2 estrelas aos 66,7%, na cidade solarpunk; - 3 estrelas com a cidade completa (100%), desde que as peças exigidas pela fase estejam instaladas no avião. Sem elas, a conclusão rende 2 estrelas, e a tela de resultado indica quais peças faltam. -Ao chegar a 100%, o avião segue planando por 3 segundos para a criança ver a cidade. +A recuperação pelo voo acrescenta 1 ponto percentual por segundo ativo, sem aumentar a velocidade ou a frequência de obstáculos. Sem coletar, uma cidade nova passa por cerca de 20%, 35% e 65% após 15, 30 e 60 segundos; coletas antecipam essas etapas. As pinturas se misturam gradualmente, por isso a mudança visual começa antes de uma nova estrela. + +Ao chegar pela primeira vez a 100%, o avião segue planando por 3 segundos para a criança ver a cidade. É possível voltar a visitar a cidade já transformada: ela permanece solarpunk e o voo não termina imediatamente. Instalar as peças que faltavam permite conquistar a terceira estrela numa nova coleta. ### Modos de jogo @@ -110,11 +112,11 @@ A dificuldade é a primeira escolha do mapa, em dois cartões grandes: **Normal* | Velocidade | Metade da velocidade-base (170 unidades/s) | Velocidade plena (340 unidades/s) | | Resíduos | 1 a cada 4 sorteados | Todos | | Pontos por resíduo | 65, fixos | 15 vezes o combo | -| Transformação por coleta | 1,18 ponto percentual | 0,115, mais 0,013 com combo de 4 ou mais | +| Transformação por coleta | 4,5 pontos percentuais | 1,5, mais 0,013 com combo de 4 ou mais | | Recursos por coleta | 4 | 1 | | Combo | Não há | Sobe a cada 4 coletas seguidas, até 8 vezes | -O combo zera se a criança passar 2,2 segundos sem coletar ou ao colidir. Nos dois modos, a dificuldade cresce ao longo de 240 segundos: a frequência de obstáculos aumenta e a velocidade sobe até 30 unidades/s no Difícil (metade no Normal); a transformação acrescenta até mais 30. +O combo zera se a criança passar 2,2 segundos sem coletar ou ao colidir. Nos dois modos, a dificuldade cresce ao longo de 240 segundos: a frequência de obstáculos aumenta e a velocidade sobe até 30 unidades/s no Difícil (metade no Normal). A rampa adicional de velocidade usa um contador local de cada voo, que cresce 1,18 por coleta no Normal e 0,115 no Difícil, com o pequeno bônus de combo. O ganho visual maior e a cidade já transformada não aceleram essa rampa. O tempo e o número de voos para completar o conteúdo variam com a coleta, assistência, exploração, pausas e modo. A simulação em `tools/balance.py` é sintética e não prevê o tempo individual. Em **Opções → Preparar**, a sessão pode ser livre ou limitada a 120, 180 ou 240 segundos; ao atingir o limite, o voo termina com resultado parcial. **Exploração** mantém o voo após esgotar vidas; colisões continuam registradas. **Assistência previsível** oferece regras de ajuda estáveis durante o voo. As opções são independentes da dificuldade. @@ -199,11 +201,13 @@ Em Opções, a opção **Controle do avião** escolhe o modo: ### Pés sobre a projeção -Com a superfície **Chão** e o segmento **Pés**, o avião e o cursor seguem onde a criança pisa na imagem projetada. Sem calibração, os pés usam a posição relativa à postura neutra, como os demais segmentos. Para a calibração, use **Opções > Projeção e chão** (só no executável): +Com a superfície **Chão** e o segmento **Pés**, o avião e o cursor acompanham a posição dos pés. Uma zona confortável, entre 15% e 85% da projeção, cobre a tela inteira: não é preciso levar o centro dos dois pés até a borda física para selecionar um botão extremo. Sem calibração, os pés usam a posição relativa à postura neutra, como os demais segmentos. Para a calibração, use **Opções > Projeção e chão** (só no executável): 1. Deixe a webcam vendo toda a projeção no chão e escolha "Calibrar os 4 cantos". Os alvos 1, 2, 3 e 4 aparecem a 15% das bordas da imagem. 2. A câmera tira uma foto. Clique no centro de cada alvo, na ordem 1 (superior esquerdo), 2 (superior direito), 3 (inferior direito) e 4 (inferior esquerdo). -3. Confira pisando sobre os alvos. "Cursor à frente" (0 a 35%, padrão 12%) desloca o cursor um pouco à frente dos dedos, para ficar visível. +3. Confira o alcance dos quatro cantos e o retorno ao centro. "Cursor à frente" (0 a 35%, padrão 12%) desloca o cursor no miolo da projeção; esse deslocamento diminui perto das bordas para preservar o alcance dos cantos. + +No TSDK com suporte a alvo de controle, a bolinha segue a posição real usada na seleção, incluindo a suavização. Um pé pode ultrapassar a borda enquanto o outro permanece na área; ambos precisam continuar rastreados. Quando ambos ficam fora, a leitura é descartada. Em runtimes antigos sem essa API, o cursor do próprio jogo continua funcional, mas o indicador central de diagnóstico do SDK pode permanecer entre as pegadas. A câmera estima a posição do pé; ela não detecta o contato com o chão. Passar a imagem de deitada para em pé (90° ou 270°), ou o contrário, apaga a calibração, e o jogo pede para calibrar de novo. Espelhar ou girar 180° não exige nova calibração, mas mover a câmera ou o projetor exige. diff --git a/docs/README.md b/docs/README.md index 20ce003..e86c0f7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,32 +1,16 @@ # Documentação do Dobramundo -## Entrega atual +## Para jogar e acompanhar -- [Entrega 1.6](ENTREGA_1_6.md): recursos implementados, validação e limites. -- [Desempenho e webcam](validacao-v1.6/desempenho.md): medições, picos e memória. -- [Economia e rotas comunitárias](validacao-v1.6/economia/sintese.md): modelo sintético e resultados. +- [Guia do jogo](GUIA_DO_JOGO.md): história, controles, opções, melhorias e superfícies. +- [Novidades da versão 1.7](ENTREGA_1_7.md): mudanças e o que foi verificado. +- [Roteiro presencial](VALIDACAO_PRESENCIAL.md): câmera, projeção, conforto e console. +- [GDD v10](GDD_Dobramundo_v10.pdf): proposta original e referências. -## Jogar e operar +## Para desenvolver -- [Guia do jogo](GUIA_DO_JOGO.md): fluxo, controles, opções e superfícies. -- [GDD v10](GDD_Dobramundo_v10.pdf): proposta e requisitos de design. -- [Aceite presencial](VALIDACAO_PRESENCIAL.md): roteiro para equipamento e participantes. +- [Arquitetura](arquitetura.md), [contribuição](../CONTRIBUTING.md) e [ferramentas](../tools/README.md). +- [Histórico técnico](historico/README.md): análises, decisões e entregas anteriores. +- [Dados da versão 1.6](validacao-v1.6/desempenho.md): medições históricas, não garantia da versão atual. -## Desenvolver e validar - -- [Arquitetura](arquitetura.md): plataformas, contratos e ciclo de um quadro. -- [Análise consolidada](ANALISE_CONSOLIDADA.md): diagnóstico e encaminhamento dos achados. -- [P1/P2](SPRINT_P1_P2.md): escopo e critérios da implementação 1.6. -- [Ferramentas](../tools/README.md): capturas, desempenho, rotas, economia e build. -- [Contribuição](../CONTRIBUTING.md): dependências, testes e convenções. - -## Histórico preservado - -Os relatórios abaixo descrevem suas versões e condições de teste; não são uma -declaração do comportamento de toda versão futura. Seus caminhos foram mantidos -para preservar links de releases e revisões anteriores. - -- [Entrega 1.5](ENTREGA_1_5.md) e [métricas 1.5](validacao-1.5.0.json). -- [Sprint 3](ENTREGA_SPRINT3.md), [plano](SPRINT3.md) e [métricas](validacao-sprint3.json). -- [Sprint 2](ENTREGA_SPRINT2.md) e [métricas](validacao-sprint2.json). -- [Direção em aquarela](DIRECAO_AQUARELA.md) e [validação inicial](validacao-aquarela.json). +Os relatórios de teste usam perfis sintéticos. Não contêm dados identificáveis de crianças. diff --git a/docs/VALIDACAO_PRESENCIAL.md b/docs/VALIDACAO_PRESENCIAL.md index 6e455e4..999204d 100644 --- a/docs/VALIDACAO_PRESENCIAL.md +++ b/docs/VALIDACAO_PRESENCIAL.md @@ -22,13 +22,21 @@ nome ou diagnóstico da criança nesta ficha. | Webcam | Virar cabeça e sair/voltar ao enquadramento; retirar/reconectar cabo pelo operador | Sem movimento fantasma, interface responsiva, reabertura única, recalibração clara | Pendente físico | | Exploração e assistência | Erros, pausas e término curto | Ajuda permanece previsível; sem eliminação no modo exploração; conquistas preservadas | Pendente com participante | | Menus | Escolher aparência, trocar opções e retirar o cursor | Nenhuma confirmação involuntária em sequência; alvo e progresso de permanência compreensíveis | Pendente com participante | +| Cantos no chão | Aproximar um pé de cada borda com o outro mais para dentro; apontar aos quatro cantos e voltar ao centro | Cursor chega aos botões extremos sem exigir ambos os pés fora da projeção; indicador coincide com seleção; perda de leitura suspende permanência | Pendente console/webcam | +| Primeira visita às cidades | Abrir mapa com piloto novo e zero estrelas | Manaus e Petrolina podem ser escolhidas em qualquer ordem | Pendente com participante | | Transformação | Estado industrial colorido, etapa intermediária, solarpunk | Participante reconhece a relação entre coleta/obra e a mudança na vila | Pendente com participante | +| Ritmo da paisagem | Observar 15, 30 e 60 segundos ativos, com poucas coletas e com pausas | Mudança de poluição/natureza já perceptível durante o primeiro minuto; pausa e preparação não avançam a transformação | Pendente com participante | +| Continuidade entre voos | Encerrar aos 30–60 s e decolar de novo | A paisagem mantém o progresso, vidas recomeçam e a criança entende que iniciou outro voo | Pendente com participante | +| História inicial | Criar piloto, acompanhar/pular jornal, reabrir o jogo | Ordem compreensível, Pular acessível e história não se repete sem pedido | Pendente com participante | +| Alto contraste ampliado | Escalas 1,0, 1,3 e 1,6, avião nos quatro extremos | Indicadores de borda antecipam ameaças sem distrair ou esconder o caminho | Pendente com participante | +| Pequenas missões | Observar a barra discreta e a troca após o prazo | Troca percebida sem sensação de perda de recursos ou pressão de tempo | Pendente com participante | | Uso prolongado | 20–30 min no equipamento de destino, alternando biomas e alto contraste | Sem aumento contínuo de memória, congelamentos ou perda de salvamento | Pendente físico | | Console T-TEA | Instalar cartucho, abrir, trocar cena, concluir e reabrir sessão | Assets PNG decodificados, perfil do SDK preservado, resumo registrado uma vez | Pendente console | -Se uma etapa falhar, registrar o gesto/situação e a semente exibida no resultado, -sem dados pessoais. Repetir a mesma rota com as mesmas opções ajuda a separar -problemas do desenho do percurso de limitações do rastreamento ou da projeção. +Se uma etapa falhar, registrar o gesto/situação, sem dados pessoais. A semente +fica no histórico técnico; o resultado só a mostra em desafios. Voar de novo +mantém a semente e as opções, mas parte da cidade já transformada. Isso ajuda +a investigar o percurso, sem prometer a reprodução exata da partida anterior. ## Evidência técnica disponível diff --git a/docs/arquitetura.md b/docs/arquitetura.md index cb6b113..365583f 100644 --- a/docs/arquitetura.md +++ b/docs/arquitetura.md @@ -2,6 +2,16 @@ Este documento descreve o código do pacote `dobramundo/` como ele está no repositório. A visão de jogo está no GDD (`docs/GDD_Dobramundo_v10.pdf`), e o uso do projeto está no `README.md`. +## Estado atual — versão 1.7 + +O perfil e as migrações estão em `profile_model.py`; `persistence.py` cuida do armazenamento, rejeita revisões antigas e preserva arquivos de versões futuras. No desktop, `instance_lock.py` impede duas instâncias de usar o mesmo diretório de dados. O console conserva a persistência fornecida pelo SDK. + +`game/settlement.py` concentra a liquidação idempotente. `FlightScene` só inicia a sessão depois do preparo e `ResultScene` aplica os efeitos ao entrar ou fechar, sem gravação no construtor. `transformacao_cidades` preserva o maior progresso de cada bioma. Uma nova decolagem restaura vidas e velocidade inicial; não restaura posição ou entidades do voo anterior. O fluxo inicial consulta `abertura_vista` e apresenta o jornal pulável após a montagem do piloto. + +`scenes/flight_hud.py` contém a apresentação do voo. `RenderContext` explicita as entradas da composição de fundo. As superfícies derivadas compartilham um orçamento de 192 MiB em `engine/cache.py`; arte base, buffers ativos e RSS são medidos separadamente. O preparo inclui mipmaps do terreno e a aparência selecionada. A geometria invariável das linhas do chão é reutilizada, e cada linha de saída tem sua própria amostra de textura. + +`InputFrame` acompanha a mesma sequência consumida até o canvas e a apresentação desktop. Essa telemetria não mede o atraso físico do sensor ou do projetor. `tools/runtime_assets.py` fornece o inventário comum dos pacotes, com uma variante por imagem utilizada. Os protocolos e resultados atuais estão em [validação 1.7](validacao-v1.7/README.md); as seções de versões anteriores abaixo registram a evolução e devem ser lidas junto destas mudanças. + ## 1. Camadas O pacote se divide em camadas com dependências em um sentido só: cada camada usa as de baixo, e nenhuma usa as de cima. @@ -125,13 +135,13 @@ ResultScene | `foco_ok` | direção | Som `sfx_desvio_ok`, legenda "Boa!" | | `foco_quase` | direção | Som `sfx_desvio_quase`, legenda "Quase!" | -Ao fim do voo, `run.finished` vira verdadeiro (por game over ou por 3 segundos depois de 100%), e `FlightScene.update` abre o `ResultScene`. No resultado, `apply_run` leva recursos, pontos, estrelas e recorde ao perfil. +Ao fim do voo, `run.finished` vira verdadeiro (por game over, limite ou 3 segundos depois do primeiro cruzamento de 100%), e `FlightScene.update` abre o `ResultScene`. `game/settlement.py` leva recursos, transformação, pontos, estrelas e recorde ao perfil de modo idempotente. O construtor da tela não grava: seus efeitos ficam em `enter` e no hook de fechamento. O HUD fica em `scenes/flight_hud.py`; ele não decide recompensas. ## 5. Transformação: do horizonte ao avião O estado da cidade está em `World` (`game/world.py`), em dois valores: -- `restoration`: o valor real, de 0 a 100. Coletas e reparos o aumentam. Ele define a velocidade, o estágio da jogabilidade e as estrelas. +- `restoration`: o valor real da cidade, de 0 a 100. Coletas e reparos o aumentam; ele define o estágio e as estrelas. Ao liquidar o voo, o perfil guarda o máximo já atingido por cidade. A velocidade usa `FlightRun.local_restoration`, reiniciado em cada partida, para não penalizar a criança por ter transformado a cidade. - `visual`: segue `restoration` com uma constante de tempo de 2,8 segundos (`ease_visual`). Ele define as cores, o céu, o chão e a pista. O mundo é uma fila de trechos de 100 unidades (`segments`), que avançam em direção ao avião. Os trechos mais distantes ficam na neblina. Por isso a transformação começa lá: @@ -189,7 +199,7 @@ O desenho é pesado, então cada tipo de dado tem um cache com limite. | `Scene.scaled` | `scenes/base.py` | Miniaturas dos menus, guardadas no `SpriteCache.scaled` | | `brazil_map` | `scenes/map.py` | Mapa do Brasil, pintado uma vez | -`WorldView.warm_tasks` monta, em segundo plano e em fatias, os mips de cenário, obstáculos, resíduos e power-ups, além das silhuetas. Assim o voo não engasga na primeira vez que um sprite aparece. +`WorldView.warm_tasks` cria uma fila de tarefas nomeadas sem executá-las. O caminho aquarelado prepara apenas seus fundos, terreno, células de margem e detalhes regionais; o caminho procedural prepara seus próprios sprites. O voo mostra a prontidão e aguarda a fila antes de atualizar regras. O orçamento é conferido entre tarefas, não interrompe uma tarefa individual; tempos e estouros ficam expostos para medição, sem prometer um limite rígido de 1,5 ms. ## 8. Piloto em camadas e anchors.json @@ -217,7 +227,9 @@ A pintura legada do avião usa a camada `paint` e seu mapa UV, em que o verde (G ## 9. Perfis, persistência e migração -`Profile` em `persistence.py` mantém o formato JSON legado (`dobramundo_perfil.json`) como slot `principal`, preservando migrações anteriores. No desktop, um índice (`profiles.json`) registra até oito slots e os demais arquivos ficam em `profiles/`; cada slot contém progresso, personalização, opções e consentimento. Os cartões são anônimos (“Piloto 1” etc.) e a prévia não ativa nem regrava o slot. O console T-TEA continua usando o armazenamento por jogador do SDK, sem substituí-lo por perfis desktop. +`Profile`, `Options`, validação e migração ficam em `profile_model.py`, reexportados por `persistence.py` para manter os imports existentes. O arquivo JSON legado (`dobramundo_perfil.json`) continua como slot `principal`. No desktop, um índice (`profiles.json`) registra até oito slots e os demais arquivos ficam em `profiles/`; cada slot contém progresso, personalização, opções e consentimento. Os cartões são anônimos (“Piloto 1” etc.) e a prévia não ativa nem regrava o slot. O console T-TEA continua usando o armazenamento por jogador do SDK, sem substituí-lo por perfis desktop. + +O esquema 2 acrescenta `transformacao_cidades` e `apoio_escolhido`. Migrações são explícitas, repetíveis e nunca rebaixam versões futuras. A leitura desktop guarda a revisão esperada do arquivo; uma gravação de snapshot antigo falha em vez de apagar mudanças posteriores. `instance_lock.py` protege todo o diretório do desktop por lock do sistema operacional, inclusive índice e backups; encerramento inesperado libera o lock. Esse módulo não entra no cartucho. - **Gravação:** arquivo temporário, flush/fsync e substituição atômica. Antes de substituir um perfil ou índice válido, rotaciona até duas cópias `.bak`/`.bak.1` validadas. O limite é recuperação de arquivo: não é journal nem checkpoint de execução. - **Leitura e recuperação:** valida tipos e normaliza faixas; arquivo ausente ou inválido tenta cópias anteriores. Índices recuperáveis podem restaurar slots órfãos válidos sem ativá-los automaticamente. Arquivo corrompido é preservado com sufixo `.corrompido`; erro de leitura bloqueia gravação ao slot na sessão para evitar sobrescrever dados que não foram lidos. @@ -274,9 +286,9 @@ O exemplo abaixo usa um bioma chamado `cerrado`, com a sigla `CE_` para os sprit ## Pontos de atenção - Se o JSON do perfil estiver ilegível, `load_profile` guarda o arquivo como `dobramundo_perfil.corrompido.json` e recomeça com o perfil padrão (e a importação do protótipo). -- A história é opcional em Opções > "Ver a abertura". O treino de primeiro voo usa `tutorial_visto`, que só é marcado ao concluir/pular; voltar ao mapa mantém o treino pendente. +- A história aparece após o piloto enquanto `abertura_vista` for falso, com Pular, e pode ser revista em Opções. O treino de primeiro voo usa `tutorial_visto`, que só é marcado ao concluir/pular; voltar ao mapa mantém o treino pendente. - O mapa (`scenes/map.py`) tem posições fixas para duas fases; uma terceira fase pede reorganizar os botões. -- O `Dobramundo.spec` empacota as extensões `.png`, `.json`, `.ogg`, `.wav`, `.task`, `.ico`, `.ttf` e `.txt` de `assets/`; se uma fonte faltar, `theme.load_font` cai para `SysFont` e o visual do texto muda. +- `Dobramundo.spec` e `build_cartridge.py` compartilham `tools/runtime_assets.py`: inventário de execução que verifica hashes e escolhe a variante preparada ou o original, sem duplicá-los. Fontes/licenças são preservadas; se uma fonte faltar, `theme.load_font` cai para `SysFont` e o visual muda. - `tools/stylize.py` sobrescreve os PNG de `assets/`; o git guarda os originais. ## Mudanças da versão 1.1 @@ -312,7 +324,7 @@ O exemplo abaixo usa um bioma chamado `cerrado`, com a sigla `CE_` para os sprit `engine/painted_route.py` projeta terreno e margens usando a distância do mundo; `engine/watercolor.py` compõe o horizonte e escolhe o cenário procedural de reserva quando o pacote está incompleto. O piloto usa `engine/painted_pilot.py`, os aviões usam `engine/painted_planes.py`, e `engine/pilot.py` integra o personagem às vistas. As camadas low-poly e `engine/paper_pilot.py` permanecem para compatibilidade e fallback. -`engine/village_art.py`, `scenes/village.py` e `scenes/upgrades.py` compõem a vila em três estágios e mostram a instalação das obras. `scenes/tutorial.py` oferece treino opcional no primeiro voo e pode ser reaberto por Opções. A abertura narrativa é opcional. Implementação, capturas e validação anteriores: [DIRECAO_AQUARELA.md](DIRECAO_AQUARELA.md) e [ENTREGA_SPRINT2.md](ENTREGA_SPRINT2.md). +`engine/village_art.py`, `scenes/village.py` e `scenes/upgrades.py` compõem a vila em três estágios e mostram a instalação das obras. `scenes/tutorial.py` oferece treino opcional no primeiro voo e pode ser reaberto por Opções. A abertura narrativa é opcional. Implementação, capturas e validação anteriores: [DIRECAO_AQUARELA.md](historico/DIRECAO_AQUARELA.md) e [ENTREGA_SPRINT2.md](historico/ENTREGA_SPRINT2.md). ## Sprint 3: controle, legibilidade e vida @@ -320,7 +332,7 @@ O fluxo de primeira execução prepara aviso/calibração, oferece treino opcion `input/pose.py` usa nariz e orelhas compensadas para cabeça, rejeita leituras envelhecidas e permite alcances direcionais calibrados em sessão. O cursor sem leitura retorna `None`; eixos antigos não alimentam a velocidade do voo. `engine/accessible_view.py` aplica zoom uniforme do mundo; `screen_point` mantém setas e tutorial alinhados com a imagem ampliada, sem alterar a física. O fundo de alto contraste é atenuado em baixa resolução antes dos objetos interativos. -`engine/painted_route.py` dissolve as formas das margens entre estágios, mantendo posição/distância. `engine/regional_life.py` desenha fauna decorativa atenuada perto de desafios, sem criar entidades. `engine/pilot.py` cacheia expressões. `scenes/village.py` mantém pedidos por obra e encena usos cotidianos. `audio.py` reserva dois canais de efeitos e prioriza uma fanfarra por vez. Os detalhes da implementação e o aceite presencial restante estão em [SPRINT3.md](SPRINT3.md). +`engine/painted_route.py` dissolve as formas das margens entre estágios, mantendo posição/distância. `engine/regional_life.py` desenha fauna decorativa atenuada perto de desafios, sem criar entidades. `engine/pilot.py` cacheia expressões. `scenes/village.py` mantém pedidos por obra e encena usos cotidianos. `audio.py` reserva dois canais de efeitos e prioriza uma fanfarra por vez. Os detalhes da implementação e o aceite presencial restante estão em [SPRINT3.md](historico/SPRINT3.md). ## Histórico — versão 1.4 @@ -333,7 +345,7 @@ Os itens abaixo registram a implementação anterior à sprint aquarelada. Os fl - **Céu** (`engine/sky.py`): `draw_sun`, `paper_cloud` e `tint_panorama`, que tinge o panorama com `polluted_haze` do bioma. - **Fases** (`content/biomes.py`, `engine/world_view.py`): `industrial_mid` intercala peças regionais a cada duas do kit; `industrial_skyline` alimenta o horizonte (`skyline_base("back")`); `WorldView.margins` monta quarteirões com vãos; `Beam` tem cor, e `WorldView.splash` desenha o respingo. - **Piloto** (`content/pilot.py`, `tools/lowpoly/pilot.py`, `engine/pilot.py`, `scenes/pilot.py`): proporções de criança, novas opções, contorno `ink_outline`, a tela com balão de fala, o botão "Surpresa!" e o campo `piloto_montado` no perfil. -- **Fluxo inicial** (`core.first_scene`): piloto, abertura, aviso, calibração e vila. +- **Fluxo inicial** (`core.first_scene`): aviso, calibração quando necessária, piloto, abertura pulável e vila; etapas já concluídas são omitidas. - **Abertura em páginas** (`scenes/intro.py`): `PAGES` define quatro páginas, com viradas de `TURN_S`; a dobradura usa `FOLD_STEPS` numa mesa de papel, e o rastro usa as cores de `TRAIL`, as da logo. - **Voo, opções e padrões**: HUD mais fino em `scenes/flight.py`; `DEFAULT_PATTERN = "liso"` em `content/planes.py`; permanência padrão de 2,0 s, com faixa de 1,0 a 3,5 s em `persistence.py` e `scenes/options.py`. @@ -364,4 +376,4 @@ A câmera desktop mantém a fonte enquanto ela encerra, permite reabertura poste `plane_stats` entrega o mesmo conforto independentemente das peças. Os campos/níveis existentes são preservados para progressão e terceira estrela. A calibração e a zona morta não são modificadas por compras. -[Análise consolidada](ANALISE_CONSOLIDADA.md), [notas da entrega 1.6](ENTREGA_1_6.md) e [roteiro presencial](VALIDACAO_PRESENCIAL.md) detalham o escopo e os limites. A [entrega 1.5](ENTREGA_1_5.md) é histórica. +[Análise consolidada](historico/ANALISE_CONSOLIDADA.md), [notas da entrega 1.6](historico/ENTREGA_1_6.md) e [roteiro presencial](VALIDACAO_PRESENCIAL.md) detalham o escopo e os limites. A [entrega 1.5](historico/ENTREGA_1_5.md) é histórica. diff --git a/docs/ANALISE_BASE_1_5.md b/docs/historico/ANALISE_BASE_1_5.md similarity index 100% rename from docs/ANALISE_BASE_1_5.md rename to docs/historico/ANALISE_BASE_1_5.md diff --git a/docs/ANALISE_CONSOLIDADA.md b/docs/historico/ANALISE_CONSOLIDADA.md similarity index 95% rename from docs/ANALISE_CONSOLIDADA.md rename to docs/historico/ANALISE_CONSOLIDADA.md index 837733f..1a44772 100644 --- a/docs/ANALISE_CONSOLIDADA.md +++ b/docs/historico/ANALISE_CONSOLIDADA.md @@ -1,6 +1,6 @@ # Análise consolidada — estado de implementação -Esta lista atualiza as prioridades após as entregas P0/P1/P2 no código da versão 1.6.0. “Implementado” descreve código e validação técnica, não aceite de participantes. As evidências, condições e limites estão na [entrega 1.6](ENTREGA_1_6.md), no [relatório de desempenho](validacao-v1.6/desempenho.md) e na [simulação econômica](validacao-v1.6/economia/sintese.md). +Esta lista atualiza as prioridades após as entregas P0/P1/P2 no código da versão 1.6.0. “Implementado” descreve código e validação técnica, não aceite de participantes. As evidências, condições e limites estão na [entrega 1.6](ENTREGA_1_6.md), no [relatório de desempenho](../validacao-v1.6/desempenho.md) e na [simulação econômica](../validacao-v1.6/economia/sintese.md). A análise e o inventário completos que precederam a sprint estão preservados em [ANALISE_BASE_1_5.md](ANALISE_BASE_1_5.md); esta atualização resume estado e pendências sem apagar proveniência nem o backlog histórico. @@ -26,7 +26,7 @@ As prioridades foram liquidação de recompensa, fechamento normal, falhas de c - Implementados: exploração sem eliminação, limites curtos, assistência previsível, sementes para replay, recuperação de perfil e perfis desktop compartilhados com dados anônimos. - Implementados: seleção de missões conforme entidades no percurso, registro explícito do resíduo coletado para o balanço e fábrica de cenas injetável. - Validação pendente: duração confortável, compreensão da assistência, economia percebida e fluxo sem dependência de leitura. -- Aceite presencial: webcam, seis controles, projeção no chão a 2–3 m, movimento reduzido, alto contraste, sessões curtas e troca de piloto. Ver [roteiro presencial](VALIDACAO_PRESENCIAL.md). +- Aceite presencial: webcam, seis controles, projeção no chão a 2–3 m, movimento reduzido, alto contraste, sessões curtas e troca de piloto. Ver [roteiro presencial](../VALIDACAO_PRESENCIAL.md). ## P2 — arquitetura e processo diff --git a/docs/DIRECAO_AQUARELA.md b/docs/historico/DIRECAO_AQUARELA.md similarity index 90% rename from docs/DIRECAO_AQUARELA.md rename to docs/historico/DIRECAO_AQUARELA.md index 801868e..3e8a95e 100644 --- a/docs/DIRECAO_AQUARELA.md +++ b/docs/historico/DIRECAO_AQUARELA.md @@ -12,8 +12,8 @@ Executável Windows, galeria portátil e instruções de instalação: [entrega - Pausar congela o percurso. Movimento reduzido mantém o avanço necessário à navegação, reduz a densidade das margens e suprime paralaxe decorativa, balanço, tremores, clarões e respingos. - O motor continua Pygame/CPU. Não há GPU, geração de imagens nem chamadas de rede durante a partida. -![Manaus em movimento: quadro real](screenshots/sprint2-manaus.png) -![Petrolina: quadro real](screenshots/sprint2-petrolina.png) +![Manaus em movimento: quadro real](../screenshots/sprint2-manaus.png) +![Petrolina: quadro real](../screenshots/sprint2-petrolina.png) ## Piloto, avião e leitura do voo @@ -35,9 +35,9 @@ A vila começa alegre e colorida, com lixo, água suja e infraestrutura a diesel O resultado oferece acesso à próxima obra. A prévia mostra a estrutura no próprio terreno; após a compra, os materiais se deslocam até o local e a obra aparece. No modo de movimento reduzido, um comparativo estático mostra terreno vazio antes e obra instalada depois. A compra é idempotente: confirmar duas vezes não cobra duas vezes. -![Vila inicial](screenshots/sprint2-vila-inicial.png) -![Vila solarpunk](screenshots/sprint2-vila-final.png) -![Antes e depois sem animação](screenshots/sprint2-obra.png) +![Vila inicial](../screenshots/sprint2-vila-inicial.png) +![Vila solarpunk](../screenshots/sprint2-vila-final.png) +![Antes e depois sem animação](../screenshots/sprint2-obra.png) ## Integração e procedência @@ -48,7 +48,7 @@ O resultado oferece acesso à próxima obra. A prévia mostra a estrutura no pr - `scenes/tutorial.py`: prática isolada da progressão real; `upgrades.py` registra a transformação da obra. - `Assets` carrega os PNGs pedidos e compartilha a mesma imagem entre consultas, evitando decodificar a pasta inteira a cada sprite. -A arte foi gerada para o projeto. Prompts e saídas estão em [generation.json](../assets/watercolor/generation.json), [generation-sprint2.json](../assets/watercolor/generation-sprint2.json) e [generation-pilot-sprint2.json](../assets/watercolor/generation-pilot-sprint2.json). Os [créditos](../assets/watercolor/CREDITOS.txt) acompanham o pacote e a licença do projeto. A referência visual é interpretada como cenário de jogo em camadas; não se trata de um mundo 3D livre. +A arte foi gerada para o projeto. Prompts e saídas estão em [generation.json](../../assets/watercolor/generation.json), [generation-sprint2.json](../../assets/watercolor/generation-sprint2.json) e [generation-pilot-sprint2.json](../../assets/watercolor/generation-pilot-sprint2.json). Os [créditos](../../assets/watercolor/CREDITOS.txt) acompanham o pacote e a licença do projeto. A referência visual é interpretada como cenário de jogo em camadas; não se trata de um mundo 3D livre. ## Validação @@ -66,7 +66,7 @@ A arte foi gerada para o projeto. Prompts e saídas estão em [generation.json]( | Executável / Manaus | 7,46 ms | 9,77 ms | | Executável / Petrolina | 5,29 ms | 6,96 ms | -Medições incluem atualização/desenho/apresentação em SDL dummy neste computador, após os primeiros dez quadros de cada voo. Não incluem inferência contínua da webcam. O primeiro carregamento de imagens tem custo adicional; estes valores não garantem 60 fps em qualquer equipamento. Dados: [validacao-sprint2.json](validacao-sprint2.json). +Medições incluem atualização/desenho/apresentação em SDL dummy neste computador, após os primeiros dez quadros de cada voo. Não incluem inferência contínua da webcam. O primeiro carregamento de imagens tem custo adicional; estes valores não garantem 60 fps em qualquer equipamento. Dados: [validacao-sprint2.json](validacoes/validacao-sprint2.json). As capturas são do Pygame real, com perfil sintético e SDL dummy. A gravação local de cada cidade contém 12 segundos de jogo em 20 quadros/s. O tempo de renderização é medido separadamente. Self-test com `--exigir-camera` carrega o modelo e cria o detector de pose, mas não abre webcam física. diff --git a/docs/ENTREGA_1_5.md b/docs/historico/ENTREGA_1_5.md similarity index 93% rename from docs/ENTREGA_1_5.md rename to docs/historico/ENTREGA_1_5.md index 202448c..b660ffc 100644 --- a/docs/ENTREGA_1_5.md +++ b/docs/historico/ENTREGA_1_5.md @@ -15,13 +15,13 @@ Esta entrega incorpora a análise externa do repositório e implementa os seis P Baixe a [release 1.5.0](https://github.com/lapsin-maker/dobramundo/releases/tag/v1.5.0), extraia todo o ZIP Windows e abra `Jogar-Dobramundo.bat`. O lançador cria um perfil separado em `%LOCALAPPDATA%\Dobramundo-1.5.0`; não apaga os anteriores. Para o console, utilize o arquivo `.ttea`. -O código-fonte completo está nos arquivos automáticos da tag. A galeria contém capturas sintéticas do jogo e a entrega inclui hashes SHA-256. `BUILD-INFO.json` identifica o commit usado no executável. O [guia](GUIA_DO_JOGO.md) conserva as regras, os créditos e os detalhes antes concentrados no README. +O código-fonte completo está nos arquivos automáticos da tag. A galeria contém capturas sintéticas do jogo e a entrega inclui hashes SHA-256. `BUILD-INFO.json` identifica o commit usado no executável. O [guia](../GUIA_DO_JOGO.md) conserva as regras, os créditos e os detalhes antes concentrados no README. ## Validação **446 testes locais passaram**, assim como lint e CI em Python 3.8/3.12. O self-test passou no código-fonte e no executável 1.5.0, carregando o detector de pose, desenhando 14 telas e percorrendo 1.200 quadros por bioma. O SDK validou 505 arquivos portáveis; o cartucho teve CRC e correspondência das fontes conferidos. Os pacotes incluem hashes SHA-256. -Os resultados e hashes estão em [validacao-1.5.0.json](validacao-1.5.0.json). Componentes do benchmark estão aninhados: seus tempos não devem ser somados. Foram usados Windows 11, Python 3.12.10, canvas 1100×650, áudio desabilitado e 600 quadros medidos por cenário após 60 quadros de preparação. +Os resultados e hashes estão em [validacao-1.5.0.json](validacoes/validacao-1.5.0.json). Componentes do benchmark estão aninhados: seus tempos não devem ser somados. Foram usados Windows 11, Python 3.12.10, canvas 1100×650, áudio desabilitado e 600 quadros medidos por cenário após 60 quadros de preparação. | Cenário | P95 sem câmera, sem limite de quadros | P95 com webcam e cadência de 60 fps | Máximo com webcam e cadência | |---|---:|---:|---:| diff --git a/docs/ENTREGA_1_6.md b/docs/historico/ENTREGA_1_6.md similarity index 82% rename from docs/ENTREGA_1_6.md rename to docs/historico/ENTREGA_1_6.md index 82c0101..def107d 100644 --- a/docs/ENTREGA_1_6.md +++ b/docs/historico/ENTREGA_1_6.md @@ -9,7 +9,7 @@ - Preparação para sessões livres ou de 120, 180 e 240 segundos, modo exploração, assistência previsível e sementes de desafios publicadas. O resultado registra a semente efetiva e as opções necessárias ao replay. - Encerramento parcial e completo idempotentes no fluxo normal: credita ganhos já obtidos, mantém histórico e permite nova tentativa de salvar. Encerrar pelo limite, pela pausa ou por colisão final não concede conclusão de fase que não ocorreu. - Metas curtas são escolhidas conforme alvos presentes, após as lições iniciais, e dão lugar a outra oferta após 60 segundos ativos do mundo sem penalidade. Repetir o voo conserva a preferência de material, além da semente e dos modos. -- Ponto de troca custa 8 papel/8 plástico; Horta, 24 papel/16 vidro. As duas primeiras obras ficaram acessíveis mais cedo por decisão de produto; os demais preços foram preservados. A [simulação econômica](validacao-v1.6/economia/sintese.md) inclui colisões, reação, erros, pausas e interrupções, sem representar jogadores humanos. +- Ponto de troca custa 8 papel/8 plástico; Horta, 24 papel/16 vidro. As duas primeiras obras ficaram acessíveis mais cedo por decisão de produto; os demais preços foram preservados. A [simulação econômica](../validacao-v1.6/economia/sintese.md) inclui colisões, reação, erros, pausas e interrupções, sem representar jogadores humanos. - Oito temas regionais usam sementes publicadas. A auditoria de 32 combinações de bioma, modo, introdução e semente encontrou rotas iniciais e manteve a geração por 25 segundos simulados em cada caso. - Treze variantes PNG preparadas para a resolução de uso: seis fundos e sete atlas de aviões. O catálogo registra hashes, dimensões, vistas e pivôs; os 39 originais permanecem disponíveis. PNG e os renderizadores de reserva foram preservados. - Caches têm limites de quantidade e bytes; a troca de bioma libera fundos, margens e sprites de céu. As métricas discriminam donos de superfícies e RSS, que também inclui bibliotecas e memória do processo. @@ -21,19 +21,19 @@ - A revisão técnica `d47035c` passou na [matriz de testes e builds](https://github.com/lapsin-maker/dobramundo/actions/runs/40236396562). A revisão final da PR e o manifesto anexado à release identificam os commits de fonte e build dos downloads. - Suíte local principal: **515 testes passaram**, 197,48 s, Python 3.12, antes de acrescentar os três casos finais de diagnóstico/empacotamento. Os quatro testes finais de diagnóstico/empacotamento também passaram. Testes usam perfil sintético isolado. - CI Python 3.8/3.12: a execução acima passou com 516 testes e dois filtros gráficos opcionais pulados. NumPy foi então fixado separadamente por versão de Python para incluir esses filtros na verificação final da PR, totalizando 518 casos. Lint e formatação fazem parte da matriz. -- Cobertura da execução identificada: **78,95% de linhas e 66,26% de ramos** no pacote `dobramundo`; [contagens e escopo](validacao-v1.6/cobertura.json). Percentual não comprova qualidade ou comportamento em equipamento físico. +- Cobertura da execução identificada: **78,95% de linhas e 66,26% de ramos** no pacote `dobramundo`; [contagens e escopo](../validacao-v1.6/cobertura.json). Percentual não comprova qualidade ou comportamento em equipamento físico. - Builds Windows e Ubuntu 24.04: executáveis testados com `--self-test 1200 --exigir-camera`. O detector foi carregado sem abrir a webcam. No Linux, `libegl1 libgles2` são dependências do sistema, e a CI verifica `libmediapipe.so` com `ldd`. -- Self-test local do fonte: **14 telas e 1.200 quadros por bioma**, detector carregado, sem falhas. [Relatório sem caminhos locais](validacao-v1.6/selftest-fonte.json). A auditoria verificou os hashes dos **39 originais e 13 variantes preparadas**. +- Self-test local do fonte: **14 telas e 1.200 quadros por bioma**, detector carregado, sem falhas. [Relatório sem caminhos locais](../validacao-v1.6/selftest-fonte.json). A auditoria verificou os hashes dos **39 originais e 13 variantes preparadas**. - T-TEA: `tsdk check` validou **527 arquivos portáveis** com o SDK em Python 3.14.8. O cartucho e seus hashes acompanham a release; console físico continua pendente. - Capturas sintéticas: **15 telas**, sem botões fora da área ou sobrepostos. As quatro imagens de voo removem somente as partículas transitórias no quadro final, para mostrar o piloto; não constituem teste de usabilidade. -- Benchmark e webcam: [relatório com dados completos](validacao-v1.6/desempenho.md). Comparação sem avatar: incremento de RSS na abertura de **160,7 para 87,2 MiB**; maior amostra ao fim dos cenários de **532,1 para 258,9 MiB**. Com avatar e webcam houve pico de **67,459 ms** por quadro. Não se afirma ganho geral de CPU ou 60 fps constantes. -- Ensaio prolongado: **30 ciclos, 1.215,5 segundos simulados e nenhuma falha**; 72 mil quadros de voo com trocas de cenas, biomas e aparências. RSS final de 542,5 MiB, máximo amostrado de 559,6 MiB; últimos dez ciclos entre 537,3 e 555,0 MiB. [Dados completos](validacao-v1.6/soak.json). +- Benchmark e webcam: [relatório com dados completos](../validacao-v1.6/desempenho.md). Comparação sem avatar: incremento de RSS na abertura de **160,7 para 87,2 MiB**; maior amostra ao fim dos cenários de **532,1 para 258,9 MiB**. Com avatar e webcam houve pico de **67,459 ms** por quadro. Não se afirma ganho geral de CPU ou 60 fps constantes. +- Ensaio prolongado: **30 ciclos, 1.215,5 segundos simulados e nenhuma falha**; 72 mil quadros de voo com trocas de cenas, biomas e aparências. RSS final de 542,5 MiB, máximo amostrado de 559,6 MiB; últimos dez ciclos entre 537,3 e 555,0 MiB. [Dados completos](../validacao-v1.6/soak.json). A galeria, os dois pacotes desktop, o cartucho, `SHA256SUMS.txt` e `release-manifest.json` ficam na release. As duas revisões listadas no manifesto devem ter a mesma árvore de arquivos; o executável e seu diretório de bibliotecas são distribuídos juntos. Os relatórios históricos das versões anteriores permanecem preservados. ## Aceite presencial — pendente -Usar o [roteiro de validação presencial](VALIDACAO_PRESENCIAL.md) em equipamento e com participantes. Ainda precisam ser observados controle por webcam, seis segmentos, projeção no chão a 2–3 m, legibilidade sem leitura, compreensão de sessão curta, exploração/assistência, transformação da vila, reconexão e troca de perfil. Capturas e testes automatizados não equivalem a esse aceite. +Usar o [roteiro de validação presencial](../VALIDACAO_PRESENCIAL.md) em equipamento e com participantes. Ainda precisam ser observados controle por webcam, seis segmentos, projeção no chão a 2–3 m, legibilidade sem leitura, compreensão de sessão curta, exploração/assistência, transformação da vila, reconexão e troca de perfil. Capturas e testes automatizados não equivalem a esse aceite. ## Limites e recuperação @@ -46,4 +46,4 @@ Usar o [roteiro de validação presencial](VALIDACAO_PRESENCIAL.md) em equipamen ## Documentação relacionada -[Guia do jogo](GUIA_DO_JOGO.md) · [Arquitetura](arquitetura.md) · [Análise consolidada](ANALISE_CONSOLIDADA.md) · [Histórico](../CHANGELOG.md) +[Guia do jogo](../GUIA_DO_JOGO.md) · [Arquitetura](../arquitetura.md) · [Análise consolidada](ANALISE_CONSOLIDADA.md) · [Histórico](../../CHANGELOG.md) diff --git a/docs/ENTREGA_SPRINT2.md b/docs/historico/ENTREGA_SPRINT2.md similarity index 90% rename from docs/ENTREGA_SPRINT2.md rename to docs/historico/ENTREGA_SPRINT2.md index 09cde32..769b875 100644 --- a/docs/ENTREGA_SPRINT2.md +++ b/docs/historico/ENTREGA_SPRINT2.md @@ -33,8 +33,8 @@ Para conferir um download no PowerShell: Get-FileHash -Algorithm SHA256 .\Dobramundo-Aquarela-Sprint2-Windows.zip ``` -Passaram 365 testes locais, lint, self-tests de 1.200 quadros por cidade na fonte e no executável e o CI em Python 3.8/3.12. Os 28 PNGs aquarelados do bundle conferem com a fonte por SHA-256. Resultados e condições das medições: [direção e validação](DIRECAO_AQUARELA.md) e [dados estruturados](validacao-sprint2.json). +Passaram 365 testes locais, lint, self-tests de 1.200 quadros por cidade na fonte e no executável e o CI em Python 3.8/3.12. Os 28 PNGs aquarelados do bundle conferem com a fonte por SHA-256. Resultados e condições das medições: [direção e validação](DIRECAO_AQUARELA.md) e [dados estruturados](validacoes/validacao-sprint2.json). O self-test carrega o detector de pose, mas não abre uma câmera física. Projeção a 2–3 m, rastreamento contínuo e experiência com crianças ainda precisam de avaliação presencial. A release não inclui um novo cartucho `.ttea`; a auditoria automatizada não equivale à execução no console físico. -Licença e atribuição: [CC BY 4.0 do projeto](../LICENSE), com [créditos da arte aquarelada](../assets/watercolor/CREDITOS.txt) e licenças próprias das dependências descritas no [README](../README.md#licenças). +Licença e atribuição: [CC BY 4.0 do projeto](../../LICENSE), com [créditos da arte aquarelada](../../assets/watercolor/CREDITOS.txt) e licenças próprias das dependências descritas no [README](../../README.md#licenças). diff --git a/docs/ENTREGA_SPRINT3.md b/docs/historico/ENTREGA_SPRINT3.md similarity index 99% rename from docs/ENTREGA_SPRINT3.md rename to docs/historico/ENTREGA_SPRINT3.md index 17c5409..963df11 100644 --- a/docs/ENTREGA_SPRINT3.md +++ b/docs/historico/ENTREGA_SPRINT3.md @@ -8,7 +8,7 @@ Prévia de 25/10/2026. [Baixar os pacotes](https://github.com/lapsin-maker/dobra 2. O lançador usa `%LOCALAPPDATA%\Dobramundo-Aquarela-Sprint3`, separado do perfil anterior. Assim é possível testar o piloto neutro e a vila inicial sem apagar progresso. Abrir o executável diretamente usa o perfil padrão. 3. Extraia **Dobramundo-Sprint3-Galeria.zip** e abra **galeria.html** junto da pasta `galeria-media`. As gravações começam apenas quando acionadas. Há dois percursos de 96 segundos e dois trechos de voo de 10 segundos. 4. **Dobramundo-Sprint3.ttea** é o cartucho validado pelo TSDK. A execução no console físico ainda precisa ser ensaiada. -5. **SHA256SUMS.txt** acompanha os três pacotes. Tamanhos, hashes e condições estão também em [validacao-sprint3.json](validacao-sprint3.json). +5. **SHA256SUMS.txt** acompanha os três pacotes. Tamanhos, hashes e condições estão também em [validacao-sprint3.json](validacoes/validacao-sprint3.json). Os pacotes executáveis foram produzidos do código `87813ed8001195796c1a19a2d02239d26b7bfb45`. Os commits posteriores de entrega apenas acrescentam documentação e evidências. A versão interna continua 1.4.0; a identificação desta prévia é a tag `sprint3-controle-e-vida-2026-10-25` e o `BUILD-INFO.json` do pacote Windows. diff --git a/docs/historico/README.md b/docs/historico/README.md new file mode 100644 index 0000000..54e4dd7 --- /dev/null +++ b/docs/historico/README.md @@ -0,0 +1,11 @@ +# Histórico técnico + +Estas notas preservam as decisões e os resultados de versões anteriores. Não descrevem necessariamente o comportamento atual. A documentação de uso fica [um nível acima](../README.md). + +- [Análise original da 1.5](ANALISE_BASE_1_5.md) e [consolidação](ANALISE_CONSOLIDADA.md). +- [Direção de aquarela](DIRECAO_AQUARELA.md). +- [Entrega 1.5](ENTREGA_1_5.md), [entrega 1.6](ENTREGA_1_6.md) e [plano P1/P2](SPRINT_P1_P2.md). +- [Segunda sprint](ENTREGA_SPRINT2.md); [terceira sprint](ENTREGA_SPRINT3.md) e [plano](SPRINT3.md). +- [Relatórios JSON de validação](validacoes/README.md) das entregas 1.5.0, aquarela e sprints 2 e 3. + +As tags de cada versão preservam os caminhos antigos para consulta dos links históricos. diff --git a/docs/SPRINT3.md b/docs/historico/SPRINT3.md similarity index 96% rename from docs/SPRINT3.md rename to docs/historico/SPRINT3.md index e202a1c..dd4a88f 100644 --- a/docs/SPRINT3.md +++ b/docs/historico/SPRINT3.md @@ -34,7 +34,7 @@ Em **Opções**, ajuste a permanência da personalização separadamente da nave - `engine/regional_life.py` mantém os encontros decorativos fora das entidades de jogo. O retorno após um obstáculo usa distância percorrida, inclusive para permanecer parado na pausa. - `input/pose.py` mantém mapeamento independente de OpenCV/MediaPipe e aceita testes com pontos simulados. `input/camera.py` expõe resolução negociada, sem persistir quadros. - `pedidos_vila`, `permanencia_editor` e `escala_contraste` são normalizados no perfil. Perfis antigos recebem padrões sem perder progresso. -- [Manifesto da arte](../assets/watercolor/generation-sprint3.json) registra os 11 arquivos, prompts e origens. Os PNGs anteriores são conservados como referência/fallback; nenhuma dependência de IA é necessária em execução. +- [Manifesto da arte](../../assets/watercolor/generation-sprint3.json) registra os 11 arquivos, prompts e origens. Os PNGs anteriores são conservados como referência/fallback; nenhuma dependência de IA é necessária em execução. ## Validação e limites diff --git a/docs/SPRINT_P1_P2.md b/docs/historico/SPRINT_P1_P2.md similarity index 100% rename from docs/SPRINT_P1_P2.md rename to docs/historico/SPRINT_P1_P2.md diff --git a/docs/historico/validacoes/README.md b/docs/historico/validacoes/README.md new file mode 100644 index 0000000..e0988d1 --- /dev/null +++ b/docs/historico/validacoes/README.md @@ -0,0 +1,8 @@ +# Relatórios JSON de validação histórica + +Estes relatórios pertencem a entregas anteriores e preservam os resultados estruturados originais. + +- [Validação 1.5.0](validacao-1.5.0.json) +- [Validação aquarela](validacao-aquarela.json) +- [Validação da sprint 2](validacao-sprint2.json) +- [Validação da sprint 3](validacao-sprint3.json) diff --git a/docs/validacao-1.5.0.json b/docs/historico/validacoes/validacao-1.5.0.json similarity index 100% rename from docs/validacao-1.5.0.json rename to docs/historico/validacoes/validacao-1.5.0.json diff --git a/docs/validacao-aquarela.json b/docs/historico/validacoes/validacao-aquarela.json similarity index 100% rename from docs/validacao-aquarela.json rename to docs/historico/validacoes/validacao-aquarela.json diff --git a/docs/validacao-sprint2.json b/docs/historico/validacoes/validacao-sprint2.json similarity index 100% rename from docs/validacao-sprint2.json rename to docs/historico/validacoes/validacao-sprint2.json diff --git a/docs/validacao-sprint3.json b/docs/historico/validacoes/validacao-sprint3.json similarity index 100% rename from docs/validacao-sprint3.json rename to docs/historico/validacoes/validacao-sprint3.json diff --git a/docs/validacao-v1.7/README.md b/docs/validacao-v1.7/README.md new file mode 100644 index 0000000..231f60c --- /dev/null +++ b/docs/validacao-v1.7/README.md @@ -0,0 +1,30 @@ +# Validação 1.7 + +Os ensaios usam perfis sintéticos separados dos dados do jogador. Referência local: Windows 11, Core i7-10750H, 32 GB, Python 3.12.10, pygame 2.6.1, desenho por CPU em 1100 × 650. + +## Cobertura automatizada + +- 610 testes de regras, cenas, persistência, câmera simulada e contratos portáteis em Python 3.8 e 3.12. [Execução de integração aprovada](https://github.com/lapsin-maker/dobramundo/actions/runs/40251066416); o manifesto da release identifica também a execução usada para os downloads. +- Self-test: 14 telas, dois voos de 1.200 quadros interativos (20 segundos simulados cada) e carregamento real do detector, sem abrir a webcam. [Resultado da fonte](self-test.json). Os executáveis têm relatórios próprios no manifesto da release. +- Cartucho: check/build do TSDK local e renderização do estágio isolado, sem procurar imagens no checkout: nove menus e dois voos com 900 passos, incluindo preparação. [Resultado](cartucho.json). +- 35 capturas finais sem falha de geometria dos botões; quatro referências de menus com diferença de pixels igual a zero. A checagem de botões não substitui a revisão humana dos textos. [Capturas](capturas.json), [comparação](regressao-visual.json). +- 12 sequências de emendas/mudanças de estágio e oito pares de obras antes/depois. Distâncias e mistura do horizonte e das margens são registradas no [manifesto visual](jornadas.json). O retorno do último ao primeiro quadro de um GIF é uma repetição do arquivo, não uma emenda do jogo. +- 108 voos sintéticos em três cenários parametrizados, dois modos e dois biomas. [Economia e transformação](economia.md). +- Alcance dos quatro extremos e alinhamento do marcador com as classes reais do TSDK instalado, em Python 3.14.8/pygame-ce 2.5.8. [Relatório do cursor](cursor-sdk.json). Usa coordenadas sintéticas, sem comprovar alcance físico de uma pessoa. +- Primeiro minuto nos dois biomas, sem coletas nem colisões: 5%, 20%, 35%, 50% e 65% aos 0, 15, 30, 45 e 60 segundos ativos. Dez capturas usam atualizações reais da simulação, removendo entidades para isolar a recuperação pelo voo; não representam uma partida completa com obstáculos. [Dados e condições](primeiro-minuto.json). + +## Protocolo de desempenho + +Processos novos, execução serial, avatar sintético idêntico, semente 7. Preparação e primeiro quadro interativo são separados. Tempos inclusivos e exclusivos são identificados; não some percentis de componentes aninhados. + +O orçamento de superfícies derivadas é 192 MiB; ele não limita arte base, buffers ativos, bibliotecas nem RSS. Para esta configuração de referência, o teto experimental de acompanhamento é 768 MiB de RSS no ensaio de 30 ciclos. Isso não certifica um hardware mínimo nem garante desempenho em outro equipamento. + +As comparações usam três execuções com e sem câmera, os dois biomas e alto contraste. Entradas frias têm processos independentes. O ensaio prolongado alterna aparências, cenas, biomas e contraste. A câmera em modo concorrente mede carga; o modo `--camera-control` registra a sequência realmente consumida e informa se ela era utilizável. + +## Resultados e limites + +[Desempenho completo, com dados brutos](desempenho.md): 30 ciclos de 2.400 quadros, 72 mil quadros ativos, sem falhas; RSS máximo de 607,0 MiB e final de 571,7 MiB, com cache derivado dentro de 192 MiB. A memória total não diminuiu em relação à medição histórica da 1.6; o resultado aqui é o limite explícito dos caches e a estabilidade no ensaio. + +**O alvo de 60 FPS não passou em todas as condições.** Alto contraste e webcam ainda têm picos. Nas entradas frias da rodada final, o p95 do primeiro quadro foi 48,6 ms na Amazônia e 38,4 ms na Caatinga; a meta proposta de 50 ms passou nos dois biomas nessa carga. O preparo visível separa o trabalho pesado da fase interativa, mas não torna todas as operações indivisíveis menores que 1,5 ms. + +A webcam foi aberta nos ensaios concorrentes e no ensaio de sequência consumida. Neste último não houve pose calibrada utilizável: isso valida o encadeamento dos timestamps, não uma partida comandada por uma criança. Nenhum relatório automatizado comprova conforto infantil ou resposta física gesto→projetor. Quatro superfícies, seis segmentos, leitura a 2–3 m, compreensão das recompensas e console instalado precisam do [roteiro presencial](../VALIDACAO_PRESENCIAL.md). diff --git a/docs/validacao-v1.7/capturas.json b/docs/validacao-v1.7/capturas.json new file mode 100644 index 0000000..c50217d --- /dev/null +++ b/docs/validacao-v1.7/capturas.json @@ -0,0 +1,42 @@ +{ + "profile": "synthetic", + "flight_capture_note": "after 120 frames, clear transient run.beams and draw one clean final frame", + "screens": [ + "vila", + "mapa", + "hangar", + "piloto", + "preparar", + "opcoes", + "opcoes-controle", + "opcoes-superficie", + "opcoes-som", + "opcoes-acessibilidade", + "historia-0", + "historia-1", + "historia-2", + "historia-3", + "vila-industrial", + "vila-transicao", + "vila-solarpunk", + "meu-voo-0", + "meu-voo-1", + "perfis", + "perfis-erro", + "vila-recuperacao", + "amazonia", + "amazonia-contraste", + "amazonia-industrial", + "amazonia-transicao", + "amazonia-solarpunk", + "resultado-amazonia", + "caatinga", + "caatinga-contraste", + "caatinga-industrial", + "caatinga-transicao", + "caatinga-solarpunk", + "resultado-caatinga", + "resultado-tempo" + ], + "layout_failures": [] +} diff --git a/docs/validacao-v1.7/cartucho.json b/docs/validacao-v1.7/cartucho.json new file mode 100644 index 0000000..25bc086 --- /dev/null +++ b/docs/validacao-v1.7/cartucho.json @@ -0,0 +1,25 @@ +{ + "version": "1.7.0", + "status": "ok", + "screens": [ + "abertura", + "vila", + "mapa", + "hangar", + "piloto", + "melhorias", + "opcoes", + "preparar", + "sobre" + ], + "flights": { + "amazonia": { + "active_seconds": 14.750000000000313, + "distance": 2580.213645833333 + }, + "caatinga": { + "active_seconds": 14.683333333333643, + "distance": 2568.7483777777775 + } + } +} diff --git a/docs/validacao-v1.7/cursor-sdk.json b/docs/validacao-v1.7/cursor-sdk.json new file mode 100644 index 0000000..c3c0a63 --- /dev/null +++ b/docs/validacao-v1.7/cursor-sdk.json @@ -0,0 +1,42 @@ +{ + "status": "ok", + "python": "3.14.8", + "pygame": "pygame-ce 2.5.8", + "real_sdk_types": true, + "physical_camera": false, + "cases": [ + { + "edge": "right", + "position": [ + 1.0, + 0.5 + ], + "sdk_marker_matches": true + }, + { + "edge": "left", + "position": [ + 0.0, + 0.5 + ], + "sdk_marker_matches": true + }, + { + "edge": "top", + "position": [ + 0.5, + 0.0 + ], + "sdk_marker_matches": true + }, + { + "edge": "bottom", + "position": [ + 0.5, + 1.0 + ], + "sdk_marker_matches": true + } + ], + "invisible_floor_marker_hidden": true +} diff --git a/docs/validacao-v1.7/desempenho.md b/docs/validacao-v1.7/desempenho.md new file mode 100644 index 0000000..ab947ee --- /dev/null +++ b/docs/validacao-v1.7/desempenho.md @@ -0,0 +1,101 @@ +# Desempenho e estabilidade — 1.7 + +Windows 11, Core i7-10750H, 32 GB, Python 3.12.10, pygame 2.6.1, CPU, 1100 × 650. Três processos novos por condição, avatar personalizado idêntico, semente 7, 60 quadros interativos de aquecimento e 600 medidos por caso. Medições refeitas após os ajustes de alcance, recuperação ativa e margens industriais. Execução serial, sem builds ou suítes locais concorrentes. O computador manteve seus aplicativos habituais; portanto a medição inclui a competição por CPU no desktop. Não é uma máquina de laboratório isolada, e a variação entre processos faz parte do resultado. + +A preparação não entra no tempo do quadro interativo. Sem câmera, a execução é sem limite de frequência; com câmera, mira 60 FPS e exclui a espera do tempo medido. Não some percentis dos componentes inclusivos: cada JSON também contém custos exclusivos. + +| Execução | Cena | Mediana ms | p95 ms | p99 ms | Máximo ms | Até 16,67 ms | +|---|---|---:|---:|---:|---:|---:| +| runtime-1 | amazonia_normal | 11.15 | 15.089 | 17.465 | 19.599 | 98.33% | +| runtime-1 | amazonia_contrast | 15.189 | 20.917 | 25.132 | 29.055 | 69.67% | +| runtime-1 | caatinga_normal | 7.849 | 14.579 | 24.948 | 39.558 | 96.50% | +| runtime-1 | caatinga_contrast | 11.53 | 17.481 | 25.002 | 32.637 | 94.00% | +| runtime-2 | amazonia_normal | 14.465 | 21.691 | 26.103 | 36.097 | 72.83% | +| runtime-2 | amazonia_contrast | 15.63 | 21.795 | 27.26 | 32.726 | 64.83% | +| runtime-2 | caatinga_normal | 8.078 | 11.243 | 13.332 | 15.364 | 100.00% | +| runtime-2 | caatinga_contrast | 11.76 | 17.078 | 21.837 | 23.648 | 94.00% | +| runtime-3 | amazonia_normal | 10.715 | 14.484 | 17.585 | 19.843 | 98.33% | +| runtime-3 | amazonia_contrast | 15.077 | 21.42 | 27.148 | 29.448 | 74.17% | +| runtime-3 | caatinga_normal | 8.319 | 13.518 | 18.252 | 22.565 | 97.83% | +| runtime-3 | caatinga_contrast | 11.887 | 16.821 | 20.296 | 23.143 | 94.50% | +| camera-1 | amazonia_normal | 12.388 | 66.005 | 76.503 | 95.86 | 86.83% | +| camera-1 | amazonia_contrast | 16.648 | 23.478 | 27.972 | 34.959 | 50.67% | +| camera-1 | caatinga_normal | 8.489 | 12.108 | 14.718 | 16.975 | 99.67% | +| camera-1 | caatinga_contrast | 13.368 | 21.393 | 28.951 | 37.464 | 82.50% | +| camera-2 | amazonia_normal | 11.873 | 16.942 | 20.409 | 28.37 | 94.50% | +| camera-2 | amazonia_contrast | 17.257 | 24.374 | 28.807 | 32.675 | 41.17% | +| camera-2 | caatinga_normal | 8.472 | 12.334 | 14.844 | 19.343 | 99.83% | +| camera-2 | caatinga_contrast | 12.837 | 19.288 | 22.663 | 30.026 | 87.50% | +| camera-3 | amazonia_normal | 13.657 | 22.142 | 28.967 | 54.418 | 75.17% | +| camera-3 | amazonia_contrast | 20.289 | 35.619 | 43.943 | 67.191 | 21.67% | +| camera-3 | caatinga_normal | 9.255 | 13.561 | 16.48 | 20.091 | 99.17% | +| camera-3 | caatinga_contrast | 14.22 | 19.863 | 23.287 | 38.689 | 79.67% | + +**A meta de p95 até 16,67 ms não foi atingida em todas as condições.** Os resultados não sustentam promessa de 60 FPS constantes neste computador sob esta carga. A otimização de geometria do chão preserva pixels; a suavização introduzida nesta versão tem custo próprio e não deve ser confundida com uma redução universal do custo frente à versão 1.6. + +## Entradas frias + +| Bioma | Mediana do primeiro quadro ms | p95 ms | Máximo ms | Mediana do preparo ms | Maior tarefa indivisível ms | +|---|---:|---:|---:|---:|---:| +| amazonia | 36.825 | 48.601 | 48.601 | 548.177 | 87.643 | +| caatinga | 31.868 | 38.382 | 38.382 | 505.510 | 83.134 | + +O orçamento cooperativo é conferido entre tarefas. A decodificação de uma imagem é indivisível e pode ultrapassá-lo; por isso sua duração é publicada. O voo não consome vidas nem a contagem de primeiras sessões enquanto prepara o cenário. + +## Uso prolongado + +30 ciclos × 2.400 quadros, 1200.0 s de voo simulado ativo; 832.694 s de parede. Preparação e menus são separados. Trocas de bioma, aparência e contraste, sem webcam. Sem falhas de ciclo ou crescimento descontrolado de entidades. + +RSS final 571.7 MiB; máximo 607.0 MiB; últimos dez ciclos entre 558.3 e 607.0 MiB. Cache derivado máximo 191.9 MiB, sob orçamento de 192 MiB. Teto experimental de RSS: 768 MiB. Um ensaio sem crescimento contínuo não prova ausência de todo vazamento. + +## Sequência realmente consumida + +Ensaio adicional em janela nativa com controle de cabeça, 300 quadros por caso. Estado da fonte: `ok`. Resolução do relógio monotônico deste host: 15.625 ms. Cada JSON informa sequências distintas, fração utilizável e tempos da mesma amostra até canvas/apresentação. Ausência de pose/calibração utilizável não equivale a controle corporal aprovado. Não foram salvos vídeo ou landmarks. + +A medição começa no retorno da captura, não na exposição do sensor, e termina na chamada de apresentação, não na luz emitida pelo projetor. Extremos confortáveis, perda/retorno, seis segmentos e projeção exigem o roteiro presencial. + +| Cena | Sequências distintas | Quadros utilizáveis | Captura→apresentação p95 ms | +|---|---:|---:|---:| +| amazonia_normal | 156 | 0/300 | 79.0 | +| amazonia_contrast | 177 | 0/300 | 79.0 | +| caatinga_normal | 153 | 0/300 | 78.0 | +| caatinga_contrast | 160 | 0/300 | 93.0 | + +**Não houve controle corporal utilizável neste ensaio sem calibração de participante.** Os dados confirmam a leitura da fonte e o encadeamento de timestamps, não o alcance de gestos ou uma partida controlada com a cabeça. + +## Chão isolado + +Comparações locais de 80 quadros por bioma/renderizador, sem webcam. O primeiro comparador inclui a mudança de amostragem visual; o segundo compara a implementação anterior à otimização de geometria. Este microbenchmark isola o chão: não mede as novas estruturas das margens nem o voo completo. + +Comparação com `d442c6c`: [dados do terreno](desempenho/terreno-versao-1.6.json). + +| Bioma | Mediana anterior ms | Mediana atual ms | p95 anterior ms | p95 atual ms | +|---|---:|---:|---:|---:| +| amazonia | 4.085 | 5.659 | 6.067 | 8.754 | +| caatinga | 1.407 | 2.296 | 1.974 | 3.362 | + +Comparação com `12dda71`: [dados do terreno](desempenho/terreno-antes-da-otimizacao.json). + +| Bioma | Mediana anterior ms | Mediana atual ms | p95 anterior ms | p95 atual ms | +|---|---:|---:|---:|---:| +| amazonia | 7.915 | 7.223 | 12.153 | 11.175 | +| caatinga | 2.587 | 2.367 | 4.161 | 3.56 | + +## Janela nativa com câmera concorrente + +Três processos adicionais, janela visível, câmera inferindo em paralelo e entrada sintética, mesmos 600 quadros por caso e ritmo alvo de 60 FPS. Incluem apresentação da janela. Executados em série, sem testes ou builds locais concorrentes; aplicativos habituais continuam ativos. Não substituem o ensaio de gesto real e não apagam os picos observados anteriormente. + +| Execução | Cena | Mediana ms | p95 ms | p99 ms | Máximo ms | Até 16,67 ms | +|---|---|---:|---:|---:|---:|---:| +| native-camera-1 | amazonia_normal | 14.124 | 19.117 | 22.017 | 27.875 | 83.00% | +| native-camera-1 | amazonia_contrast | 18.884 | 25.081 | 27.624 | 28.824 | 17.17% | +| native-camera-1 | caatinga_normal | 11.643 | 18.675 | 20.647 | 24.894 | 88.83% | +| native-camera-1 | caatinga_contrast | 16.643 | 23.418 | 26.614 | 29.424 | 50.50% | +| native-camera-2 | amazonia_normal | 16.97 | 22.677 | 25.766 | 47.737 | 45.17% | +| native-camera-2 | amazonia_contrast | 19.855 | 26.386 | 30.126 | 32.295 | 10.33% | +| native-camera-2 | caatinga_normal | 11.136 | 15.872 | 18.709 | 20.261 | 97.00% | +| native-camera-2 | caatinga_contrast | 16.856 | 24.531 | 27.326 | 29.288 | 47.83% | +| native-camera-3 | amazonia_normal | 14.167 | 19.399 | 22.415 | 25.55 | 80.33% | +| native-camera-3 | amazonia_contrast | 19.268 | 28.387 | 34.409 | 47.571 | 17.50% | +| native-camera-3 | caatinga_normal | 10.342 | 39.92 | 52.708 | 64.441 | 83.67% | +| native-camera-3 | caatinga_contrast | 12.928 | 18.256 | 21.271 | 27.267 | 90.83% | diff --git a/docs/validacao-v1.7/desempenho/camera-1.json b/docs/validacao-v1.7/desempenho/camera-1.json new file mode 100644 index 0000000..700c031 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/camera-1.json @@ -0,0 +1,1614 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 758.19, + "rss_before_bytes": 41066496, + "rss_after_bytes": 100257792, + "rss_delta_bytes": 59191296, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 12.388, + "p95_ms": 66.005, + "p99_ms": 76.503, + "max_ms": 95.86 + }, + "scene_setup_ms": 11.625, + "warmup": { + "median_ms": 10.457, + "p95_ms": 15.93, + "p99_ms": 47.348, + "max_ms": 47.348 + }, + "first_preparation_frame_ms": 98.711, + "first_interactive_frame_ms": 47.348, + "preparation_frames": 36, + "preparation_frame_cost": { + "median_ms": 7.863, + "p95_ms": 89.923, + "p99_ms": 98.711, + "max_ms": 98.711 + }, + "time_until_first_interactive_ms": 999.553, + "preparation_tasks": [ + [ + "Preparando paisagem", + 21.691500005545095 + ], + [ + "Preparando paisagem", + 21.73219999531284 + ], + [ + "Preparando paisagem", + 24.943800002802163 + ], + [ + "Preparando textura do percurso", + 87.64190001238603 + ], + [ + "Preparando margens", + 88.85230000305455 + ], + [ + "Preparando margens", + 0.6270000012591481 + ], + [ + "Preparando margens", + 0.523299997439608 + ], + [ + "Preparando margens", + 0.5410000012489036 + ], + [ + "Preparando margens", + 0.5329999985406175 + ], + [ + "Preparando margens", + 0.4859000036958605 + ], + [ + "Preparando margens", + 0.5296000017551705 + ], + [ + "Preparando margens", + 0.7197000086307526 + ], + [ + "Preparando margens", + 0.6270000012591481 + ], + [ + "Preparando margens", + 0.5563000013353303 + ], + [ + "Preparando margens", + 0.8670999959576875 + ], + [ + "Preparando margens", + 1.341600000159815 + ], + [ + "Preparando detalhes industriais", + 8.138899996993132 + ], + [ + "Preparando detalhes industriais", + 9.582999991835095 + ], + [ + "Preparando detalhes industriais", + 7.600299999467097 + ], + [ + "Preparando detalhes industriais", + 11.106499994639307 + ], + [ + "Preparando detalhes industriais", + 6.521799994516186 + ], + [ + "Suavizando textura do chão", + 1.7147000035038218 + ], + [ + "Suavizando textura do chão", + 0.9112999978242442 + ], + [ + "Suavizando textura do chão", + 0.4783999902429059 + ], + [ + "Suavizando textura do chão", + 0.23489999875891954 + ], + [ + "Suavizando textura do chão", + 0.15889998758211732 + ], + [ + "Suavizando textura do chão", + 0.04919999628327787 + ], + [ + "Suavizando textura do chão", + 1.9598999933805317 + ], + [ + "Suavizando textura do chão", + 0.8594999962951988 + ], + [ + "Suavizando textura do chão", + 0.4393999988678843 + ], + [ + "Suavizando textura do chão", + 0.2066000015474856 + ], + [ + "Suavizando textura do chão", + 0.08739999611862004 + ], + [ + "Suavizando textura do chão", + 0.08769999840296805 + ], + [ + "Suavizando textura do chão", + 1.7494999920018017 + ], + [ + "Suavizando textura do chão", + 0.8079999970505014 + ], + [ + "Suavizando textura do chão", + 0.41989999590441585 + ], + [ + "Suavizando textura do chão", + 0.24290000146720558 + ], + [ + "Suavizando textura do chão", + 0.10679999832063913 + ], + [ + "Suavizando textura do chão", + 0.10609999299049377 + ], + [ + "Alocando faixas do chão", + 0.3547999949660152 + ], + [ + "Alocando faixas do chão", + 0.3563999925972894 + ], + [ + "Alocando faixas do chão", + 0.42949999624397606 + ], + [ + "Alocando faixas do chão", + 0.443900004029274 + ], + [ + "Alocando faixas do chão", + 0.5099000118207186 + ], + [ + "Alocando faixas do chão", + 0.4600999964168295 + ], + [ + "Alocando faixas do chão", + 0.5174999969312921 + ], + [ + "Alocando faixas do chão", + 0.5453000048873946 + ], + [ + "Alocando faixas do chão", + 0.5818999925395474 + ], + [ + "Alocando faixas do chão", + 0.1784999913070351 + ], + [ + "Alocando faixas do chão", + 0.17810000281315297 + ], + [ + "Alocando faixas do chão", + 0.2443999983370304 + ], + [ + "Alocando faixas do chão", + 0.4270000063115731 + ], + [ + "Alocando faixas do chão", + 0.4520999937085435 + ], + [ + "Alocando faixas do chão", + 0.49530000251252204 + ], + [ + "Alocando faixas do chão", + 0.6232000014279038 + ], + [ + "Alocando faixas do chão", + 1.0855000000447035 + ], + [ + "Alocando faixas do chão", + 0.5322999932104722 + ], + [ + "Alocando faixas do chão", + 0.17869999282993376 + ], + [ + "Alocando faixas do chão", + 0.1562000106787309 + ], + [ + "Alocando faixas do chão", + 0.19979999342467636 + ], + [ + "Alocando faixas do chão", + 0.3023999888682738 + ], + [ + "Alocando faixas do chão", + 0.35349999961908907 + ], + [ + "Alocando faixas do chão", + 0.4486999969230965 + ], + [ + "Alocando faixas do chão", + 0.7030999986454844 + ], + [ + "Alocando faixas do chão", + 0.7004000071901828 + ], + [ + "Alocando faixas do chão", + 0.34810000215657055 + ], + [ + "Preparando fauna", + 71.78850000491366 + ], + [ + "Carregando elementos regionais", + 9.117200010223314 + ], + [ + "Carregando elementos regionais", + 9.590600006049499 + ], + [ + "Carregando elementos regionais", + 8.30129999667406 + ], + [ + "Preparando obstáculos regionais", + 9.422699993592687 + ], + [ + "Preparando avião", + 19.839299988234416 + ], + [ + "Aplicando pintura", + 0.007399998139590025 + ], + [ + "Preparando piloto", + 31.32549999281764 + ], + [ + "Montando visual do voo", + 0.7291999936569482 + ], + [ + "Preparando primeira vista", + 32.211700003244914 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.8683, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.005, + "p99_ms": 0.006, + "max_ms": 0.007 + }, + "rules_update": { + "median_ms": 0.102, + "p95_ms": 0.539, + "p99_ms": 1.375, + "max_ms": 1.669 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.079, + "p99_ms": 2.594, + "max_ms": 9.323 + }, + "ground": { + "median_ms": 6.711, + "p95_ms": 34.66, + "p99_ms": 43.2, + "max_ms": 48.428 + }, + "route_and_banks": { + "median_ms": 9.276, + "p95_ms": 54.178, + "p99_ms": 63.496, + "max_ms": 83.155 + }, + "background": { + "median_ms": 10.046, + "p95_ms": 57.103, + "p99_ms": 65.366, + "max_ms": 84.753 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.549, + "p99_ms": 0.784, + "max_ms": 1.45 + }, + "entities_and_effects": { + "median_ms": 11.024, + "p95_ms": 60.557, + "p99_ms": 70.919, + "max_ms": 90.275 + }, + "world": { + "median_ms": 11.034, + "p95_ms": 60.583, + "p99_ms": 70.954, + "max_ms": 90.314 + }, + "hud": { + "median_ms": 0.383, + "p95_ms": 1.828, + "p99_ms": 2.606, + "max_ms": 4.528 + }, + "scene": { + "median_ms": 11.819, + "p95_ms": 63.856, + "p99_ms": 74.628, + "max_ms": 94.041 + }, + "canvas": { + "median_ms": 12.048, + "p95_ms": 64.642, + "p99_ms": 75.231, + "max_ms": 94.768 + }, + "present": { + "median_ms": 0.31, + "p95_ms": 1.045, + "p99_ms": 1.324, + "max_ms": 2.331 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.005, + "p99_ms": 0.006, + "max_ms": 0.007 + }, + "rules_update": { + "median_ms": 0.102, + "p95_ms": 0.539, + "p99_ms": 1.375, + "max_ms": 1.669 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.079, + "p99_ms": 2.594, + "max_ms": 9.323 + }, + "ground": { + "median_ms": 6.711, + "p95_ms": 34.66, + "p99_ms": 43.2, + "max_ms": 48.428 + }, + "route_and_banks": { + "median_ms": 2.589, + "p95_ms": 18.438, + "p99_ms": 25.993, + "max_ms": 34.728 + }, + "background": { + "median_ms": 0.457, + "p95_ms": 1.412, + "p99_ms": 1.805, + "max_ms": 2.772 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.549, + "p99_ms": 0.784, + "max_ms": 1.45 + }, + "entities_and_effects": { + "median_ms": 0.837, + "p95_ms": 4.059, + "p99_ms": 5.788, + "max_ms": 9.986 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.028, + "p99_ms": 0.038, + "max_ms": 0.096 + }, + "hud": { + "median_ms": 0.383, + "p95_ms": 1.828, + "p99_ms": 2.606, + "max_ms": 4.528 + }, + "scene": { + "median_ms": 0.349, + "p95_ms": 1.463, + "p99_ms": 2.34, + "max_ms": 6.539 + }, + "canvas": { + "median_ms": 0.041, + "p95_ms": 0.153, + "p99_ms": 0.226, + "max_ms": 0.351 + }, + "present": { + "median_ms": 0.31, + "p95_ms": 1.045, + "p99_ms": 1.324, + "max_ms": 2.331 + } + }, + "rss_bytes": 476942336, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75568, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 46.0, + "p95_ms": 156.0, + "p99_ms": 203.0, + "max_ms": 235.0 + }, + "camera": { + "frames_read": 380, + "inferences": 380, + "published": 380, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6983.99999999674, + "capture_fps": 25.150572506458534, + "inference_fps": 25.177234479570934, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 15.999999988707714, + "result_age_ms": 30.999999988125637, + "last_result_age_ms": 15.999999988707714, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 16.648, + "p95_ms": 23.478, + "p99_ms": 27.972, + "max_ms": 34.959 + }, + "scene_setup_ms": 33.013, + "warmup": { + "median_ms": 14.078, + "p95_ms": 19.344, + "p99_ms": 20.835, + "max_ms": 20.835 + }, + "first_preparation_frame_ms": 32.109, + "first_interactive_frame_ms": 15.17, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 32.109, + "p95_ms": 32.109, + "p99_ms": 32.109, + "max_ms": 32.109 + }, + "time_until_first_interactive_ms": 47.321, + "preparation_tasks": [ + [ + "Preparando avião", + 0.003500012098811567 + ], + [ + "Aplicando pintura", + 0.0025000044843181968 + ], + [ + "Preparando piloto", + 0.022200008970685303 + ], + [ + "Montando visual do voo", + 0.005599998985417187 + ], + [ + "Preparando primeira vista", + 31.242799988831393 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.5067, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.005 + }, + "rules_update": { + "median_ms": 0.097, + "p95_ms": 0.172, + "p99_ms": 1.231, + "max_ms": 1.733 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.009, + "p99_ms": 2.646, + "max_ms": 3.447 + }, + "ground": { + "median_ms": 6.798, + "p95_ms": 9.797, + "p99_ms": 11.793, + "max_ms": 13.79 + }, + "route_and_banks": { + "median_ms": 9.467, + "p95_ms": 13.708, + "p99_ms": 16.564, + "max_ms": 19.3 + }, + "desaturate": { + "median_ms": 2.867, + "p95_ms": 5.014, + "p99_ms": 5.631, + "max_ms": 8.262 + }, + "background": { + "median_ms": 13.074, + "p95_ms": 19.007, + "p99_ms": 22.518, + "max_ms": 27.358 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.23, + "p99_ms": 0.285, + "max_ms": 0.618 + }, + "entities_and_effects": { + "median_ms": 14.577, + "p95_ms": 20.821, + "p99_ms": 25.11, + "max_ms": 31.702 + }, + "world": { + "median_ms": 15.409, + "p95_ms": 21.844, + "p99_ms": 26.301, + "max_ms": 33.017 + }, + "hud": { + "median_ms": 0.384, + "p95_ms": 0.645, + "p99_ms": 0.761, + "max_ms": 1.059 + }, + "scene": { + "median_ms": 16.155, + "p95_ms": 22.949, + "p99_ms": 27.333, + "max_ms": 34.217 + }, + "canvas": { + "median_ms": 16.317, + "p95_ms": 23.166, + "p99_ms": 27.534, + "max_ms": 34.44 + }, + "present": { + "median_ms": 0.3, + "p95_ms": 0.494, + "p99_ms": 0.644, + "max_ms": 0.891 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.005 + }, + "rules_update": { + "median_ms": 0.097, + "p95_ms": 0.172, + "p99_ms": 1.231, + "max_ms": 1.733 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.009, + "p99_ms": 2.646, + "max_ms": 3.447 + }, + "ground": { + "median_ms": 6.798, + "p95_ms": 9.797, + "p99_ms": 11.793, + "max_ms": 13.79 + }, + "route_and_banks": { + "median_ms": 2.572, + "p95_ms": 4.813, + "p99_ms": 5.761, + "max_ms": 7.096 + }, + "desaturate": { + "median_ms": 2.867, + "p95_ms": 5.014, + "p99_ms": 5.631, + "max_ms": 8.262 + }, + "background": { + "median_ms": 0.439, + "p95_ms": 0.709, + "p99_ms": 0.876, + "max_ms": 1.66 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.23, + "p99_ms": 0.285, + "max_ms": 0.618 + }, + "entities_and_effects": { + "median_ms": 1.286, + "p95_ms": 2.642, + "p99_ms": 4.126, + "max_ms": 5.192 + }, + "world": { + "median_ms": 0.806, + "p95_ms": 1.231, + "p99_ms": 1.371, + "max_ms": 1.481 + }, + "hud": { + "median_ms": 0.384, + "p95_ms": 0.645, + "p99_ms": 0.761, + "max_ms": 1.059 + }, + "scene": { + "median_ms": 0.325, + "p95_ms": 1.18, + "p99_ms": 1.723, + "max_ms": 2.392 + }, + "canvas": { + "median_ms": 0.036, + "p95_ms": 0.056, + "p99_ms": 0.075, + "max_ms": 0.098 + }, + "present": { + "median_ms": 0.3, + "p95_ms": 0.494, + "p99_ms": 0.644, + "max_ms": 0.891 + } + }, + "rss_bytes": 482852864, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154992, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 744, + "inferences": 743, + "published": 743, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6983.99999999674, + "capture_fps": 27.31879268561684, + "inference_fps": 27.298111543837827, + "capture_interval_ms": 31.999999991967343, + "inference_interval_ms": 31.999999991967343, + "inference_ms": 16.00000000325963, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 8.489, + "p95_ms": 12.108, + "p99_ms": 14.718, + "max_ms": 16.975 + }, + "scene_setup_ms": 8.671, + "warmup": { + "median_ms": 6.764, + "p95_ms": 12.081, + "p99_ms": 13.054, + "max_ms": 13.054 + }, + "first_preparation_frame_ms": 37.6, + "first_interactive_frame_ms": 6.16, + "preparation_frames": 19, + "preparation_frame_cost": { + "median_ms": 8.943, + "p95_ms": 73.581, + "p99_ms": 73.581, + "max_ms": 73.581 + }, + "time_until_first_interactive_ms": 440.116, + "preparation_tasks": [ + [ + "Preparando paisagem", + 23.497599991969764 + ], + [ + "Preparando paisagem", + 30.172600003425032 + ], + [ + "Preparando paisagem", + 30.408899998292327 + ], + [ + "Preparando textura do percurso", + 0.0018999999156221747 + ], + [ + "Preparando margens", + 72.36190000548959 + ], + [ + "Preparando margens", + 0.2964000013889745 + ], + [ + "Preparando margens", + 0.24790001043584198 + ], + [ + "Preparando margens", + 0.30679999326821417 + ], + [ + "Preparando margens", + 0.20799999765586108 + ], + [ + "Preparando margens", + 0.2865999995265156 + ], + [ + "Preparando margens", + 0.18350000027567148 + ], + [ + "Preparando margens", + 0.25129999266937375 + ], + [ + "Preparando margens", + 0.3951999970013276 + ], + [ + "Preparando margens", + 0.41059999784920365 + ], + [ + "Preparando margens", + 0.3882000019075349 + ], + [ + "Preparando margens", + 1.4832000015303493 + ], + [ + "Preparando detalhes industriais", + 7.457999992766418 + ], + [ + "Preparando detalhes industriais", + 7.935700006783009 + ], + [ + "Preparando detalhes industriais", + 8.028500000364147 + ], + [ + "Preparando detalhes industriais", + 11.02470001205802 + ], + [ + "Preparando detalhes industriais", + 8.971900009782985 + ], + [ + "Suavizando textura do chão", + 2.4523999891243875 + ], + [ + "Suavizando textura do chão", + 0.7514999888371676 + ], + [ + "Suavizando textura do chão", + 0.5684999923687428 + ], + [ + "Suavizando textura do chão", + 0.20249999943189323 + ], + [ + "Suavizando textura do chão", + 0.1036000030580908 + ], + [ + "Suavizando textura do chão", + 0.04570001328829676 + ], + [ + "Alocando faixas do chão", + 0.2347000117879361 + ], + [ + "Alocando faixas do chão", + 0.38640000275336206 + ], + [ + "Alocando faixas do chão", + 0.24080000002868474 + ], + [ + "Alocando faixas do chão", + 0.21379999816417694 + ], + [ + "Alocando faixas do chão", + 0.21690000721719116 + ], + [ + "Alocando faixas do chão", + 0.23759999021422118 + ], + [ + "Alocando faixas do chão", + 0.4381000035209581 + ], + [ + "Alocando faixas do chão", + 0.41120000241789967 + ], + [ + "Alocando faixas do chão", + 0.27210000553168356 + ], + [ + "Preparando fauna", + 0.0020000006770715117 + ], + [ + "Carregando elementos regionais", + 9.500799991656095 + ], + [ + "Carregando elementos regionais", + 7.542699997429736 + ], + [ + "Carregando elementos regionais", + 7.746100003714673 + ], + [ + "Preparando obstáculos regionais", + 9.78239999676589 + ], + [ + "Preparando avião", + 0.0028999929782003164 + ], + [ + "Aplicando pintura", + 0.0024000037228688598 + ], + [ + "Preparando piloto", + 0.02680000034160912 + ], + [ + "Montando visual do voo", + 0.006700007361359894 + ], + [ + "Preparando primeira vista", + 20.89440000418108 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9967, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.004, + "max_ms": 0.021 + }, + "rules_update": { + "median_ms": 0.099, + "p95_ms": 0.177, + "p99_ms": 1.107, + "max_ms": 1.982 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.89, + "p99_ms": 2.389, + "max_ms": 3.288 + }, + "ground": { + "median_ms": 2.681, + "p95_ms": 3.982, + "p99_ms": 4.821, + "max_ms": 5.487 + }, + "route_and_banks": { + "median_ms": 5.483, + "p95_ms": 8.679, + "p99_ms": 10.774, + "max_ms": 12.848 + }, + "background": { + "median_ms": 6.119, + "p95_ms": 9.36, + "p99_ms": 12.109, + "max_ms": 13.327 + }, + "plane": { + "median_ms": 0.128, + "p95_ms": 0.208, + "p99_ms": 0.312, + "max_ms": 0.552 + }, + "entities_and_effects": { + "median_ms": 7.148, + "p95_ms": 10.749, + "p99_ms": 13.249, + "max_ms": 15.442 + }, + "world": { + "median_ms": 7.156, + "p95_ms": 10.759, + "p99_ms": 13.258, + "max_ms": 15.452 + }, + "hud": { + "median_ms": 0.362, + "p95_ms": 0.579, + "p99_ms": 0.666, + "max_ms": 0.708 + }, + "scene": { + "median_ms": 8.021, + "p95_ms": 11.569, + "p99_ms": 14.25, + "max_ms": 16.339 + }, + "canvas": { + "median_ms": 8.183, + "p95_ms": 11.759, + "p99_ms": 14.394, + "max_ms": 16.496 + }, + "present": { + "median_ms": 0.296, + "p95_ms": 0.467, + "p99_ms": 0.578, + "max_ms": 0.63 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.004, + "max_ms": 0.021 + }, + "rules_update": { + "median_ms": 0.099, + "p95_ms": 0.177, + "p99_ms": 1.107, + "max_ms": 1.982 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.89, + "p99_ms": 2.389, + "max_ms": 3.288 + }, + "ground": { + "median_ms": 2.681, + "p95_ms": 3.982, + "p99_ms": 4.821, + "max_ms": 5.487 + }, + "route_and_banks": { + "median_ms": 2.695, + "p95_ms": 5.299, + "p99_ms": 6.439, + "max_ms": 9.618 + }, + "background": { + "median_ms": 0.433, + "p95_ms": 0.703, + "p99_ms": 0.916, + "max_ms": 3.745 + }, + "plane": { + "median_ms": 0.128, + "p95_ms": 0.208, + "p99_ms": 0.312, + "max_ms": 0.552 + }, + "entities_and_effects": { + "median_ms": 0.783, + "p95_ms": 1.442, + "p99_ms": 1.873, + "max_ms": 2.737 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.013, + "p99_ms": 0.018, + "max_ms": 0.083 + }, + "hud": { + "median_ms": 0.362, + "p95_ms": 0.579, + "p99_ms": 0.666, + "max_ms": 0.708 + }, + "scene": { + "median_ms": 0.345, + "p95_ms": 1.427, + "p99_ms": 1.885, + "max_ms": 2.848 + }, + "canvas": { + "median_ms": 0.04, + "p95_ms": 0.063, + "p99_ms": 0.079, + "max_ms": 0.093 + }, + "present": { + "median_ms": 0.296, + "p95_ms": 0.467, + "p99_ms": 0.578, + "max_ms": 0.63 + } + }, + "rss_bytes": 495759360, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127591, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1095, + "inferences": 1094, + "published": 1094, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6983.99999999674, + "capture_fps": 28.122351490866, + "inference_fps": 28.108219213276666, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 16.00000000325963, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 13.368, + "p95_ms": 21.393, + "p99_ms": 28.951, + "max_ms": 37.464 + }, + "scene_setup_ms": 7.279, + "warmup": { + "median_ms": 10.385, + "p95_ms": 14.554, + "p99_ms": 18.439, + "max_ms": 18.439 + }, + "first_preparation_frame_ms": 27.676, + "first_interactive_frame_ms": 11.949, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 27.676, + "p95_ms": 27.676, + "p99_ms": 27.676, + "max_ms": 27.676 + }, + "time_until_first_interactive_ms": 39.697, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0025000044843181968 + ], + [ + "Aplicando pintura", + 0.002700006007216871 + ], + [ + "Preparando piloto", + 0.024199995095841587 + ], + [ + "Montando visual do voo", + 0.004999994416721165 + ], + [ + "Preparando primeira vista", + 26.364100005594082 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.825, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.003, + "max_ms": 0.023 + }, + "rules_update": { + "median_ms": 0.102, + "p95_ms": 0.192, + "p99_ms": 1.35, + "max_ms": 3.267 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.01, + "p99_ms": 2.901, + "max_ms": 3.231 + }, + "ground": { + "median_ms": 2.883, + "p95_ms": 4.737, + "p99_ms": 6.094, + "max_ms": 15.221 + }, + "route_and_banks": { + "median_ms": 5.931, + "p95_ms": 10.243, + "p99_ms": 14.741, + "max_ms": 23.976 + }, + "desaturate": { + "median_ms": 2.877, + "p95_ms": 5.351, + "p99_ms": 6.406, + "max_ms": 13.088 + }, + "background": { + "median_ms": 9.524, + "p95_ms": 15.685, + "p99_ms": 22.725, + "max_ms": 31.521 + }, + "plane": { + "median_ms": 0.141, + "p95_ms": 0.26, + "p99_ms": 0.526, + "max_ms": 0.866 + }, + "entities_and_effects": { + "median_ms": 11.134, + "p95_ms": 18.259, + "p99_ms": 25.534, + "max_ms": 34.566 + }, + "world": { + "median_ms": 11.98, + "p95_ms": 19.35, + "p99_ms": 26.88, + "max_ms": 35.728 + }, + "hud": { + "median_ms": 0.397, + "p95_ms": 0.684, + "p99_ms": 0.779, + "max_ms": 0.929 + }, + "scene": { + "median_ms": 12.873, + "p95_ms": 20.329, + "p99_ms": 28.032, + "max_ms": 36.863 + }, + "canvas": { + "median_ms": 13.055, + "p95_ms": 20.933, + "p99_ms": 28.27, + "max_ms": 37.079 + }, + "present": { + "median_ms": 0.315, + "p95_ms": 0.519, + "p99_ms": 0.716, + "max_ms": 3.295 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.003, + "max_ms": 0.023 + }, + "rules_update": { + "median_ms": 0.102, + "p95_ms": 0.192, + "p99_ms": 1.35, + "max_ms": 3.267 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.01, + "p99_ms": 2.901, + "max_ms": 3.231 + }, + "ground": { + "median_ms": 2.883, + "p95_ms": 4.737, + "p99_ms": 6.094, + "max_ms": 15.221 + }, + "route_and_banks": { + "median_ms": 2.954, + "p95_ms": 6.253, + "p99_ms": 8.733, + "max_ms": 10.342 + }, + "desaturate": { + "median_ms": 2.877, + "p95_ms": 5.351, + "p99_ms": 6.406, + "max_ms": 13.088 + }, + "background": { + "median_ms": 0.461, + "p95_ms": 0.772, + "p99_ms": 0.916, + "max_ms": 1.07 + }, + "plane": { + "median_ms": 0.141, + "p95_ms": 0.26, + "p99_ms": 0.526, + "max_ms": 0.866 + }, + "entities_and_effects": { + "median_ms": 1.368, + "p95_ms": 2.824, + "p99_ms": 3.466, + "max_ms": 4.852 + }, + "world": { + "median_ms": 0.825, + "p95_ms": 1.251, + "p99_ms": 1.445, + "max_ms": 1.884 + }, + "hud": { + "median_ms": 0.397, + "p95_ms": 0.684, + "p99_ms": 0.779, + "max_ms": 0.929 + }, + "scene": { + "median_ms": 0.388, + "p95_ms": 1.481, + "p99_ms": 1.76, + "max_ms": 2.414 + }, + "canvas": { + "median_ms": 0.041, + "p95_ms": 0.066, + "p99_ms": 0.085, + "max_ms": 0.128 + }, + "present": { + "median_ms": 0.315, + "p95_ms": 0.519, + "p99_ms": 0.716, + "max_ms": 3.295 + } + }, + "rss_bytes": 502771712, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208186, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 78.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1441, + "inferences": 1441, + "published": 1441, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6983.99999999674, + "capture_fps": 28.481638138911258, + "inference_fps": 28.490648107876332, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 14.999999999417923, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 3, + "inferences": 2, + "published": 2, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6983.99999999674, + "capture_fps": 27.522935780639582, + "inference_fps": 21.50537634559354, + "capture_interval_ms": 31.999999991967343, + "inference_interval_ms": 31.999999991967343, + "inference_ms": 31.999999991967343, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 31.999999991967343, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 1442, + "inferences": 1442, + "published": 1442, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6983.99999999674, + "capture_fps": 28.171215347643916, + "inference_fps": 28.180023841627893, + "capture_interval_ms": 46.999999991385266, + "inference_interval_ms": 46.999999991385266, + "inference_ms": 14.999999999417923, + "result_age_ms": 593.0000000080327, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/camera-2.json b/docs/validacao-v1.7/desempenho/camera-2.json new file mode 100644 index 0000000..d63005a --- /dev/null +++ b/docs/validacao-v1.7/desempenho/camera-2.json @@ -0,0 +1,1614 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 810.62, + "rss_before_bytes": 41209856, + "rss_after_bytes": 100859904, + "rss_delta_bytes": 59650048, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 11.873, + "p95_ms": 16.942, + "p99_ms": 20.409, + "max_ms": 28.37 + }, + "scene_setup_ms": 10.484, + "warmup": { + "median_ms": 10.266, + "p95_ms": 14.875, + "p99_ms": 42.752, + "max_ms": 42.752 + }, + "first_preparation_frame_ms": 78.98, + "first_interactive_frame_ms": 42.752, + "preparation_frames": 35, + "preparation_frame_cost": { + "median_ms": 7.511, + "p95_ms": 80.292, + "p99_ms": 86.188, + "max_ms": 86.188 + }, + "time_until_first_interactive_ms": 957.394, + "preparation_tasks": [ + [ + "Preparando paisagem", + 30.562200001440942 + ], + [ + "Preparando paisagem", + 31.161500010057352 + ], + [ + "Preparando paisagem", + 22.896300011780113 + ], + [ + "Preparando textura do percurso", + 79.58989999315236 + ], + [ + "Preparando margens", + 85.4028999892762 + ], + [ + "Preparando margens", + 0.713100002030842 + ], + [ + "Preparando margens", + 0.9790000040084124 + ], + [ + "Preparando margens", + 0.7669000042369589 + ], + [ + "Preparando margens", + 0.6944000051589683 + ], + [ + "Preparando margens", + 0.6827999895904213 + ], + [ + "Preparando margens", + 0.9480000007897615 + ], + [ + "Preparando margens", + 0.7679999980609864 + ], + [ + "Preparando margens", + 0.662000005831942 + ], + [ + "Preparando margens", + 0.5683000053977594 + ], + [ + "Preparando margens", + 0.6851999933132902 + ], + [ + "Preparando margens", + 1.3267000031191856 + ], + [ + "Preparando detalhes industriais", + 6.83240000216756 + ], + [ + "Preparando detalhes industriais", + 6.85620000876952 + ], + [ + "Preparando detalhes industriais", + 6.332000004476868 + ], + [ + "Preparando detalhes industriais", + 10.942100008833222 + ], + [ + "Preparando detalhes industriais", + 7.799200000590645 + ], + [ + "Suavizando textura do chão", + 1.4744999934919178 + ], + [ + "Suavizando textura do chão", + 0.7249000045703724 + ], + [ + "Suavizando textura do chão", + 0.5994999955873936 + ], + [ + "Suavizando textura do chão", + 0.2500000118743628 + ], + [ + "Suavizando textura do chão", + 0.07510000432375818 + ], + [ + "Suavizando textura do chão", + 0.05220000457484275 + ], + [ + "Suavizando textura do chão", + 2.882600005250424 + ], + [ + "Suavizando textura do chão", + 1.3838000013493001 + ], + [ + "Suavizando textura do chão", + 0.5176999984541908 + ], + [ + "Suavizando textura do chão", + 0.2860999957192689 + ], + [ + "Suavizando textura do chão", + 0.12029999925289303 + ], + [ + "Suavizando textura do chão", + 0.06320000102277845 + ], + [ + "Suavizando textura do chão", + 1.5601000050082803 + ], + [ + "Suavizando textura do chão", + 0.7654999935766682 + ], + [ + "Suavizando textura do chão", + 0.3823000006377697 + ], + [ + "Suavizando textura do chão", + 0.1951000012923032 + ], + [ + "Suavizando textura do chão", + 0.10269999620504677 + ], + [ + "Suavizando textura do chão", + 0.0509000092279166 + ], + [ + "Alocando faixas do chão", + 0.2998999989358708 + ], + [ + "Alocando faixas do chão", + 0.2857000072253868 + ], + [ + "Alocando faixas do chão", + 0.33120000443886966 + ], + [ + "Alocando faixas do chão", + 0.35000000207219273 + ], + [ + "Alocando faixas do chão", + 0.4337999998824671 + ], + [ + "Alocando faixas do chão", + 0.7292000082088634 + ], + [ + "Alocando faixas do chão", + 0.7295000104932114 + ], + [ + "Alocando faixas do chão", + 0.5900999967707321 + ], + [ + "Alocando faixas do chão", + 0.45479999971576035 + ], + [ + "Alocando faixas do chão", + 0.17359999765176326 + ], + [ + "Alocando faixas do chão", + 0.1765999913914129 + ], + [ + "Alocando faixas do chão", + 0.23419999342877418 + ], + [ + "Alocando faixas do chão", + 0.4415000003064051 + ], + [ + "Alocando faixas do chão", + 0.4572000034386292 + ], + [ + "Alocando faixas do chão", + 1.2989999959245324 + ], + [ + "Alocando faixas do chão", + 0.6057999999029562 + ], + [ + "Alocando faixas do chão", + 0.6730000022798777 + ], + [ + "Alocando faixas do chão", + 0.42409999878145754 + ], + [ + "Alocando faixas do chão", + 0.2077999961329624 + ], + [ + "Alocando faixas do chão", + 0.17939999816007912 + ], + [ + "Alocando faixas do chão", + 0.2275000006193295 + ], + [ + "Alocando faixas do chão", + 0.4430999979376793 + ], + [ + "Alocando faixas do chão", + 0.4214000073261559 + ], + [ + "Alocando faixas do chão", + 0.7075000030454248 + ], + [ + "Alocando faixas do chão", + 0.7957999914651737 + ], + [ + "Alocando faixas do chão", + 0.7272000075317919 + ], + [ + "Alocando faixas do chão", + 0.4535000043688342 + ], + [ + "Preparando fauna", + 73.22540000313893 + ], + [ + "Carregando elementos regionais", + 9.592200003680773 + ], + [ + "Carregando elementos regionais", + 11.562800005776808 + ], + [ + "Carregando elementos regionais", + 11.17789999989327 + ], + [ + "Preparando obstáculos regionais", + 14.213299989933148 + ], + [ + "Preparando avião", + 18.808599998010322 + ], + [ + "Aplicando pintura", + 0.006700007361359894 + ], + [ + "Preparando piloto", + 27.03529999416787 + ], + [ + "Montando visual do voo", + 0.5412000027718022 + ], + [ + "Preparando primeira vista", + 31.820299991522916 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.945, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.018 + }, + "rules_update": { + "median_ms": 0.099, + "p95_ms": 0.175, + "p99_ms": 1.096, + "max_ms": 2.234 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.965, + "p99_ms": 2.528, + "max_ms": 3.73 + }, + "ground": { + "median_ms": 6.514, + "p95_ms": 9.072, + "p99_ms": 10.981, + "max_ms": 13.384 + }, + "route_and_banks": { + "median_ms": 9.026, + "p95_ms": 12.654, + "p99_ms": 15.733, + "max_ms": 20.31 + }, + "background": { + "median_ms": 9.745, + "p95_ms": 14.143, + "p99_ms": 17.387, + "max_ms": 24.722 + }, + "plane": { + "median_ms": 0.129, + "p95_ms": 0.212, + "p99_ms": 0.263, + "max_ms": 0.909 + }, + "entities_and_effects": { + "median_ms": 10.646, + "p95_ms": 15.399, + "p99_ms": 18.683, + "max_ms": 26.503 + }, + "world": { + "median_ms": 10.654, + "p95_ms": 15.407, + "p99_ms": 18.692, + "max_ms": 26.515 + }, + "hud": { + "median_ms": 0.372, + "p95_ms": 0.6, + "p99_ms": 0.763, + "max_ms": 5.113 + }, + "scene": { + "median_ms": 11.393, + "p95_ms": 16.379, + "p99_ms": 19.901, + "max_ms": 27.555 + }, + "canvas": { + "median_ms": 11.548, + "p95_ms": 16.585, + "p99_ms": 20.117, + "max_ms": 27.81 + }, + "present": { + "median_ms": 0.288, + "p95_ms": 0.475, + "p99_ms": 0.558, + "max_ms": 0.784 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.018 + }, + "rules_update": { + "median_ms": 0.099, + "p95_ms": 0.175, + "p99_ms": 1.096, + "max_ms": 2.234 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.965, + "p99_ms": 2.528, + "max_ms": 3.73 + }, + "ground": { + "median_ms": 6.514, + "p95_ms": 9.072, + "p99_ms": 10.981, + "max_ms": 13.384 + }, + "route_and_banks": { + "median_ms": 2.501, + "p95_ms": 4.621, + "p99_ms": 6.73, + "max_ms": 7.933 + }, + "background": { + "median_ms": 0.435, + "p95_ms": 0.694, + "p99_ms": 0.975, + "max_ms": 2.655 + }, + "plane": { + "median_ms": 0.129, + "p95_ms": 0.212, + "p99_ms": 0.263, + "max_ms": 0.909 + }, + "entities_and_effects": { + "median_ms": 0.775, + "p95_ms": 1.456, + "p99_ms": 1.876, + "max_ms": 2.118 + }, + "world": { + "median_ms": 0.008, + "p95_ms": 0.012, + "p99_ms": 0.024, + "max_ms": 0.039 + }, + "hud": { + "median_ms": 0.372, + "p95_ms": 0.6, + "p99_ms": 0.763, + "max_ms": 5.113 + }, + "scene": { + "median_ms": 0.317, + "p95_ms": 1.235, + "p99_ms": 2.039, + "max_ms": 2.454 + }, + "canvas": { + "median_ms": 0.039, + "p95_ms": 0.063, + "p99_ms": 0.08, + "max_ms": 0.523 + }, + "present": { + "median_ms": 0.288, + "p95_ms": 0.475, + "p99_ms": 0.558, + "max_ms": 0.784 + } + }, + "rss_bytes": 467877888, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75567, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 78.0, + "p99_ms": 94.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 370, + "inferences": 370, + "published": 370, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 29.97407647440702, + "inference_fps": 29.97407647440702, + "capture_interval_ms": 31.999999991967343, + "inference_interval_ms": 31.999999991967343, + "inference_ms": 14.999999999417923, + "result_age_ms": 47.00000000593718, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 17.257, + "p95_ms": 24.374, + "p99_ms": 28.807, + "max_ms": 32.675 + }, + "scene_setup_ms": 5.792, + "warmup": { + "median_ms": 14.181, + "p95_ms": 21.097, + "p99_ms": 23.039, + "max_ms": 23.039 + }, + "first_preparation_frame_ms": 51.925, + "first_interactive_frame_ms": 13.135, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 51.925, + "p95_ms": 51.925, + "p99_ms": 51.925, + "max_ms": 51.925 + }, + "time_until_first_interactive_ms": 65.103, + "preparation_tasks": [ + [ + "Preparando avião", + 0.003100009053014219 + ], + [ + "Aplicando pintura", + 0.0020000006770715117 + ], + [ + "Preparando piloto", + 0.018999999156221747 + ], + [ + "Montando visual do voo", + 0.0040000013541430235 + ], + [ + "Preparando primeira vista", + 51.17869999958202 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.4117, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.004, + "max_ms": 0.129 + }, + "rules_update": { + "median_ms": 0.101, + "p95_ms": 0.19, + "p99_ms": 1.292, + "max_ms": 1.524 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.936, + "p99_ms": 2.614, + "max_ms": 2.824 + }, + "ground": { + "median_ms": 7.125, + "p95_ms": 10.52, + "p99_ms": 11.798, + "max_ms": 12.621 + }, + "route_and_banks": { + "median_ms": 9.96, + "p95_ms": 14.036, + "p99_ms": 15.75, + "max_ms": 17.694 + }, + "desaturate": { + "median_ms": 2.912, + "p95_ms": 5.216, + "p99_ms": 5.836, + "max_ms": 11.669 + }, + "background": { + "median_ms": 13.595, + "p95_ms": 19.664, + "p99_ms": 22.365, + "max_ms": 25.317 + }, + "plane": { + "median_ms": 0.142, + "p95_ms": 0.253, + "p99_ms": 0.349, + "max_ms": 1.046 + }, + "entities_and_effects": { + "median_ms": 15.147, + "p95_ms": 21.531, + "p99_ms": 24.859, + "max_ms": 26.752 + }, + "world": { + "median_ms": 15.984, + "p95_ms": 22.651, + "p99_ms": 26.096, + "max_ms": 28.005 + }, + "hud": { + "median_ms": 0.397, + "p95_ms": 0.686, + "p99_ms": 0.845, + "max_ms": 1.964 + }, + "scene": { + "median_ms": 16.751, + "p95_ms": 23.748, + "p99_ms": 27.888, + "max_ms": 32.105 + }, + "canvas": { + "median_ms": 16.914, + "p95_ms": 23.97, + "p99_ms": 28.443, + "max_ms": 32.253 + }, + "present": { + "median_ms": 0.302, + "p95_ms": 0.495, + "p99_ms": 0.647, + "max_ms": 1.177 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.004, + "max_ms": 0.129 + }, + "rules_update": { + "median_ms": 0.101, + "p95_ms": 0.19, + "p99_ms": 1.292, + "max_ms": 1.524 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.936, + "p99_ms": 2.614, + "max_ms": 2.824 + }, + "ground": { + "median_ms": 7.125, + "p95_ms": 10.52, + "p99_ms": 11.798, + "max_ms": 12.621 + }, + "route_and_banks": { + "median_ms": 2.676, + "p95_ms": 4.578, + "p99_ms": 6.368, + "max_ms": 7.567 + }, + "desaturate": { + "median_ms": 2.912, + "p95_ms": 5.216, + "p99_ms": 5.836, + "max_ms": 11.669 + }, + "background": { + "median_ms": 0.46, + "p95_ms": 0.79, + "p99_ms": 0.958, + "max_ms": 1.112 + }, + "plane": { + "median_ms": 0.142, + "p95_ms": 0.253, + "p99_ms": 0.349, + "max_ms": 1.046 + }, + "entities_and_effects": { + "median_ms": 1.309, + "p95_ms": 2.417, + "p99_ms": 3.107, + "max_ms": 3.918 + }, + "world": { + "median_ms": 0.827, + "p95_ms": 1.243, + "p99_ms": 1.383, + "max_ms": 1.936 + }, + "hud": { + "median_ms": 0.397, + "p95_ms": 0.686, + "p99_ms": 0.845, + "max_ms": 1.964 + }, + "scene": { + "median_ms": 0.337, + "p95_ms": 1.224, + "p99_ms": 1.972, + "max_ms": 2.24 + }, + "canvas": { + "median_ms": 0.038, + "p95_ms": 0.061, + "p99_ms": 0.077, + "max_ms": 0.143 + }, + "present": { + "median_ms": 0.302, + "p95_ms": 0.495, + "p99_ms": 0.647, + "max_ms": 1.177 + } + }, + "rss_bytes": 478617600, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154991, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 110.0 + }, + "camera": { + "frames_read": 741, + "inferences": 740, + "published": 740, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 30.03404669261749, + "inference_fps": 29.993514915704377, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 31.000000002677552, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 8.472, + "p95_ms": 12.334, + "p99_ms": 14.844, + "max_ms": 19.343 + }, + "scene_setup_ms": 7.074, + "warmup": { + "median_ms": 6.496, + "p95_ms": 8.546, + "p99_ms": 9.342, + "max_ms": 9.342 + }, + "first_preparation_frame_ms": 32.853, + "first_interactive_frame_ms": 6.136, + "preparation_frames": 18, + "preparation_frame_cost": { + "median_ms": 8.774, + "p95_ms": 66.794, + "p99_ms": 66.794, + "max_ms": 66.794 + }, + "time_until_first_interactive_ms": 397.919, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.94310000736732 + ], + [ + "Preparando paisagem", + 23.689699999522418 + ], + [ + "Preparando paisagem", + 22.71390000532847 + ], + [ + "Preparando textura do percurso", + 0.0009999930625781417 + ], + [ + "Preparando margens", + 65.94280000717845 + ], + [ + "Preparando margens", + 0.3328999882796779 + ], + [ + "Preparando margens", + 0.2818000066326931 + ], + [ + "Preparando margens", + 0.3127000090898946 + ], + [ + "Preparando margens", + 0.21860000560991466 + ], + [ + "Preparando margens", + 0.33370000892318785 + ], + [ + "Preparando margens", + 0.19789999350905418 + ], + [ + "Preparando margens", + 0.3141000051982701 + ], + [ + "Preparando margens", + 0.41229999624192715 + ], + [ + "Preparando margens", + 0.42300000495743006 + ], + [ + "Preparando margens", + 0.38240000139921904 + ], + [ + "Preparando margens", + 1.0033999860752374 + ], + [ + "Preparando detalhes industriais", + 6.115900003351271 + ], + [ + "Preparando detalhes industriais", + 6.693399991490878 + ], + [ + "Preparando detalhes industriais", + 7.5200999999651685 + ], + [ + "Preparando detalhes industriais", + 11.450299993157387 + ], + [ + "Preparando detalhes industriais", + 6.849999990663491 + ], + [ + "Suavizando textura do chão", + 1.330200000666082 + ], + [ + "Suavizando textura do chão", + 0.6390999915311113 + ], + [ + "Suavizando textura do chão", + 0.3802000137511641 + ], + [ + "Suavizando textura do chão", + 0.1801999896997586 + ], + [ + "Suavizando textura do chão", + 0.10380000458098948 + ], + [ + "Suavizando textura do chão", + 0.04600000102072954 + ], + [ + "Alocando faixas do chão", + 0.27550000231713057 + ], + [ + "Alocando faixas do chão", + 0.2082999999402091 + ], + [ + "Alocando faixas do chão", + 0.24979999579954892 + ], + [ + "Alocando faixas do chão", + 0.2339999919058755 + ], + [ + "Alocando faixas do chão", + 0.23389999114442617 + ], + [ + "Alocando faixas do chão", + 0.22079999325796962 + ], + [ + "Alocando faixas do chão", + 0.29519999225158244 + ], + [ + "Alocando faixas do chão", + 0.24220001068897545 + ], + [ + "Alocando faixas do chão", + 0.14769998961128294 + ], + [ + "Preparando fauna", + 0.001100008375942707 + ], + [ + "Carregando elementos regionais", + 7.498300008592196 + ], + [ + "Carregando elementos regionais", + 8.453099988400936 + ], + [ + "Carregando elementos regionais", + 5.826599997817539 + ], + [ + "Preparando obstáculos regionais", + 13.79740000993479 + ], + [ + "Preparando avião", + 0.00340001133736223 + ], + [ + "Aplicando pintura", + 0.0021000014385208488 + ], + [ + "Preparando piloto", + 0.025000001187436283 + ], + [ + "Montando visual do voo", + 0.004999994416721165 + ], + [ + "Preparando primeira vista", + 21.800799993798137 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9983, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.02 + }, + "rules_update": { + "median_ms": 0.1, + "p95_ms": 0.186, + "p99_ms": 1.134, + "max_ms": 2.284 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.899, + "p99_ms": 2.559, + "max_ms": 3.313 + }, + "ground": { + "median_ms": 2.653, + "p95_ms": 4.029, + "p99_ms": 4.564, + "max_ms": 9.119 + }, + "route_and_banks": { + "median_ms": 5.497, + "p95_ms": 8.787, + "p99_ms": 10.669, + "max_ms": 15.884 + }, + "background": { + "median_ms": 6.136, + "p95_ms": 9.745, + "p99_ms": 11.433, + "max_ms": 16.773 + }, + "plane": { + "median_ms": 0.126, + "p95_ms": 0.208, + "p99_ms": 0.311, + "max_ms": 0.658 + }, + "entities_and_effects": { + "median_ms": 7.084, + "p95_ms": 11.012, + "p99_ms": 12.706, + "max_ms": 18.068 + }, + "world": { + "median_ms": 7.092, + "p95_ms": 11.02, + "p99_ms": 12.717, + "max_ms": 18.08 + }, + "hud": { + "median_ms": 0.361, + "p95_ms": 0.567, + "p99_ms": 0.676, + "max_ms": 0.769 + }, + "scene": { + "median_ms": 7.966, + "p95_ms": 11.751, + "p99_ms": 14.148, + "max_ms": 18.722 + }, + "canvas": { + "median_ms": 8.121, + "p95_ms": 11.989, + "p99_ms": 14.407, + "max_ms": 19.02 + }, + "present": { + "median_ms": 0.29, + "p95_ms": 0.473, + "p99_ms": 0.571, + "max_ms": 1.353 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.02 + }, + "rules_update": { + "median_ms": 0.1, + "p95_ms": 0.186, + "p99_ms": 1.134, + "max_ms": 2.284 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.899, + "p99_ms": 2.559, + "max_ms": 3.313 + }, + "ground": { + "median_ms": 2.653, + "p95_ms": 4.029, + "p99_ms": 4.564, + "max_ms": 9.119 + }, + "route_and_banks": { + "median_ms": 2.71, + "p95_ms": 5.45, + "p99_ms": 6.765, + "max_ms": 9.618 + }, + "background": { + "median_ms": 0.434, + "p95_ms": 0.716, + "p99_ms": 0.894, + "max_ms": 2.792 + }, + "plane": { + "median_ms": 0.126, + "p95_ms": 0.208, + "p99_ms": 0.311, + "max_ms": 0.658 + }, + "entities_and_effects": { + "median_ms": 0.76, + "p95_ms": 1.465, + "p99_ms": 1.952, + "max_ms": 2.277 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.013, + "p99_ms": 0.024, + "max_ms": 0.035 + }, + "hud": { + "median_ms": 0.361, + "p95_ms": 0.567, + "p99_ms": 0.676, + "max_ms": 0.769 + }, + "scene": { + "median_ms": 0.344, + "p95_ms": 1.384, + "p99_ms": 1.813, + "max_ms": 2.25 + }, + "canvas": { + "median_ms": 0.04, + "p95_ms": 0.065, + "p99_ms": 0.088, + "max_ms": 0.327 + }, + "present": { + "median_ms": 0.29, + "p95_ms": 0.473, + "p99_ms": 0.571, + "max_ms": 1.353 + } + }, + "rss_bytes": 485724160, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127589, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1089, + "inferences": 1089, + "published": 1089, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 29.99008592201685, + "inference_fps": 29.99008592201685, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 14.999999999417923, + "result_age_ms": 61.99999999080319, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 12.837, + "p95_ms": 19.288, + "p99_ms": 22.663, + "max_ms": 30.026 + }, + "scene_setup_ms": 6.044, + "warmup": { + "median_ms": 9.897, + "p95_ms": 13.53, + "p99_ms": 17.491, + "max_ms": 17.491 + }, + "first_preparation_frame_ms": 21.813, + "first_interactive_frame_ms": 9.957, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 21.813, + "p95_ms": 21.813, + "p99_ms": 21.813, + "max_ms": 21.813 + }, + "time_until_first_interactive_ms": 31.816, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0024000037228688598 + ], + [ + "Aplicando pintura", + 0.0019999861251562834 + ], + [ + "Preparando piloto", + 0.019800005247816443 + ], + [ + "Montando visual do voo", + 0.0041000021155923605 + ], + [ + "Preparando primeira vista", + 21.05409999785479 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.875, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.016, + "max_ms": 0.064 + }, + "rules_update": { + "median_ms": 0.101, + "p95_ms": 0.179, + "p99_ms": 1.298, + "max_ms": 1.87 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.898, + "p99_ms": 2.46, + "max_ms": 3.417 + }, + "ground": { + "median_ms": 2.748, + "p95_ms": 4.257, + "p99_ms": 5.058, + "max_ms": 7.93 + }, + "route_and_banks": { + "median_ms": 5.614, + "p95_ms": 9.01, + "p99_ms": 11.081, + "max_ms": 13.271 + }, + "desaturate": { + "median_ms": 2.772, + "p95_ms": 4.843, + "p99_ms": 5.591, + "max_ms": 6.754 + }, + "background": { + "median_ms": 9.137, + "p95_ms": 13.9, + "p99_ms": 17.375, + "max_ms": 21.303 + }, + "plane": { + "median_ms": 0.136, + "p95_ms": 0.23, + "p99_ms": 0.359, + "max_ms": 0.854 + }, + "entities_and_effects": { + "median_ms": 10.659, + "p95_ms": 16.172, + "p99_ms": 20.143, + "max_ms": 23.959 + }, + "world": { + "median_ms": 11.464, + "p95_ms": 17.089, + "p99_ms": 20.974, + "max_ms": 25.1 + }, + "hud": { + "median_ms": 0.378, + "p95_ms": 0.621, + "p99_ms": 0.746, + "max_ms": 0.95 + }, + "scene": { + "median_ms": 12.339, + "p95_ms": 18.575, + "p99_ms": 21.988, + "max_ms": 29.239 + }, + "canvas": { + "median_ms": 12.491, + "p95_ms": 18.877, + "p99_ms": 22.161, + "max_ms": 29.57 + }, + "present": { + "median_ms": 0.293, + "p95_ms": 0.471, + "p99_ms": 0.55, + "max_ms": 0.773 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.016, + "max_ms": 0.064 + }, + "rules_update": { + "median_ms": 0.101, + "p95_ms": 0.179, + "p99_ms": 1.298, + "max_ms": 1.87 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.898, + "p99_ms": 2.46, + "max_ms": 3.417 + }, + "ground": { + "median_ms": 2.748, + "p95_ms": 4.257, + "p99_ms": 5.058, + "max_ms": 7.93 + }, + "route_and_banks": { + "median_ms": 2.712, + "p95_ms": 5.529, + "p99_ms": 6.842, + "max_ms": 8.159 + }, + "desaturate": { + "median_ms": 2.772, + "p95_ms": 4.843, + "p99_ms": 5.591, + "max_ms": 6.754 + }, + "background": { + "median_ms": 0.44, + "p95_ms": 0.732, + "p99_ms": 1.175, + "max_ms": 1.646 + }, + "plane": { + "median_ms": 0.136, + "p95_ms": 0.23, + "p99_ms": 0.359, + "max_ms": 0.854 + }, + "entities_and_effects": { + "median_ms": 1.309, + "p95_ms": 2.436, + "p99_ms": 3.228, + "max_ms": 5.494 + }, + "world": { + "median_ms": 0.797, + "p95_ms": 1.155, + "p99_ms": 1.343, + "max_ms": 1.464 + }, + "hud": { + "median_ms": 0.378, + "p95_ms": 0.621, + "p99_ms": 0.746, + "max_ms": 0.95 + }, + "scene": { + "median_ms": 0.361, + "p95_ms": 1.632, + "p99_ms": 2.583, + "max_ms": 3.89 + }, + "canvas": { + "median_ms": 0.04, + "p95_ms": 0.063, + "p99_ms": 0.077, + "max_ms": 0.123 + }, + "present": { + "median_ms": 0.293, + "p95_ms": 0.471, + "p99_ms": 0.55, + "max_ms": 0.773 + } + }, + "rss_bytes": 498307072, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208184, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1434, + "inferences": 1433, + "published": 1433, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 30.021982623260076, + "inference_fps": 30.001046791584162, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 16.00000000325963, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 2, + "inferences": 1, + "published": 1, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 32.258064520914054, + "inference_fps": 16.129032260457027, + "capture_interval_ms": 46.999999991385266, + "inference_interval_ms": 46.999999991385266, + "inference_ms": 31.000000002677552, + "result_age_ms": 61.99999999080319, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 1434, + "inferences": 1434, + "published": 1434, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 29.68206656731812, + "inference_fps": 29.68206656731812, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 14.999999999417923, + "result_age_ms": 561.9999999908032, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/camera-3.json b/docs/validacao-v1.7/desempenho/camera-3.json new file mode 100644 index 0000000..4b2440e --- /dev/null +++ b/docs/validacao-v1.7/desempenho/camera-3.json @@ -0,0 +1,1614 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 756.9, + "rss_before_bytes": 41148416, + "rss_after_bytes": 100777984, + "rss_delta_bytes": 59629568, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 13.657, + "p95_ms": 22.142, + "p99_ms": 28.967, + "max_ms": 54.418 + }, + "scene_setup_ms": 8.363, + "warmup": { + "median_ms": 10.061, + "p95_ms": 14.942, + "p99_ms": 44.962, + "max_ms": 44.962 + }, + "first_preparation_frame_ms": 81.044, + "first_interactive_frame_ms": 44.962, + "preparation_frames": 35, + "preparation_frame_cost": { + "median_ms": 9.138, + "p95_ms": 81.044, + "p99_ms": 83.582, + "max_ms": 83.582 + }, + "time_until_first_interactive_ms": 943.27, + "preparation_tasks": [ + [ + "Preparando paisagem", + 27.35469999606721 + ], + [ + "Preparando paisagem", + 25.650799987488426 + ], + [ + "Preparando paisagem", + 23.501799994846806 + ], + [ + "Preparando textura do percurso", + 71.22330000856891 + ], + [ + "Preparando margens", + 82.66939999884926 + ], + [ + "Preparando margens", + 0.6626999966101721 + ], + [ + "Preparando margens", + 0.5957999965175986 + ], + [ + "Preparando margens", + 0.6218000053195283 + ], + [ + "Preparando margens", + 0.5805999971926212 + ], + [ + "Preparando margens", + 0.7468000112567097 + ], + [ + "Preparando margens", + 0.4901000065729022 + ], + [ + "Preparando margens", + 0.6246999982977286 + ], + [ + "Preparando margens", + 0.560200001928024 + ], + [ + "Preparando margens", + 0.6968999950913712 + ], + [ + "Preparando margens", + 0.7617999945068732 + ], + [ + "Preparando margens", + 1.3465999945765361 + ], + [ + "Preparando detalhes industriais", + 8.330700002261437 + ], + [ + "Preparando detalhes industriais", + 9.913600006257184 + ], + [ + "Preparando detalhes industriais", + 8.614200007286854 + ], + [ + "Preparando detalhes industriais", + 9.74000000860542 + ], + [ + "Preparando detalhes industriais", + 6.360300001688302 + ], + [ + "Suavizando textura do chão", + 1.7552999925101176 + ], + [ + "Suavizando textura do chão", + 1.3832999975420535 + ], + [ + "Suavizando textura do chão", + 0.6272000027820468 + ], + [ + "Suavizando textura do chão", + 0.2801999944495037 + ], + [ + "Suavizando textura do chão", + 0.1049999991664663 + ], + [ + "Suavizando textura do chão", + 0.04339999577496201 + ], + [ + "Suavizando textura do chão", + 1.4430000010179356 + ], + [ + "Suavizando textura do chão", + 0.9025000035762787 + ], + [ + "Suavizando textura do chão", + 0.4295000107958913 + ], + [ + "Suavizando textura do chão", + 0.22899999748915434 + ], + [ + "Suavizando textura do chão", + 0.09000000136438757 + ], + [ + "Suavizando textura do chão", + 0.07419999747071415 + ], + [ + "Suavizando textura do chão", + 1.5098000003490597 + ], + [ + "Suavizando textura do chão", + 0.8188000065274537 + ], + [ + "Suavizando textura do chão", + 0.4305000038584694 + ], + [ + "Suavizando textura do chão", + 0.22769998759031296 + ], + [ + "Suavizando textura do chão", + 0.10990000737365335 + ], + [ + "Suavizando textura do chão", + 0.10080001084133983 + ], + [ + "Alocando faixas do chão", + 0.3012999950442463 + ], + [ + "Alocando faixas do chão", + 0.2707999956328422 + ], + [ + "Alocando faixas do chão", + 0.2901999978348613 + ], + [ + "Alocando faixas do chão", + 0.3437999985180795 + ], + [ + "Alocando faixas do chão", + 0.4920000064885244 + ], + [ + "Alocando faixas do chão", + 0.5310999986249954 + ], + [ + "Alocando faixas do chão", + 0.6446999905165285 + ], + [ + "Alocando faixas do chão", + 0.5806999979540706 + ], + [ + "Alocando faixas do chão", + 0.637400007690303 + ], + [ + "Alocando faixas do chão", + 0.2927000023191795 + ], + [ + "Alocando faixas do chão", + 0.3056999994441867 + ], + [ + "Alocando faixas do chão", + 0.36639999598264694 + ], + [ + "Alocando faixas do chão", + 0.378099997760728 + ], + [ + "Alocando faixas do chão", + 0.3547000087564811 + ], + [ + "Alocando faixas do chão", + 0.443600001744926 + ], + [ + "Alocando faixas do chão", + 0.6434999959310517 + ], + [ + "Alocando faixas do chão", + 0.6616999889956787 + ], + [ + "Alocando faixas do chão", + 0.3538000019034371 + ], + [ + "Alocando faixas do chão", + 0.15729998995084316 + ], + [ + "Alocando faixas do chão", + 0.15500000154133886 + ], + [ + "Alocando faixas do chão", + 0.23890000011306256 + ], + [ + "Alocando faixas do chão", + 0.33179999445565045 + ], + [ + "Alocando faixas do chão", + 0.31770000350661576 + ], + [ + "Alocando faixas do chão", + 0.42609999945852906 + ], + [ + "Alocando faixas do chão", + 0.4381000035209581 + ], + [ + "Alocando faixas do chão", + 0.6102000043028966 + ], + [ + "Alocando faixas do chão", + 0.47089999134186655 + ], + [ + "Preparando fauna", + 64.70630000694655 + ], + [ + "Carregando elementos regionais", + 8.737700001802295 + ], + [ + "Carregando elementos regionais", + 11.08379999641329 + ], + [ + "Carregando elementos regionais", + 8.527199999662116 + ], + [ + "Preparando obstáculos regionais", + 8.62000000779517 + ], + [ + "Preparando avião", + 23.039899999275804 + ], + [ + "Aplicando pintura", + 0.006599992047995329 + ], + [ + "Preparando piloto", + 28.8907000067411 + ], + [ + "Montando visual do voo", + 0.832799996715039 + ], + [ + "Preparando primeira vista", + 35.02840000146534 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.7517, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.022 + }, + "rules_update": { + "median_ms": 0.107, + "p95_ms": 0.229, + "p99_ms": 1.14, + "max_ms": 2.813 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.174, + "p99_ms": 3.445, + "max_ms": 5.104 + }, + "ground": { + "median_ms": 7.287, + "p95_ms": 13.42, + "p99_ms": 18.635, + "max_ms": 27.464 + }, + "route_and_banks": { + "median_ms": 10.388, + "p95_ms": 16.844, + "p99_ms": 21.207, + "max_ms": 40.343 + }, + "background": { + "median_ms": 11.16, + "p95_ms": 18.249, + "p99_ms": 23.012, + "max_ms": 41.259 + }, + "plane": { + "median_ms": 0.139, + "p95_ms": 0.278, + "p99_ms": 0.375, + "max_ms": 3.405 + }, + "entities_and_effects": { + "median_ms": 12.287, + "p95_ms": 19.668, + "p99_ms": 24.927, + "max_ms": 49.672 + }, + "world": { + "median_ms": 12.297, + "p95_ms": 19.679, + "p99_ms": 24.941, + "max_ms": 49.684 + }, + "hud": { + "median_ms": 0.406, + "p95_ms": 0.784, + "p99_ms": 1.004, + "max_ms": 4.571 + }, + "scene": { + "median_ms": 13.183, + "p95_ms": 21.175, + "p99_ms": 28.115, + "max_ms": 53.748 + }, + "canvas": { + "median_ms": 13.351, + "p95_ms": 21.642, + "p99_ms": 28.364, + "max_ms": 53.983 + }, + "present": { + "median_ms": 0.324, + "p95_ms": 0.526, + "p99_ms": 0.674, + "max_ms": 1.041 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.022 + }, + "rules_update": { + "median_ms": 0.107, + "p95_ms": 0.229, + "p99_ms": 1.14, + "max_ms": 2.813 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.174, + "p99_ms": 3.445, + "max_ms": 5.104 + }, + "ground": { + "median_ms": 7.287, + "p95_ms": 13.42, + "p99_ms": 18.635, + "max_ms": 27.464 + }, + "route_and_banks": { + "median_ms": 2.877, + "p95_ms": 4.912, + "p99_ms": 6.665, + "max_ms": 20.24 + }, + "background": { + "median_ms": 0.491, + "p95_ms": 0.895, + "p99_ms": 1.354, + "max_ms": 9.941 + }, + "plane": { + "median_ms": 0.139, + "p95_ms": 0.278, + "p99_ms": 0.375, + "max_ms": 3.405 + }, + "entities_and_effects": { + "median_ms": 0.906, + "p95_ms": 1.689, + "p99_ms": 2.306, + "max_ms": 26.215 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.014, + "p99_ms": 0.018, + "max_ms": 0.027 + }, + "hud": { + "median_ms": 0.406, + "p95_ms": 0.784, + "p99_ms": 1.004, + "max_ms": 4.571 + }, + "scene": { + "median_ms": 0.353, + "p95_ms": 1.544, + "p99_ms": 2.363, + "max_ms": 3.897 + }, + "canvas": { + "median_ms": 0.043, + "p95_ms": 0.078, + "p99_ms": 0.131, + "max_ms": 0.371 + }, + "present": { + "median_ms": 0.324, + "p95_ms": 0.526, + "p99_ms": 0.674, + "max_ms": 1.041 + } + }, + "rss_bytes": 471605248, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75567, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 47.0, + "p95_ms": 78.0, + "p99_ms": 94.0, + "max_ms": 110.0 + }, + "camera": { + "frames_read": 373, + "inferences": 372, + "published": 372, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5593.999999997322, + "capture_fps": 29.254901960784313, + "inference_fps": 29.176470588235293, + "capture_interval_ms": 31.999999991967343, + "inference_interval_ms": 31.999999991967343, + "inference_ms": 31.999999991967343, + "result_age_ms": 62.999999994644895, + "last_result_age_ms": 31.999999991967343, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 20.289, + "p95_ms": 35.619, + "p99_ms": 43.943, + "max_ms": 67.191 + }, + "scene_setup_ms": 17.453, + "warmup": { + "median_ms": 22.455, + "p95_ms": 33.747, + "p99_ms": 73.083, + "max_ms": 73.083 + }, + "first_preparation_frame_ms": 61.422, + "first_interactive_frame_ms": 16.908, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 61.422, + "p95_ms": 61.422, + "p99_ms": 61.422, + "max_ms": 61.422 + }, + "time_until_first_interactive_ms": 78.386, + "preparation_tasks": [ + [ + "Preparando avião", + 0.007899987394921482 + ], + [ + "Aplicando pintura", + 0.004599991370923817 + ], + [ + "Preparando piloto", + 0.04290000651963055 + ], + [ + "Montando visual do voo", + 0.010199990356341004 + ], + [ + "Preparando primeira vista", + 59.8290000052657 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.2167, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.045 + }, + "rules_update": { + "median_ms": 0.114, + "p95_ms": 0.204, + "p99_ms": 1.591, + "max_ms": 3.039 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.293, + "p99_ms": 3.478, + "max_ms": 10.377 + }, + "ground": { + "median_ms": 8.181, + "p95_ms": 14.4, + "p99_ms": 19.68, + "max_ms": 39.764 + }, + "route_and_banks": { + "median_ms": 11.268, + "p95_ms": 21.236, + "p99_ms": 27.784, + "max_ms": 45.224 + }, + "desaturate": { + "median_ms": 3.33, + "p95_ms": 5.856, + "p99_ms": 6.87, + "max_ms": 10.429 + }, + "background": { + "median_ms": 15.761, + "p95_ms": 28.526, + "p99_ms": 36.012, + "max_ms": 57.272 + }, + "plane": { + "median_ms": 0.166, + "p95_ms": 0.269, + "p99_ms": 0.632, + "max_ms": 1.925 + }, + "entities_and_effects": { + "median_ms": 17.71, + "p95_ms": 31.615, + "p99_ms": 40.287, + "max_ms": 60.519 + }, + "world": { + "median_ms": 18.745, + "p95_ms": 33.086, + "p99_ms": 41.524, + "max_ms": 62.65 + }, + "hud": { + "median_ms": 0.449, + "p95_ms": 0.778, + "p99_ms": 1.011, + "max_ms": 1.634 + }, + "scene": { + "median_ms": 19.692, + "p95_ms": 34.476, + "p99_ms": 42.873, + "max_ms": 66.14 + }, + "canvas": { + "median_ms": 19.869, + "p95_ms": 34.819, + "p99_ms": 43.134, + "max_ms": 66.595 + }, + "present": { + "median_ms": 0.367, + "p95_ms": 0.658, + "p99_ms": 0.914, + "max_ms": 3.621 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.045 + }, + "rules_update": { + "median_ms": 0.114, + "p95_ms": 0.204, + "p99_ms": 1.591, + "max_ms": 3.039 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.293, + "p99_ms": 3.478, + "max_ms": 10.377 + }, + "ground": { + "median_ms": 8.181, + "p95_ms": 14.4, + "p99_ms": 19.68, + "max_ms": 39.764 + }, + "route_and_banks": { + "median_ms": 3.043, + "p95_ms": 7.372, + "p99_ms": 10.265, + "max_ms": 13.61 + }, + "desaturate": { + "median_ms": 3.33, + "p95_ms": 5.856, + "p99_ms": 6.87, + "max_ms": 10.429 + }, + "background": { + "median_ms": 0.556, + "p95_ms": 0.919, + "p99_ms": 1.134, + "max_ms": 1.531 + }, + "plane": { + "median_ms": 0.166, + "p95_ms": 0.269, + "p99_ms": 0.632, + "max_ms": 1.925 + }, + "entities_and_effects": { + "median_ms": 1.614, + "p95_ms": 3.445, + "p99_ms": 4.789, + "max_ms": 7.136 + }, + "world": { + "median_ms": 0.921, + "p95_ms": 1.399, + "p99_ms": 1.91, + "max_ms": 2.955 + }, + "hud": { + "median_ms": 0.449, + "p95_ms": 0.778, + "p99_ms": 1.011, + "max_ms": 1.634 + }, + "scene": { + "median_ms": 0.385, + "p95_ms": 1.689, + "p99_ms": 2.343, + "max_ms": 5.173 + }, + "canvas": { + "median_ms": 0.045, + "p95_ms": 0.069, + "p99_ms": 0.115, + "max_ms": 0.357 + }, + "present": { + "median_ms": 0.367, + "p95_ms": 0.658, + "p99_ms": 0.914, + "max_ms": 3.621 + } + }, + "rss_bytes": 486682624, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154991, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 47.0, + "p95_ms": 78.0, + "p99_ms": 94.0, + "max_ms": 109.0 + }, + "camera": { + "frames_read": 803, + "inferences": 802, + "published": 802, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5593.999999997322, + "capture_fps": 29.035290714489523, + "inference_fps": 28.99913219554246, + "capture_interval_ms": 47.00000000593718, + "inference_interval_ms": 47.00000000593718, + "inference_ms": 31.000000002677552, + "result_age_ms": 62.000000005355105, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 9.255, + "p95_ms": 13.561, + "p99_ms": 16.48, + "max_ms": 20.091 + }, + "scene_setup_ms": 8.037, + "warmup": { + "median_ms": 7.378, + "p95_ms": 12.062, + "p99_ms": 12.934, + "max_ms": 12.934 + }, + "first_preparation_frame_ms": 35.234, + "first_interactive_frame_ms": 6.453, + "preparation_frames": 20, + "preparation_frame_cost": { + "median_ms": 9.238, + "p95_ms": 80.461, + "p99_ms": 80.461, + "max_ms": 80.461 + }, + "time_until_first_interactive_ms": 453.575, + "preparation_tasks": [ + [ + "Preparando paisagem", + 22.32610000646673 + ], + [ + "Preparando paisagem", + 32.23019999859389 + ], + [ + "Preparando paisagem", + 22.033000001101755 + ], + [ + "Preparando textura do percurso", + 0.0008999923011288047 + ], + [ + "Preparando margens", + 79.79480001085903 + ], + [ + "Preparando margens", + 0.48919999971985817 + ], + [ + "Preparando margens", + 0.4061999934492633 + ], + [ + "Preparando margens", + 0.3502000035950914 + ], + [ + "Preparando margens", + 0.1934000028995797 + ], + [ + "Preparando margens", + 0.34499999310355633 + ], + [ + "Preparando margens", + 0.24130000383593142 + ], + [ + "Preparando margens", + 0.17669999215286225 + ], + [ + "Preparando margens", + 0.45190000673756003 + ], + [ + "Preparando margens", + 0.6637000042246655 + ], + [ + "Preparando margens", + 0.4549000004772097 + ], + [ + "Preparando margens", + 1.0395999997854233 + ], + [ + "Preparando detalhes industriais", + 7.54509998660069 + ], + [ + "Preparando detalhes industriais", + 8.354899997357279 + ], + [ + "Preparando detalhes industriais", + 8.424200001172721 + ], + [ + "Preparando detalhes industriais", + 13.959699994302355 + ], + [ + "Preparando detalhes industriais", + 7.786600006511435 + ], + [ + "Suavizando textura do chão", + 3.43359999533277 + ], + [ + "Suavizando textura do chão", + 0.9083000040845945 + ], + [ + "Suavizando textura do chão", + 0.5005999992135912 + ], + [ + "Suavizando textura do chão", + 0.21690000721719116 + ], + [ + "Suavizando textura do chão", + 0.269199998001568 + ], + [ + "Suavizando textura do chão", + 0.10639999527484179 + ], + [ + "Alocando faixas do chão", + 0.4748999926960096 + ], + [ + "Alocando faixas do chão", + 0.35010000283364207 + ], + [ + "Alocando faixas do chão", + 0.34720000985544175 + ], + [ + "Alocando faixas do chão", + 0.26889999571722 + ], + [ + "Alocando faixas do chão", + 0.2069999900413677 + ], + [ + "Alocando faixas do chão", + 0.22109999554231763 + ], + [ + "Alocando faixas do chão", + 0.22000000171829015 + ], + [ + "Alocando faixas do chão", + 0.2238000015495345 + ], + [ + "Alocando faixas do chão", + 0.15859999984968454 + ], + [ + "Preparando fauna", + 0.0014999968698248267 + ], + [ + "Carregando elementos regionais", + 7.128799989004619 + ], + [ + "Carregando elementos regionais", + 11.442799994256347 + ], + [ + "Carregando elementos regionais", + 9.265399989089929 + ], + [ + "Preparando obstáculos regionais", + 10.545500001171604 + ], + [ + "Preparando avião", + 0.002700006007216871 + ], + [ + "Aplicando pintura", + 0.0021000014385208488 + ], + [ + "Preparando piloto", + 0.02370000584051013 + ], + [ + "Montando visual do voo", + 0.00549999822396785 + ], + [ + "Preparando primeira vista", + 18.877700000302866 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9917, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.003, + "max_ms": 0.017 + }, + "rules_update": { + "median_ms": 0.108, + "p95_ms": 0.186, + "p99_ms": 1.49, + "max_ms": 2.439 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 1.527, + "p99_ms": 1.872, + "max_ms": 2.852 + }, + "ground": { + "median_ms": 2.906, + "p95_ms": 4.546, + "p99_ms": 5.825, + "max_ms": 6.327 + }, + "route_and_banks": { + "median_ms": 6.075, + "p95_ms": 9.376, + "p99_ms": 12.469, + "max_ms": 15.817 + }, + "background": { + "median_ms": 6.741, + "p95_ms": 10.466, + "p99_ms": 13.28, + "max_ms": 16.404 + }, + "plane": { + "median_ms": 0.139, + "p95_ms": 0.227, + "p99_ms": 0.355, + "max_ms": 0.8 + }, + "entities_and_effects": { + "median_ms": 7.746, + "p95_ms": 11.794, + "p99_ms": 14.929, + "max_ms": 18.789 + }, + "world": { + "median_ms": 7.758, + "p95_ms": 11.819, + "p99_ms": 14.943, + "max_ms": 18.8 + }, + "hud": { + "median_ms": 0.39, + "p95_ms": 0.619, + "p99_ms": 0.721, + "max_ms": 1.278 + }, + "scene": { + "median_ms": 8.737, + "p95_ms": 12.989, + "p99_ms": 15.703, + "max_ms": 19.472 + }, + "canvas": { + "median_ms": 8.893, + "p95_ms": 13.159, + "p99_ms": 15.886, + "max_ms": 19.69 + }, + "present": { + "median_ms": 0.323, + "p95_ms": 0.485, + "p99_ms": 0.597, + "max_ms": 0.735 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.003, + "max_ms": 0.017 + }, + "rules_update": { + "median_ms": 0.108, + "p95_ms": 0.186, + "p99_ms": 1.49, + "max_ms": 2.439 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 1.527, + "p99_ms": 1.872, + "max_ms": 2.852 + }, + "ground": { + "median_ms": 2.906, + "p95_ms": 4.546, + "p99_ms": 5.825, + "max_ms": 6.327 + }, + "route_and_banks": { + "median_ms": 2.995, + "p95_ms": 5.712, + "p99_ms": 7.87, + "max_ms": 9.826 + }, + "background": { + "median_ms": 0.48, + "p95_ms": 0.753, + "p99_ms": 0.895, + "max_ms": 2.899 + }, + "plane": { + "median_ms": 0.139, + "p95_ms": 0.227, + "p99_ms": 0.355, + "max_ms": 0.8 + }, + "entities_and_effects": { + "median_ms": 0.844, + "p95_ms": 1.684, + "p99_ms": 2.201, + "max_ms": 4.773 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.015, + "p99_ms": 0.028, + "max_ms": 0.05 + }, + "hud": { + "median_ms": 0.39, + "p95_ms": 0.619, + "p99_ms": 0.721, + "max_ms": 1.278 + }, + "scene": { + "median_ms": 0.394, + "p95_ms": 1.526, + "p99_ms": 2.215, + "max_ms": 3.207 + }, + "canvas": { + "median_ms": 0.044, + "p95_ms": 0.069, + "p99_ms": 0.099, + "max_ms": 0.257 + }, + "present": { + "median_ms": 0.323, + "p95_ms": 0.485, + "p99_ms": 0.597, + "max_ms": 0.735 + } + }, + "rss_bytes": 492244992, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127591, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1154, + "inferences": 1153, + "published": 1153, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5593.999999997322, + "capture_fps": 29.319850605962944, + "inference_fps": 29.294443456391054, + "capture_interval_ms": 15.999999988707714, + "inference_interval_ms": 15.999999988707714, + "inference_ms": 15.999999988707714, + "result_age_ms": 30.999999988125637, + "last_result_age_ms": 15.999999988707714, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 14.22, + "p95_ms": 19.863, + "p99_ms": 23.287, + "max_ms": 38.689 + }, + "scene_setup_ms": 8.53, + "warmup": { + "median_ms": 12.014, + "p95_ms": 17.179, + "p99_ms": 19.171, + "max_ms": 19.171 + }, + "first_preparation_frame_ms": 24.932, + "first_interactive_frame_ms": 10.884, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 24.932, + "p95_ms": 24.932, + "p99_ms": 24.932, + "max_ms": 24.932 + }, + "time_until_first_interactive_ms": 35.855, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0025999906938523054 + ], + [ + "Aplicando pintura", + 0.0025000044843181968 + ], + [ + "Preparando piloto", + 0.024499997380189598 + ], + [ + "Montando visual do voo", + 0.005199995939619839 + ], + [ + "Preparando primeira vista", + 24.033499998040497 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.7967, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.044 + }, + "rules_update": { + "median_ms": 0.107, + "p95_ms": 0.213, + "p99_ms": 1.348, + "max_ms": 2.424 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.846, + "p99_ms": 2.694, + "max_ms": 3.112 + }, + "ground": { + "median_ms": 3.016, + "p95_ms": 4.603, + "p99_ms": 6.09, + "max_ms": 10.21 + }, + "route_and_banks": { + "median_ms": 6.245, + "p95_ms": 9.463, + "p99_ms": 11.308, + "max_ms": 15.221 + }, + "desaturate": { + "median_ms": 3.002, + "p95_ms": 4.793, + "p99_ms": 6.083, + "max_ms": 11.706 + }, + "background": { + "median_ms": 10.082, + "p95_ms": 14.218, + "p99_ms": 17.528, + "max_ms": 27.918 + }, + "plane": { + "median_ms": 0.152, + "p95_ms": 0.257, + "p99_ms": 0.337, + "max_ms": 0.707 + }, + "entities_and_effects": { + "median_ms": 11.741, + "p95_ms": 16.287, + "p99_ms": 19.384, + "max_ms": 32.557 + }, + "world": { + "median_ms": 12.661, + "p95_ms": 17.411, + "p99_ms": 20.195, + "max_ms": 34.238 + }, + "hud": { + "median_ms": 0.409, + "p95_ms": 0.694, + "p99_ms": 0.816, + "max_ms": 1.267 + }, + "scene": { + "median_ms": 13.665, + "p95_ms": 19.11, + "p99_ms": 22.363, + "max_ms": 36.75 + }, + "canvas": { + "median_ms": 13.853, + "p95_ms": 19.379, + "p99_ms": 22.724, + "max_ms": 37.996 + }, + "present": { + "median_ms": 0.33, + "p95_ms": 0.528, + "p99_ms": 0.643, + "max_ms": 0.809 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.044 + }, + "rules_update": { + "median_ms": 0.107, + "p95_ms": 0.213, + "p99_ms": 1.348, + "max_ms": 2.424 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.846, + "p99_ms": 2.694, + "max_ms": 3.112 + }, + "ground": { + "median_ms": 3.016, + "p95_ms": 4.603, + "p99_ms": 6.09, + "max_ms": 10.21 + }, + "route_and_banks": { + "median_ms": 3.104, + "p95_ms": 5.78, + "p99_ms": 6.84, + "max_ms": 9.084 + }, + "desaturate": { + "median_ms": 3.002, + "p95_ms": 4.793, + "p99_ms": 6.083, + "max_ms": 11.706 + }, + "background": { + "median_ms": 0.498, + "p95_ms": 0.806, + "p99_ms": 0.971, + "max_ms": 1.278 + }, + "plane": { + "median_ms": 0.152, + "p95_ms": 0.257, + "p99_ms": 0.337, + "max_ms": 0.707 + }, + "entities_and_effects": { + "median_ms": 1.41, + "p95_ms": 2.713, + "p99_ms": 3.332, + "max_ms": 4.334 + }, + "world": { + "median_ms": 0.859, + "p95_ms": 1.268, + "p99_ms": 1.487, + "max_ms": 1.759 + }, + "hud": { + "median_ms": 0.409, + "p95_ms": 0.694, + "p99_ms": 0.816, + "max_ms": 1.267 + }, + "scene": { + "median_ms": 0.373, + "p95_ms": 1.641, + "p99_ms": 2.169, + "max_ms": 3.316 + }, + "canvas": { + "median_ms": 0.044, + "p95_ms": 0.072, + "p99_ms": 0.126, + "max_ms": 0.171 + }, + "present": { + "median_ms": 0.33, + "p95_ms": 0.528, + "p99_ms": 0.643, + "max_ms": 0.809 + } + }, + "rss_bytes": 500871168, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208186, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 46.0, + "p95_ms": 78.0, + "p99_ms": 93.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1499, + "inferences": 1499, + "published": 1499, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5593.999999997322, + "capture_fps": 29.455109940852097, + "inference_fps": 29.455109940852097, + "capture_interval_ms": 31.999999991967343, + "inference_interval_ms": 31.999999991967343, + "inference_ms": 31.000000002677552, + "result_age_ms": 47.00000000593718, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 1, + "inferences": 1, + "published": 1, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5593.999999997322, + "capture_fps": 32.258064513342816, + "inference_fps": 32.258064513342816, + "capture_interval_ms": 0.0, + "inference_interval_ms": 0.0, + "inference_ms": 16.00000000325963, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 1500, + "inferences": 1499, + "published": 1499, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5593.999999997322, + "capture_fps": 29.143756435914394, + "inference_fps": 29.12432726495712, + "capture_interval_ms": 47.00000000593718, + "inference_interval_ms": 31.999999991967343, + "inference_ms": 31.000000002677552, + "result_age_ms": 625.0, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/camera-control.json b/docs/validacao-v1.7/desempenho/camera-control.json new file mode 100644 index 0000000..ce2dfd5 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/camera-control.json @@ -0,0 +1,1742 @@ +{ + "version": "1.7.0", + "conditions": "CPU; native window; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case; real camera samples consumed by head control; visibility/calibration reported", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 931.91, + "rss_before_bytes": 41189376, + "rss_after_bytes": 136826880, + "rss_delta_bytes": 95637504, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 13.302, + "p95_ms": 17.942, + "p99_ms": 20.942, + "max_ms": 24.936 + }, + "scene_setup_ms": 13.922, + "warmup": { + "median_ms": 54.066, + "p95_ms": 67.979, + "p99_ms": 72.276, + "max_ms": 72.276 + }, + "first_preparation_frame_ms": 97.195, + "first_interactive_frame_ms": 41.773, + "preparation_frames": 35, + "preparation_frame_cost": { + "median_ms": 7.843, + "p95_ms": 92.375, + "p99_ms": 97.195, + "max_ms": 97.195 + }, + "time_until_first_interactive_ms": 976.573, + "preparation_tasks": [ + [ + "Preparando paisagem", + 28.37520001048688 + ], + [ + "Preparando paisagem", + 27.97850000206381 + ], + [ + "Preparando paisagem", + 23.388300003716722 + ], + [ + "Preparando textura do percurso", + 88.9552000007825 + ], + [ + "Preparando margens", + 88.0777999991551 + ], + [ + "Preparando margens", + 0.9381999989273027 + ], + [ + "Preparando margens", + 0.610699993558228 + ], + [ + "Preparando margens", + 0.5885999999009073 + ], + [ + "Preparando margens", + 0.5067000020062551 + ], + [ + "Preparando margens", + 0.5303000070853159 + ], + [ + "Preparando margens", + 0.5704999930458143 + ], + [ + "Preparando margens", + 0.7190000033006072 + ], + [ + "Preparando margens", + 0.6750000029569492 + ], + [ + "Preparando margens", + 0.6067999929655343 + ], + [ + "Preparando margens", + 0.6484999903477728 + ], + [ + "Preparando margens", + 1.0676999954739586 + ], + [ + "Preparando detalhes industriais", + 7.718199994997121 + ], + [ + "Preparando detalhes industriais", + 9.697700006654486 + ], + [ + "Preparando detalhes industriais", + 6.27090000489261 + ], + [ + "Preparando detalhes industriais", + 7.954300002893433 + ], + [ + "Preparando detalhes industriais", + 6.082899999455549 + ], + [ + "Suavizando textura do chão", + 1.4986999885877594 + ], + [ + "Suavizando textura do chão", + 0.72669998917263 + ], + [ + "Suavizando textura do chão", + 0.3353999927639961 + ], + [ + "Suavizando textura do chão", + 0.17210000078193843 + ], + [ + "Suavizando textura do chão", + 0.07420001202262938 + ], + [ + "Suavizando textura do chão", + 0.03409999771974981 + ], + [ + "Suavizando textura do chão", + 1.4202000020304695 + ], + [ + "Suavizando textura do chão", + 0.9764999995240942 + ], + [ + "Suavizando textura do chão", + 0.5081999988760799 + ], + [ + "Suavizando textura do chão", + 0.23249999503605068 + ], + [ + "Suavizando textura do chão", + 0.16489998961333185 + ], + [ + "Suavizando textura do chão", + 0.07500000356230885 + ], + [ + "Suavizando textura do chão", + 2.0160999993095174 + ], + [ + "Suavizando textura do chão", + 1.072099999873899 + ], + [ + "Suavizando textura do chão", + 0.5371000006562099 + ], + [ + "Suavizando textura do chão", + 0.3012000088347122 + ], + [ + "Suavizando textura do chão", + 0.1379000023007393 + ], + [ + "Suavizando textura do chão", + 0.06880000000819564 + ], + [ + "Alocando faixas do chão", + 0.35069999285042286 + ], + [ + "Alocando faixas do chão", + 0.4364000051282346 + ], + [ + "Alocando faixas do chão", + 0.3983000060543418 + ], + [ + "Alocando faixas do chão", + 0.44720000005327165 + ], + [ + "Alocando faixas do chão", + 0.4715999966720119 + ], + [ + "Alocando faixas do chão", + 0.80080000043381 + ], + [ + "Alocando faixas do chão", + 0.5919999966863543 + ], + [ + "Alocando faixas do chão", + 0.5782999942312017 + ], + [ + "Alocando faixas do chão", + 0.39739999920129776 + ], + [ + "Alocando faixas do chão", + 0.21389999892562628 + ], + [ + "Alocando faixas do chão", + 0.19120000069960952 + ], + [ + "Alocando faixas do chão", + 0.35600000410340726 + ], + [ + "Alocando faixas do chão", + 0.327600006130524 + ], + [ + "Alocando faixas do chão", + 0.36779999209102243 + ], + [ + "Alocando faixas do chão", + 0.46209999709390104 + ], + [ + "Alocando faixas do chão", + 0.7462999928975478 + ], + [ + "Alocando faixas do chão", + 0.6671000010101125 + ], + [ + "Alocando faixas do chão", + 0.5077000096207485 + ], + [ + "Alocando faixas do chão", + 0.23540000256616622 + ], + [ + "Alocando faixas do chão", + 0.2769999991869554 + ], + [ + "Alocando faixas do chão", + 0.3184999950462952 + ], + [ + "Alocando faixas do chão", + 0.403900005039759 + ], + [ + "Alocando faixas do chão", + 0.4318999999668449 + ], + [ + "Alocando faixas do chão", + 0.8654999983264133 + ], + [ + "Alocando faixas do chão", + 0.7827000081306323 + ], + [ + "Alocando faixas do chão", + 0.557700011995621 + ], + [ + "Alocando faixas do chão", + 0.3532000118866563 + ], + [ + "Preparando fauna", + 68.11209999432322 + ], + [ + "Carregando elementos regionais", + 8.082400003331713 + ], + [ + "Carregando elementos regionais", + 11.388800005079247 + ], + [ + "Carregando elementos regionais", + 8.972399999038316 + ], + [ + "Preparando obstáculos regionais", + 11.589699992327951 + ], + [ + "Preparando avião", + 20.753199991304427 + ], + [ + "Aplicando pintura", + 0.00790000194683671 + ], + [ + "Preparando piloto", + 21.63499999733176 + ], + [ + "Montando visual do voo", + 0.4811999970115721 + ], + [ + "Preparando primeira vista", + 21.069499998702668 + ] + ], + "frames_measured": 300, + "within_60fps_budget_fraction": 0.9133, + "components": { + "input": { + "median_ms": 0.025, + "p95_ms": 0.05, + "p99_ms": 0.095, + "max_ms": 0.107 + }, + "rules_update": { + "median_ms": 0.095, + "p95_ms": 0.183, + "p99_ms": 1.316, + "max_ms": 1.631 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.157, + "p99_ms": 2.911, + "max_ms": 3.025 + }, + "ground": { + "median_ms": 6.365, + "p95_ms": 8.513, + "p99_ms": 10.101, + "max_ms": 10.272 + }, + "route_and_banks": { + "median_ms": 9.099, + "p95_ms": 12.305, + "p99_ms": 15.901, + "max_ms": 16.465 + }, + "background": { + "median_ms": 9.96, + "p95_ms": 13.136, + "p99_ms": 16.778, + "max_ms": 19.88 + }, + "plane": { + "median_ms": 0.119, + "p95_ms": 0.189, + "p99_ms": 0.641, + "max_ms": 0.733 + }, + "entities_and_effects": { + "median_ms": 10.997, + "p95_ms": 14.726, + "p99_ms": 18.014, + "max_ms": 21.958 + }, + "world": { + "median_ms": 11.006, + "p95_ms": 14.734, + "p99_ms": 18.025, + "max_ms": 21.968 + }, + "hud": { + "median_ms": 0.312, + "p95_ms": 0.488, + "p99_ms": 0.625, + "max_ms": 5.574 + }, + "scene": { + "median_ms": 11.745, + "p95_ms": 16.245, + "p99_ms": 19.488, + "max_ms": 23.622 + }, + "canvas": { + "median_ms": 11.952, + "p95_ms": 16.412, + "p99_ms": 19.71, + "max_ms": 23.771 + }, + "present": { + "median_ms": 1.262, + "p95_ms": 1.696, + "p99_ms": 1.993, + "max_ms": 2.029 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.025, + "p95_ms": 0.05, + "p99_ms": 0.095, + "max_ms": 0.107 + }, + "rules_update": { + "median_ms": 0.095, + "p95_ms": 0.183, + "p99_ms": 1.316, + "max_ms": 1.631 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.157, + "p99_ms": 2.911, + "max_ms": 3.025 + }, + "ground": { + "median_ms": 6.365, + "p95_ms": 8.513, + "p99_ms": 10.101, + "max_ms": 10.272 + }, + "route_and_banks": { + "median_ms": 2.624, + "p95_ms": 4.571, + "p99_ms": 6.11, + "max_ms": 7.764 + }, + "background": { + "median_ms": 0.438, + "p95_ms": 0.917, + "p99_ms": 1.469, + "max_ms": 5.345 + }, + "plane": { + "median_ms": 0.119, + "p95_ms": 0.189, + "p99_ms": 0.641, + "max_ms": 0.733 + }, + "entities_and_effects": { + "median_ms": 0.811, + "p95_ms": 1.522, + "p99_ms": 1.78, + "max_ms": 2.101 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.016, + "p99_ms": 0.031, + "max_ms": 0.036 + }, + "hud": { + "median_ms": 0.312, + "p95_ms": 0.488, + "p99_ms": 0.625, + "max_ms": 5.574 + }, + "scene": { + "median_ms": 0.395, + "p95_ms": 1.558, + "p99_ms": 2.479, + "max_ms": 2.632 + }, + "canvas": { + "median_ms": 0.046, + "p95_ms": 0.077, + "p99_ms": 0.097, + "max_ms": 0.124 + }, + "present": { + "median_ms": 1.262, + "p95_ms": 1.696, + "p99_ms": 1.993, + "max_ms": 2.029 + } + }, + "rss_bytes": 520036352, + "renderer_caches": { + "unique_retained_surface_bytes": 175180248, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1075032, + "sky": 0, + "ground": 917504, + "watercolor": 108798096, + "plane_skin": 27015716, + "paper_items": 16820176 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 85944004, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 41255, + "get_misses": 3877, + "evictions": 2971, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "consumed_control": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 32.0, + "p99_ms": 47.0, + "max_ms": 47.0 + }, + "consume_to_canvas": { + "median_ms": 16.0, + "p95_ms": 62.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 47.0, + "p95_ms": 79.0, + "p99_ms": 110.0, + "max_ms": 125.0 + } + }, + "unique_sequences": 156, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 78.0, + "p99_ms": 94.0, + "max_ms": 110.0 + }, + "camera": { + "frames_read": 218, + "inferences": 218, + "published": 218, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 8312.000000005355, + "capture_fps": 23.848594245697655, + "inference_fps": 23.89041095890411, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 14.999999999417923, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 17.994, + "p95_ms": 29.285, + "p99_ms": 33.002, + "max_ms": 37.241 + }, + "scene_setup_ms": 5.579, + "warmup": { + "median_ms": 14.257, + "p95_ms": 17.145, + "p99_ms": 18.685, + "max_ms": 18.685 + }, + "first_preparation_frame_ms": 28.475, + "first_interactive_frame_ms": 12.809, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 28.475, + "p95_ms": 28.475, + "p99_ms": 28.475, + "max_ms": 28.475 + }, + "time_until_first_interactive_ms": 41.317, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0034999975468963385 + ], + [ + "Aplicando pintura", + 0.0018999999156221747 + ], + [ + "Preparando piloto", + 0.018600010662339628 + ], + [ + "Montando visual do voo", + 0.0041000021155923605 + ], + [ + "Preparando primeira vista", + 26.830200004042126 + ] + ], + "frames_measured": 300, + "within_60fps_budget_fraction": 0.34, + "components": { + "input": { + "median_ms": 0.028, + "p95_ms": 0.063, + "p99_ms": 0.095, + "max_ms": 0.143 + }, + "rules_update": { + "median_ms": 0.127, + "p95_ms": 0.237, + "p99_ms": 1.635, + "max_ms": 3.038 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.357, + "p99_ms": 3.428, + "max_ms": 4.073 + }, + "ground": { + "median_ms": 6.68, + "p95_ms": 11.417, + "p99_ms": 12.871, + "max_ms": 28.05 + }, + "route_and_banks": { + "median_ms": 9.381, + "p95_ms": 16.327, + "p99_ms": 18.461, + "max_ms": 30.0 + }, + "desaturate": { + "median_ms": 2.7, + "p95_ms": 5.022, + "p99_ms": 5.479, + "max_ms": 5.709 + }, + "background": { + "median_ms": 13.037, + "p95_ms": 22.494, + "p99_ms": 24.873, + "max_ms": 32.878 + }, + "plane": { + "median_ms": 0.13, + "p95_ms": 0.22, + "p99_ms": 0.533, + "max_ms": 1.021 + }, + "entities_and_effects": { + "median_ms": 14.598, + "p95_ms": 24.856, + "p99_ms": 27.388, + "max_ms": 34.67 + }, + "world": { + "median_ms": 15.421, + "p95_ms": 25.917, + "p99_ms": 28.649, + "max_ms": 35.346 + }, + "hud": { + "median_ms": 0.32, + "p95_ms": 0.501, + "p99_ms": 0.626, + "max_ms": 0.759 + }, + "scene": { + "median_ms": 16.539, + "p95_ms": 26.995, + "p99_ms": 29.818, + "max_ms": 35.811 + }, + "canvas": { + "median_ms": 16.741, + "p95_ms": 27.312, + "p99_ms": 31.118, + "max_ms": 36.089 + }, + "present": { + "median_ms": 1.293, + "p95_ms": 2.022, + "p99_ms": 2.282, + "max_ms": 2.503 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.028, + "p95_ms": 0.063, + "p99_ms": 0.095, + "max_ms": 0.143 + }, + "rules_update": { + "median_ms": 0.127, + "p95_ms": 0.237, + "p99_ms": 1.635, + "max_ms": 3.038 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.357, + "p99_ms": 3.428, + "max_ms": 4.073 + }, + "ground": { + "median_ms": 6.68, + "p95_ms": 11.417, + "p99_ms": 12.871, + "max_ms": 28.05 + }, + "route_and_banks": { + "median_ms": 2.572, + "p95_ms": 5.442, + "p99_ms": 6.206, + "max_ms": 6.418 + }, + "desaturate": { + "median_ms": 2.7, + "p95_ms": 5.022, + "p99_ms": 5.479, + "max_ms": 5.709 + }, + "background": { + "median_ms": 0.556, + "p95_ms": 0.97, + "p99_ms": 1.182, + "max_ms": 1.28 + }, + "plane": { + "median_ms": 0.13, + "p95_ms": 0.22, + "p99_ms": 0.533, + "max_ms": 1.021 + }, + "entities_and_effects": { + "median_ms": 1.384, + "p95_ms": 2.527, + "p99_ms": 3.084, + "max_ms": 3.537 + }, + "world": { + "median_ms": 0.779, + "p95_ms": 1.24, + "p99_ms": 1.335, + "max_ms": 1.401 + }, + "hud": { + "median_ms": 0.32, + "p95_ms": 0.501, + "p99_ms": 0.626, + "max_ms": 0.759 + }, + "scene": { + "median_ms": 0.397, + "p95_ms": 1.343, + "p99_ms": 1.669, + "max_ms": 2.253 + }, + "canvas": { + "median_ms": 0.057, + "p95_ms": 0.095, + "p99_ms": 0.123, + "max_ms": 0.135 + }, + "present": { + "median_ms": 1.293, + "p95_ms": 2.022, + "p99_ms": 2.282, + "max_ms": 2.503 + } + }, + "rss_bytes": 529080320, + "renderer_caches": { + "unique_retained_surface_bytes": 181398548, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5192272, + "sky": 0, + "ground": 917504, + "watercolor": 108798096, + "plane_skin": 27015716, + "paper_items": 18263128 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 13, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 88909040, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 84378, + "get_misses": 8089, + "evictions": 7174, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "consumed_control": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 47.0, + "p99_ms": 63.0, + "max_ms": 63.0 + }, + "consume_to_canvas": { + "median_ms": 31.0, + "p95_ms": 62.0, + "p99_ms": 78.0, + "max_ms": 78.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 54.5, + "p95_ms": 79.0, + "p99_ms": 94.0, + "max_ms": 110.0 + } + }, + "unique_sequences": 177, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 79.0 + }, + "camera": { + "frames_read": 427, + "inferences": 426, + "published": 426, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 8312.000000005355, + "capture_fps": 26.531626693181995, + "inference_fps": 26.49583281503653, + "capture_interval_ms": 47.00000000593718, + "inference_interval_ms": 47.00000000593718, + "inference_ms": 16.00000000325963, + "result_age_ms": 47.00000000593718, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 10.76, + "p95_ms": 16.301, + "p99_ms": 18.265, + "max_ms": 23.142 + }, + "scene_setup_ms": 6.917, + "warmup": { + "median_ms": 7.292, + "p95_ms": 10.874, + "p99_ms": 12.195, + "max_ms": 12.195 + }, + "first_preparation_frame_ms": 32.295, + "first_interactive_frame_ms": 7.674, + "preparation_frames": 20, + "preparation_frame_cost": { + "median_ms": 8.929, + "p95_ms": 83.504, + "p99_ms": 83.504, + "max_ms": 83.504 + }, + "time_until_first_interactive_ms": 443.645, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.53810000466183 + ], + [ + "Preparando paisagem", + 19.56369999970775 + ], + [ + "Preparando paisagem", + 20.888099999865517 + ], + [ + "Preparando textura do percurso", + 0.0018999999156221747 + ], + [ + "Preparando margens", + 81.60480001242831 + ], + [ + "Preparando margens", + 0.3559000033419579 + ], + [ + "Preparando margens", + 0.2967000036733225 + ], + [ + "Preparando margens", + 0.48210000386461616 + ], + [ + "Preparando margens", + 0.3012999950442463 + ], + [ + "Preparando margens", + 0.5671000108122826 + ], + [ + "Preparando margens", + 0.1956000050995499 + ], + [ + "Preparando margens", + 0.1436000020476058 + ], + [ + "Preparando margens", + 0.3212000010535121 + ], + [ + "Preparando margens", + 0.31570000282954425 + ], + [ + "Preparando margens", + 0.3041000018129125 + ], + [ + "Preparando margens", + 0.8116000099107623 + ], + [ + "Preparando detalhes industriais", + 7.401199996820651 + ], + [ + "Preparando detalhes industriais", + 7.578999997349456 + ], + [ + "Preparando detalhes industriais", + 6.0861999954795465 + ], + [ + "Preparando detalhes industriais", + 7.085200006258674 + ], + [ + "Preparando detalhes industriais", + 6.684700012556277 + ], + [ + "Suavizando textura do chão", + 1.9469999970169738 + ], + [ + "Suavizando textura do chão", + 1.2406000023474917 + ], + [ + "Suavizando textura do chão", + 0.4093000025022775 + ], + [ + "Suavizando textura do chão", + 0.2810000005410984 + ], + [ + "Suavizando textura do chão", + 0.08800000068731606 + ], + [ + "Suavizando textura do chão", + 0.044500004150904715 + ], + [ + "Alocando faixas do chão", + 0.3766000008909032 + ], + [ + "Alocando faixas do chão", + 0.3434000100241974 + ], + [ + "Alocando faixas do chão", + 0.3302999975858256 + ], + [ + "Alocando faixas do chão", + 0.33399999665562063 + ], + [ + "Alocando faixas do chão", + 0.3837999975075945 + ], + [ + "Alocando faixas do chão", + 0.35960000241175294 + ], + [ + "Alocando faixas do chão", + 0.3691000019898638 + ], + [ + "Alocando faixas do chão", + 0.38529999437741935 + ], + [ + "Alocando faixas do chão", + 0.21869999181944877 + ], + [ + "Preparando fauna", + 0.001500011421740055 + ], + [ + "Carregando elementos regionais", + 9.575899995979853 + ], + [ + "Carregando elementos regionais", + 9.276900003897026 + ], + [ + "Carregando elementos regionais", + 5.907500002649613 + ], + [ + "Preparando obstáculos regionais", + 9.603700003935955 + ], + [ + "Preparando avião", + 0.0025000044843181968 + ], + [ + "Aplicando pintura", + 0.0018999999156221747 + ], + [ + "Preparando piloto", + 0.02379999205004424 + ], + [ + "Montando visual do voo", + 0.0050000089686363935 + ], + [ + "Preparando primeira vista", + 18.957200009026565 + ] + ], + "frames_measured": 300, + "within_60fps_budget_fraction": 0.9633, + "components": { + "input": { + "median_ms": 0.027, + "p95_ms": 0.051, + "p99_ms": 0.075, + "max_ms": 0.087 + }, + "rules_update": { + "median_ms": 0.102, + "p95_ms": 0.213, + "p99_ms": 1.37, + "max_ms": 2.833 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.24, + "p99_ms": 3.389, + "max_ms": 3.99 + }, + "ground": { + "median_ms": 2.905, + "p95_ms": 4.481, + "p99_ms": 5.122, + "max_ms": 5.776 + }, + "route_and_banks": { + "median_ms": 6.142, + "p95_ms": 9.927, + "p99_ms": 12.237, + "max_ms": 13.323 + }, + "background": { + "median_ms": 7.001, + "p95_ms": 11.19, + "p99_ms": 13.542, + "max_ms": 15.546 + }, + "plane": { + "median_ms": 0.124, + "p95_ms": 0.215, + "p99_ms": 0.328, + "max_ms": 0.843 + }, + "entities_and_effects": { + "median_ms": 8.118, + "p95_ms": 12.775, + "p99_ms": 15.101, + "max_ms": 17.006 + }, + "world": { + "median_ms": 8.125, + "p95_ms": 12.789, + "p99_ms": 15.115, + "max_ms": 17.018 + }, + "hud": { + "median_ms": 0.317, + "p95_ms": 0.619, + "p99_ms": 0.793, + "max_ms": 1.004 + }, + "scene": { + "median_ms": 9.244, + "p95_ms": 14.315, + "p99_ms": 16.471, + "max_ms": 18.864 + }, + "canvas": { + "median_ms": 9.431, + "p95_ms": 14.656, + "p99_ms": 16.656, + "max_ms": 21.814 + }, + "present": { + "median_ms": 1.346, + "p95_ms": 2.04, + "p99_ms": 2.63, + "max_ms": 2.851 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.027, + "p95_ms": 0.051, + "p99_ms": 0.075, + "max_ms": 0.087 + }, + "rules_update": { + "median_ms": 0.102, + "p95_ms": 0.213, + "p99_ms": 1.37, + "max_ms": 2.833 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.24, + "p99_ms": 3.389, + "max_ms": 3.99 + }, + "ground": { + "median_ms": 2.905, + "p95_ms": 4.481, + "p99_ms": 5.122, + "max_ms": 5.776 + }, + "route_and_banks": { + "median_ms": 3.252, + "p95_ms": 6.461, + "p99_ms": 7.407, + "max_ms": 8.991 + }, + "background": { + "median_ms": 0.47, + "p95_ms": 0.866, + "p99_ms": 1.081, + "max_ms": 3.61 + }, + "plane": { + "median_ms": 0.124, + "p95_ms": 0.215, + "p99_ms": 0.328, + "max_ms": 0.843 + }, + "entities_and_effects": { + "median_ms": 0.888, + "p95_ms": 1.717, + "p99_ms": 2.069, + "max_ms": 2.206 + }, + "world": { + "median_ms": 0.009, + "p95_ms": 0.018, + "p99_ms": 0.03, + "max_ms": 0.043 + }, + "hud": { + "median_ms": 0.317, + "p95_ms": 0.619, + "p99_ms": 0.793, + "max_ms": 1.004 + }, + "scene": { + "median_ms": 0.588, + "p95_ms": 1.897, + "p99_ms": 2.897, + "max_ms": 3.154 + }, + "canvas": { + "median_ms": 0.049, + "p95_ms": 0.086, + "p99_ms": 0.115, + "max_ms": 0.146 + }, + "present": { + "median_ms": 1.346, + "p95_ms": 2.04, + "p99_ms": 2.63, + "max_ms": 2.851 + } + }, + "rss_bytes": 540135424, + "renderer_caches": { + "unique_retained_surface_bytes": 192422124, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 3971112, + "sky": 0, + "ground": 917504, + "watercolor": 119372440, + "plane_skin": 27015716, + "paper_items": 20865420 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 5, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 89728820, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 67355, + "get_misses": 8043, + "evictions": 7084, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "consumed_control": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 47.0, + "p99_ms": 47.0, + "max_ms": 47.0 + }, + "consume_to_canvas": { + "median_ms": 16.0, + "p95_ms": 47.0, + "p99_ms": 63.0, + "max_ms": 63.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 47.0, + "p95_ms": 78.0, + "p99_ms": 94.0, + "max_ms": 94.0 + } + }, + "unique_sequences": 153, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 624, + "inferences": 623, + "published": 623, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 8312.000000005355, + "capture_fps": 27.484143763216068, + "inference_fps": 27.45944992948462, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 31.000000002677552, + "result_age_ms": 47.00000000593718, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 15.602, + "p95_ms": 21.102, + "p99_ms": 24.694, + "max_ms": 25.778 + }, + "scene_setup_ms": 9.141, + "warmup": { + "median_ms": 12.85, + "p95_ms": 17.37, + "p99_ms": 21.197, + "max_ms": 21.197 + }, + "first_preparation_frame_ms": 36.798, + "first_interactive_frame_ms": 16.005, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 36.798, + "p95_ms": 36.798, + "p99_ms": 36.798, + "max_ms": 36.798 + }, + "time_until_first_interactive_ms": 52.913, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0030999945010989904 + ], + [ + "Aplicando pintura", + 0.0025000044843181968 + ], + [ + "Preparando piloto", + 0.029100003303028643 + ], + [ + "Montando visual do voo", + 0.006599992047995329 + ], + [ + "Preparando primeira vista", + 34.09289999399334 + ] + ], + "frames_measured": 300, + "within_60fps_budget_fraction": 0.67, + "components": { + "input": { + "median_ms": 0.028, + "p95_ms": 0.061, + "p99_ms": 0.081, + "max_ms": 0.119 + }, + "rules_update": { + "median_ms": 0.111, + "p95_ms": 0.213, + "p99_ms": 1.358, + "max_ms": 2.809 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.173, + "p99_ms": 2.956, + "max_ms": 3.219 + }, + "ground": { + "median_ms": 2.987, + "p95_ms": 4.39, + "p99_ms": 5.174, + "max_ms": 5.201 + }, + "route_and_banks": { + "median_ms": 6.465, + "p95_ms": 9.505, + "p99_ms": 12.104, + "max_ms": 14.382 + }, + "desaturate": { + "median_ms": 2.878, + "p95_ms": 4.295, + "p99_ms": 5.248, + "max_ms": 5.574 + }, + "background": { + "median_ms": 10.25, + "p95_ms": 14.792, + "p99_ms": 16.808, + "max_ms": 20.039 + }, + "plane": { + "median_ms": 0.131, + "p95_ms": 0.215, + "p99_ms": 0.652, + "max_ms": 0.925 + }, + "entities_and_effects": { + "median_ms": 11.961, + "p95_ms": 17.101, + "p99_ms": 19.22, + "max_ms": 21.524 + }, + "world": { + "median_ms": 12.783, + "p95_ms": 17.996, + "p99_ms": 20.473, + "max_ms": 22.447 + }, + "hud": { + "median_ms": 0.33, + "p95_ms": 0.578, + "p99_ms": 0.678, + "max_ms": 0.744 + }, + "scene": { + "median_ms": 14.001, + "p95_ms": 19.499, + "p99_ms": 22.336, + "max_ms": 23.894 + }, + "canvas": { + "median_ms": 14.193, + "p95_ms": 19.689, + "p99_ms": 23.207, + "max_ms": 24.197 + }, + "present": { + "median_ms": 1.349, + "p95_ms": 1.888, + "p99_ms": 2.205, + "max_ms": 2.448 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.028, + "p95_ms": 0.061, + "p99_ms": 0.081, + "max_ms": 0.119 + }, + "rules_update": { + "median_ms": 0.111, + "p95_ms": 0.213, + "p99_ms": 1.358, + "max_ms": 2.809 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.173, + "p99_ms": 2.956, + "max_ms": 3.219 + }, + "ground": { + "median_ms": 2.987, + "p95_ms": 4.39, + "p99_ms": 5.174, + "max_ms": 5.201 + }, + "route_and_banks": { + "median_ms": 3.319, + "p95_ms": 5.959, + "p99_ms": 7.687, + "max_ms": 10.328 + }, + "desaturate": { + "median_ms": 2.878, + "p95_ms": 4.295, + "p99_ms": 5.248, + "max_ms": 5.574 + }, + "background": { + "median_ms": 0.515, + "p95_ms": 0.937, + "p99_ms": 1.129, + "max_ms": 1.185 + }, + "plane": { + "median_ms": 0.131, + "p95_ms": 0.215, + "p99_ms": 0.652, + "max_ms": 0.925 + }, + "entities_and_effects": { + "median_ms": 1.436, + "p95_ms": 2.659, + "p99_ms": 3.466, + "max_ms": 3.584 + }, + "world": { + "median_ms": 0.826, + "p95_ms": 1.222, + "p99_ms": 1.381, + "max_ms": 1.426 + }, + "hud": { + "median_ms": 0.33, + "p95_ms": 0.578, + "p99_ms": 0.678, + "max_ms": 0.744 + }, + "scene": { + "median_ms": 0.611, + "p95_ms": 1.931, + "p99_ms": 2.513, + "max_ms": 2.911 + }, + "canvas": { + "median_ms": 0.052, + "p95_ms": 0.093, + "p99_ms": 0.114, + "max_ms": 0.149 + }, + "present": { + "median_ms": 1.349, + "p95_ms": 1.888, + "p99_ms": 2.205, + "max_ms": 2.448 + } + }, + "rss_bytes": 544358400, + "renderer_caches": { + "unique_retained_surface_bytes": 195523488, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5038352, + "sky": 0, + "ground": 917504, + "watercolor": 119372440, + "plane_skin": 27015716, + "paper_items": 22241436 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 12, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 92793320, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 111258, + "get_misses": 12499, + "evictions": 11530, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "consumed_control": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 47.0, + "p99_ms": 47.0, + "max_ms": 47.0 + }, + "consume_to_canvas": { + "median_ms": 16.0, + "p95_ms": 62.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 47.0, + "p95_ms": 93.0, + "p99_ms": 110.0, + "max_ms": 125.0 + } + }, + "unique_sequences": 160, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 94.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 816, + "inferences": 816, + "published": 816, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 8312.000000005355, + "capture_fps": 28.06148767151755, + "inference_fps": 28.076936310778322, + "capture_interval_ms": 30.999999988125637, + "inference_interval_ms": 30.999999988125637, + "inference_ms": 16.00000000325963, + "result_age_ms": 32.00000000651926, + "last_result_age_ms": 32.00000000651926, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 2, + "inferences": 1, + "published": 1, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 8312.000000005355, + "capture_fps": 42.55319149716137, + "inference_fps": 32.25806452848529, + "capture_interval_ms": 31.999999991967343, + "inference_interval_ms": 15.999999988707714, + "inference_ms": 15.999999988707714, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 31.999999991967343, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 817, + "inferences": 817, + "published": 817, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 8312.000000005355, + "capture_fps": 27.548302255798674, + "inference_fps": 27.563172632512778, + "capture_interval_ms": 32.00000000651926, + "inference_interval_ms": 32.00000000651926, + "inference_ms": 14.999999999417923, + "result_age_ms": 577.9999999940628, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-1.json b/docs/validacao-v1.7/desempenho/cold-amazonia-1.json new file mode 100644 index 0000000..ea478cb --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-1.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 791.87, + "rss_before_bytes": 40976384, + "rss_after_bytes": 100573184, + "rss_delta_bytes": 59596800, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 11.771, + "p95_ms": 18.888, + "p99_ms": 22.571, + "max_ms": 22.571 + }, + "scene_setup_ms": 8.294, + "warmup": { + "median_ms": 10.481, + "p95_ms": 16.581, + "p99_ms": 33.755, + "max_ms": 33.755 + }, + "first_preparation_frame_ms": 86.402, + "first_interactive_frame_ms": 33.755, + "preparation_frames": 36, + "preparation_frame_cost": { + "median_ms": 8.804, + "p95_ms": 85.473, + "p99_ms": 86.402, + "max_ms": 86.402 + }, + "time_until_first_interactive_ms": 638.216, + "preparation_tasks": [ + [ + "Preparando paisagem", + 23.648099988349713 + ], + [ + "Preparando paisagem", + 24.87700000347104 + ], + [ + "Preparando paisagem", + 25.54410000448115 + ], + [ + "Preparando textura do percurso", + 78.4912999952212 + ], + [ + "Preparando margens", + 84.4991000049049 + ], + [ + "Preparando margens", + 0.8218000002671033 + ], + [ + "Preparando margens", + 0.8400000078836456 + ], + [ + "Preparando margens", + 0.6637000042246655 + ], + [ + "Preparando margens", + 0.6126000080257654 + ], + [ + "Preparando margens", + 0.6100000027799979 + ], + [ + "Preparando margens", + 0.5244000058155507 + ], + [ + "Preparando margens", + 0.5107999895699322 + ], + [ + "Preparando margens", + 0.7186000002548099 + ], + [ + "Preparando margens", + 0.8577999979024753 + ], + [ + "Preparando margens", + 0.7872999995015562 + ], + [ + "Preparando margens", + 0.9505999914836138 + ], + [ + "Preparando detalhes industriais", + 11.005399996065535 + ], + [ + "Preparando detalhes industriais", + 10.800499992910773 + ], + [ + "Preparando detalhes industriais", + 8.441700003459118 + ], + [ + "Preparando detalhes industriais", + 14.721400002599694 + ], + [ + "Preparando detalhes industriais", + 8.698700010427274 + ], + [ + "Suavizando textura do chão", + 1.7252999969059601 + ], + [ + "Suavizando textura do chão", + 0.8430000016232952 + ], + [ + "Suavizando textura do chão", + 0.4332999960752204 + ], + [ + "Suavizando textura do chão", + 0.22029998945072293 + ], + [ + "Suavizando textura do chão", + 0.08879999222699553 + ], + [ + "Suavizando textura do chão", + 0.04529999569058418 + ], + [ + "Suavizando textura do chão", + 1.9423999910941347 + ], + [ + "Suavizando textura do chão", + 0.8796999900368974 + ], + [ + "Suavizando textura do chão", + 0.41599999531172216 + ], + [ + "Suavizando textura do chão", + 0.2386999985901639 + ], + [ + "Suavizando textura do chão", + 0.12769999739248306 + ], + [ + "Suavizando textura do chão", + 0.09329999738838524 + ], + [ + "Suavizando textura do chão", + 1.7321000050287694 + ], + [ + "Suavizando textura do chão", + 1.3013999996474013 + ], + [ + "Suavizando textura do chão", + 0.49819999549072236 + ], + [ + "Suavizando textura do chão", + 0.24280000070575625 + ], + [ + "Suavizando textura do chão", + 0.12799999967683107 + ], + [ + "Suavizando textura do chão", + 0.05889999738428742 + ], + [ + "Alocando faixas do chão", + 0.3285999991931021 + ], + [ + "Alocando faixas do chão", + 0.2925000007962808 + ], + [ + "Alocando faixas do chão", + 0.34729999606497586 + ], + [ + "Alocando faixas do chão", + 0.3671000013127923 + ], + [ + "Alocando faixas do chão", + 0.43250000453554094 + ], + [ + "Alocando faixas do chão", + 0.49819999549072236 + ], + [ + "Alocando faixas do chão", + 0.5997999978717417 + ], + [ + "Alocando faixas do chão", + 0.7418000022880733 + ], + [ + "Alocando faixas do chão", + 0.39339999784715474 + ], + [ + "Alocando faixas do chão", + 0.17729999672155827 + ], + [ + "Alocando faixas do chão", + 0.20339999173302203 + ], + [ + "Alocando faixas do chão", + 0.2766999969026074 + ], + [ + "Alocando faixas do chão", + 0.33009999606292695 + ], + [ + "Alocando faixas do chão", + 0.37799999699927866 + ], + [ + "Alocando faixas do chão", + 0.48070000775624067 + ], + [ + "Alocando faixas do chão", + 0.4972999886376783 + ], + [ + "Alocando faixas do chão", + 0.6237000052351505 + ], + [ + "Alocando faixas do chão", + 0.41599999531172216 + ], + [ + "Alocando faixas do chão", + 0.3738999948836863 + ], + [ + "Alocando faixas do chão", + 0.2855000057024881 + ], + [ + "Alocando faixas do chão", + 0.4217000096105039 + ], + [ + "Alocando faixas do chão", + 0.5206000059843063 + ], + [ + "Alocando faixas do chão", + 0.6118999881437048 + ], + [ + "Alocando faixas do chão", + 0.48740000056568533 + ], + [ + "Alocando faixas do chão", + 0.5240000027697533 + ], + [ + "Alocando faixas do chão", + 0.6070999952498823 + ], + [ + "Alocando faixas do chão", + 0.44239999260753393 + ], + [ + "Preparando fauna", + 60.38490000355523 + ], + [ + "Carregando elementos regionais", + 7.696700005908497 + ], + [ + "Carregando elementos regionais", + 8.947900001658127 + ], + [ + "Carregando elementos regionais", + 8.338200001162477 + ], + [ + "Preparando obstáculos regionais", + 10.932299992418848 + ], + [ + "Preparando avião", + 21.736900001997128 + ], + [ + "Aplicando pintura", + 0.006200003554113209 + ], + [ + "Preparando piloto", + 21.0977999959141 + ], + [ + "Montando visual do voo", + 0.375300005543977 + ], + [ + "Preparando primeira vista", + 26.504199995542876 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.9333, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.072, + "p95_ms": 0.116, + "p99_ms": 1.23, + "max_ms": 1.23 + }, + "horizon": { + "median_ms": 1.185, + "p95_ms": 1.898, + "p99_ms": 2.114, + "max_ms": 2.114 + }, + "ground": { + "median_ms": 5.756, + "p95_ms": 7.995, + "p99_ms": 11.235, + "max_ms": 11.235 + }, + "route_and_banks": { + "median_ms": 8.176, + "p95_ms": 12.05, + "p99_ms": 17.024, + "max_ms": 17.024 + }, + "background": { + "median_ms": 9.277, + "p95_ms": 14.769, + "p99_ms": 17.453, + "max_ms": 17.453 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.493, + "p99_ms": 1.027, + "max_ms": 1.027 + }, + "entities_and_effects": { + "median_ms": 10.103, + "p95_ms": 15.65, + "p99_ms": 19.332, + "max_ms": 19.332 + }, + "world": { + "median_ms": 10.108, + "p95_ms": 15.657, + "p99_ms": 19.341, + "max_ms": 19.341 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.466, + "p99_ms": 0.649, + "max_ms": 0.649 + }, + "scene": { + "median_ms": 11.369, + "p95_ms": 18.292, + "p99_ms": 22.089, + "max_ms": 22.089 + }, + "canvas": { + "median_ms": 11.498, + "p95_ms": 18.472, + "p99_ms": 22.257, + "max_ms": 22.257 + }, + "present": { + "median_ms": 0.241, + "p95_ms": 0.407, + "p99_ms": 0.523, + "max_ms": 0.523 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.072, + "p95_ms": 0.116, + "p99_ms": 1.23, + "max_ms": 1.23 + }, + "horizon": { + "median_ms": 1.185, + "p95_ms": 1.898, + "p99_ms": 2.114, + "max_ms": 2.114 + }, + "ground": { + "median_ms": 5.756, + "p95_ms": 7.995, + "p99_ms": 11.235, + "max_ms": 11.235 + }, + "route_and_banks": { + "median_ms": 2.634, + "p95_ms": 4.419, + "p99_ms": 5.789, + "max_ms": 5.789 + }, + "background": { + "median_ms": 0.4, + "p95_ms": 0.607, + "p99_ms": 0.655, + "max_ms": 0.655 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.493, + "p99_ms": 1.027, + "max_ms": 1.027 + }, + "entities_and_effects": { + "median_ms": 0.689, + "p95_ms": 1.103, + "p99_ms": 1.21, + "max_ms": 1.21 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.009, + "max_ms": 0.009 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.466, + "p99_ms": 0.649, + "max_ms": 0.649 + }, + "scene": { + "median_ms": 1.029, + "p95_ms": 2.099, + "p99_ms": 2.3, + "max_ms": 2.3 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.062, + "p99_ms": 0.074, + "max_ms": 0.074 + }, + "present": { + "median_ms": 0.241, + "p95_ms": 0.407, + "p99_ms": 0.523, + "max_ms": 0.523 + } + }, + "rss_bytes": 253612032, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10192, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-10.json b/docs/validacao-v1.7/desempenho/cold-amazonia-10.json new file mode 100644 index 0000000..caceddb --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-10.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 743.29, + "rss_before_bytes": 41123840, + "rss_after_bytes": 100737024, + "rss_delta_bytes": 59613184, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 13.033, + "p95_ms": 18.173, + "p99_ms": 19.073, + "max_ms": 19.073 + }, + "scene_setup_ms": 11.616, + "warmup": { + "median_ms": 10.969, + "p95_ms": 15.207, + "p99_ms": 37.979, + "max_ms": 37.979 + }, + "first_preparation_frame_ms": 74.858, + "first_interactive_frame_ms": 37.979, + "preparation_frames": 31, + "preparation_frame_cost": { + "median_ms": 7.538, + "p95_ms": 66.183, + "p99_ms": 74.858, + "max_ms": 74.858 + }, + "time_until_first_interactive_ms": 534.991, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.37119999981951 + ], + [ + "Preparando paisagem", + 19.12579999770969 + ], + [ + "Preparando paisagem", + 19.70539998728782 + ], + [ + "Preparando textura do percurso", + 62.30879999930039 + ], + [ + "Preparando margens", + 65.55569999909494 + ], + [ + "Preparando margens", + 0.4766999918501824 + ], + [ + "Preparando margens", + 0.7516999903600663 + ], + [ + "Preparando margens", + 0.7794999983161688 + ], + [ + "Preparando margens", + 0.4569999873638153 + ], + [ + "Preparando margens", + 0.443600001744926 + ], + [ + "Preparando margens", + 0.34589999995660037 + ], + [ + "Preparando margens", + 0.34070000401698053 + ], + [ + "Preparando margens", + 0.43729999742936343 + ], + [ + "Preparando margens", + 0.407300001825206 + ], + [ + "Preparando margens", + 0.47509999421890825 + ], + [ + "Preparando margens", + 0.6831000064266846 + ], + [ + "Preparando detalhes industriais", + 5.991600002744235 + ], + [ + "Preparando detalhes industriais", + 8.222899996326305 + ], + [ + "Preparando detalhes industriais", + 4.971900008968078 + ], + [ + "Preparando detalhes industriais", + 8.114999989629723 + ], + [ + "Preparando detalhes industriais", + 5.577899995842017 + ], + [ + "Suavizando textura do chão", + 1.26530000125058 + ], + [ + "Suavizando textura do chão", + 0.8310999983223155 + ], + [ + "Suavizando textura do chão", + 0.38519999361597 + ], + [ + "Suavizando textura do chão", + 0.20249999943189323 + ], + [ + "Suavizando textura do chão", + 0.07179999374784529 + ], + [ + "Suavizando textura do chão", + 0.037900012102909386 + ], + [ + "Suavizando textura do chão", + 1.6102999943541363 + ], + [ + "Suavizando textura do chão", + 0.8010000019567087 + ], + [ + "Suavizando textura do chão", + 0.30929999775253236 + ], + [ + "Suavizando textura do chão", + 0.16830000095069408 + ], + [ + "Suavizando textura do chão", + 0.0830000062705949 + ], + [ + "Suavizando textura do chão", + 0.0501000031363219 + ], + [ + "Suavizando textura do chão", + 1.247400010470301 + ], + [ + "Suavizando textura do chão", + 0.5959000118309632 + ], + [ + "Suavizando textura do chão", + 0.31099999614525586 + ], + [ + "Suavizando textura do chão", + 0.15900000289548188 + ], + [ + "Suavizando textura do chão", + 0.0957000011112541 + ], + [ + "Suavizando textura do chão", + 0.04529999569058418 + ], + [ + "Alocando faixas do chão", + 0.24580000899732113 + ], + [ + "Alocando faixas do chão", + 0.23370000417344272 + ], + [ + "Alocando faixas do chão", + 0.34720000985544175 + ], + [ + "Alocando faixas do chão", + 0.4346000059740618 + ], + [ + "Alocando faixas do chão", + 0.49279999802820385 + ], + [ + "Alocando faixas do chão", + 0.5231999966781586 + ], + [ + "Alocando faixas do chão", + 0.4761000018334016 + ], + [ + "Alocando faixas do chão", + 0.4609000025084242 + ], + [ + "Alocando faixas do chão", + 0.32759999157860875 + ], + [ + "Alocando faixas do chão", + 0.13989998842589557 + ], + [ + "Alocando faixas do chão", + 0.14099999680183828 + ], + [ + "Alocando faixas do chão", + 0.20480000239331275 + ], + [ + "Alocando faixas do chão", + 0.2542000001994893 + ], + [ + "Alocando faixas do chão", + 0.32890000147745013 + ], + [ + "Alocando faixas do chão", + 0.37480000173673034 + ], + [ + "Alocando faixas do chão", + 0.67710000439547 + ], + [ + "Alocando faixas do chão", + 0.5873000045539811 + ], + [ + "Alocando faixas do chão", + 0.3951999970013276 + ], + [ + "Alocando faixas do chão", + 0.2195999986724928 + ], + [ + "Alocando faixas do chão", + 0.1914000022225082 + ], + [ + "Alocando faixas do chão", + 0.2506000018911436 + ], + [ + "Alocando faixas do chão", + 0.2783999952953309 + ], + [ + "Alocando faixas do chão", + 0.3505999920889735 + ], + [ + "Alocando faixas do chão", + 0.3642999945441261 + ], + [ + "Alocando faixas do chão", + 0.40380000427830964 + ], + [ + "Alocando faixas do chão", + 0.4721000004792586 + ], + [ + "Alocando faixas do chão", + 0.351999988197349 + ], + [ + "Preparando fauna", + 59.39480000233743 + ], + [ + "Carregando elementos regionais", + 7.951000006869435 + ], + [ + "Carregando elementos regionais", + 8.74659999681171 + ], + [ + "Carregando elementos regionais", + 6.841900001745671 + ], + [ + "Preparando obstáculos regionais", + 9.081600001081824 + ], + [ + "Preparando avião", + 16.726500005461276 + ], + [ + "Aplicando pintura", + 0.006699992809444666 + ], + [ + "Preparando piloto", + 22.388299999875017 + ], + [ + "Montando visual do voo", + 0.5204000044614077 + ], + [ + "Preparando primeira vista", + 25.739000004250556 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.8333, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.076, + "p95_ms": 0.12, + "p99_ms": 1.198, + "max_ms": 1.198 + }, + "horizon": { + "median_ms": 1.235, + "p95_ms": 2.08, + "p99_ms": 2.279, + "max_ms": 2.279 + }, + "ground": { + "median_ms": 5.887, + "p95_ms": 8.39, + "p99_ms": 8.544, + "max_ms": 8.544 + }, + "route_and_banks": { + "median_ms": 8.782, + "p95_ms": 12.852, + "p99_ms": 13.177, + "max_ms": 13.177 + }, + "background": { + "median_ms": 10.335, + "p95_ms": 15.094, + "p99_ms": 15.206, + "max_ms": 15.206 + }, + "plane": { + "median_ms": 0.122, + "p95_ms": 0.592, + "p99_ms": 0.913, + "max_ms": 0.913 + }, + "entities_and_effects": { + "median_ms": 11.17, + "p95_ms": 16.648, + "p99_ms": 16.898, + "max_ms": 16.898 + }, + "world": { + "median_ms": 11.175, + "p95_ms": 16.654, + "p99_ms": 16.905, + "max_ms": 16.905 + }, + "hud": { + "median_ms": 0.299, + "p95_ms": 0.428, + "p99_ms": 0.435, + "max_ms": 0.435 + }, + "scene": { + "median_ms": 12.576, + "p95_ms": 17.755, + "p99_ms": 18.675, + "max_ms": 18.675 + }, + "canvas": { + "median_ms": 12.793, + "p95_ms": 17.894, + "p99_ms": 18.816, + "max_ms": 18.816 + }, + "present": { + "median_ms": 0.245, + "p95_ms": 0.38, + "p99_ms": 0.445, + "max_ms": 0.445 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.076, + "p95_ms": 0.12, + "p99_ms": 1.198, + "max_ms": 1.198 + }, + "horizon": { + "median_ms": 1.235, + "p95_ms": 2.08, + "p99_ms": 2.279, + "max_ms": 2.279 + }, + "ground": { + "median_ms": 5.887, + "p95_ms": 8.39, + "p99_ms": 8.544, + "max_ms": 8.544 + }, + "route_and_banks": { + "median_ms": 2.937, + "p95_ms": 4.787, + "p99_ms": 5.249, + "max_ms": 5.249 + }, + "background": { + "median_ms": 0.413, + "p95_ms": 0.659, + "p99_ms": 0.718, + "max_ms": 0.718 + }, + "plane": { + "median_ms": 0.122, + "p95_ms": 0.592, + "p99_ms": 0.913, + "max_ms": 0.913 + }, + "entities_and_effects": { + "median_ms": 0.719, + "p95_ms": 1.018, + "p99_ms": 1.34, + "max_ms": 1.34 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.007, + "p99_ms": 0.007, + "max_ms": 0.007 + }, + "hud": { + "median_ms": 0.299, + "p95_ms": 0.428, + "p99_ms": 0.435, + "max_ms": 0.435 + }, + "scene": { + "median_ms": 1.091, + "p95_ms": 1.628, + "p99_ms": 1.697, + "max_ms": 1.697 + }, + "canvas": { + "median_ms": 0.033, + "p95_ms": 0.043, + "p99_ms": 0.058, + "max_ms": 0.058 + }, + "present": { + "median_ms": 0.245, + "p95_ms": 0.38, + "p99_ms": 0.445, + "max_ms": 0.445 + } + }, + "rss_bytes": 253681664, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10187, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-2.json b/docs/validacao-v1.7/desempenho/cold-amazonia-2.json new file mode 100644 index 0000000..020e27a --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-2.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 770.02, + "rss_before_bytes": 41123840, + "rss_after_bytes": 100839424, + "rss_delta_bytes": 59715584, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 13.31, + "p95_ms": 19.224, + "p99_ms": 20.594, + "max_ms": 20.594 + }, + "scene_setup_ms": 9.374, + "warmup": { + "median_ms": 12.629, + "p95_ms": 17.601, + "p99_ms": 47.519, + "max_ms": 47.519 + }, + "first_preparation_frame_ms": 91.756, + "first_interactive_frame_ms": 47.519, + "preparation_frames": 34, + "preparation_frame_cost": { + "median_ms": 9.059, + "p95_ms": 88.401, + "p99_ms": 91.756, + "max_ms": 91.756 + }, + "time_until_first_interactive_ms": 664.48, + "preparation_tasks": [ + [ + "Preparando paisagem", + 20.10080000036396 + ], + [ + "Preparando paisagem", + 27.98290000646375 + ], + [ + "Preparando paisagem", + 29.63040000759065 + ], + [ + "Preparando textura do percurso", + 77.12270000774879 + ], + [ + "Preparando margens", + 87.6433000084944 + ], + [ + "Preparando margens", + 0.7095999899320304 + ], + [ + "Preparando margens", + 0.5552000075113028 + ], + [ + "Preparando margens", + 0.5689000099664554 + ], + [ + "Preparando margens", + 0.556200000573881 + ], + [ + "Preparando margens", + 0.5980999994790182 + ], + [ + "Preparando margens", + 0.4774999979417771 + ], + [ + "Preparando margens", + 0.5085000011604279 + ], + [ + "Preparando margens", + 0.6428999913623556 + ], + [ + "Preparando margens", + 0.6231000006664544 + ], + [ + "Preparando margens", + 1.0070999996969476 + ], + [ + "Preparando margens", + 1.0488999978406355 + ], + [ + "Preparando detalhes industriais", + 7.884399994509295 + ], + [ + "Preparando detalhes industriais", + 8.997099997941405 + ], + [ + "Preparando detalhes industriais", + 7.271700000273995 + ], + [ + "Preparando detalhes industriais", + 11.134500004118308 + ], + [ + "Preparando detalhes industriais", + 8.569099998567253 + ], + [ + "Suavizando textura do chão", + 2.35580001026392 + ], + [ + "Suavizando textura do chão", + 1.6971000004559755 + ], + [ + "Suavizando textura do chão", + 0.5613999965135008 + ], + [ + "Suavizando textura do chão", + 0.295000005280599 + ], + [ + "Suavizando textura do chão", + 0.15220000932458788 + ], + [ + "Suavizando textura do chão", + 0.03809999907389283 + ], + [ + "Suavizando textura do chão", + 1.3924999948358163 + ], + [ + "Suavizando textura do chão", + 0.668499997118488 + ], + [ + "Suavizando textura do chão", + 0.42299999040551484 + ], + [ + "Suavizando textura do chão", + 0.18829999316949397 + ], + [ + "Suavizando textura do chão", + 0.10699999984353781 + ], + [ + "Suavizando textura do chão", + 0.1075999898603186 + ], + [ + "Suavizando textura do chão", + 1.5004000015323982 + ], + [ + "Suavizando textura do chão", + 0.7368999940808862 + ], + [ + "Suavizando textura do chão", + 0.40809999336488545 + ], + [ + "Suavizando textura do chão", + 0.21159999596420676 + ], + [ + "Suavizando textura do chão", + 0.14570000348612666 + ], + [ + "Suavizando textura do chão", + 0.05220000457484275 + ], + [ + "Alocando faixas do chão", + 0.2564000023994595 + ], + [ + "Alocando faixas do chão", + 0.24399999529123306 + ], + [ + "Alocando faixas do chão", + 0.301499996567145 + ], + [ + "Alocando faixas do chão", + 0.5889000021852553 + ], + [ + "Alocando faixas do chão", + 0.7317999989027157 + ], + [ + "Alocando faixas do chão", + 0.6281999958446249 + ], + [ + "Alocando faixas do chão", + 0.6111999973654747 + ], + [ + "Alocando faixas do chão", + 0.4709999921033159 + ], + [ + "Alocando faixas do chão", + 0.3096000000368804 + ], + [ + "Alocando faixas do chão", + 0.13870000839233398 + ], + [ + "Alocando faixas do chão", + 0.14189998910296708 + ], + [ + "Alocando faixas do chão", + 0.1964999974006787 + ], + [ + "Alocando faixas do chão", + 0.2666000073077157 + ], + [ + "Alocando faixas do chão", + 0.2914000069722533 + ], + [ + "Alocando faixas do chão", + 0.3515999997034669 + ], + [ + "Alocando faixas do chão", + 0.49419999413657933 + ], + [ + "Alocando faixas do chão", + 0.483600000734441 + ], + [ + "Alocando faixas do chão", + 0.3453999961493537 + ], + [ + "Alocando faixas do chão", + 0.23009999131318182 + ], + [ + "Alocando faixas do chão", + 0.1571000029798597 + ], + [ + "Alocando faixas do chão", + 0.1855999871622771 + ], + [ + "Alocando faixas do chão", + 0.28569999267347157 + ], + [ + "Alocando faixas do chão", + 0.33059999987017363 + ], + [ + "Alocando faixas do chão", + 0.36049999471288174 + ], + [ + "Alocando faixas do chão", + 0.43960000039078295 + ], + [ + "Alocando faixas do chão", + 0.49920000310521573 + ], + [ + "Alocando faixas do chão", + 0.35230000503361225 + ], + [ + "Preparando fauna", + 59.631500000250526 + ], + [ + "Carregando elementos regionais", + 10.034399994765408 + ], + [ + "Carregando elementos regionais", + 10.849600002984516 + ], + [ + "Carregando elementos regionais", + 11.047899999539368 + ], + [ + "Preparando obstáculos regionais", + 13.286500005051494 + ], + [ + "Preparando avião", + 20.601099997293204 + ], + [ + "Aplicando pintura", + 0.00689999433234334 + ], + [ + "Preparando piloto", + 24.40920000663027 + ], + [ + "Montando visual do voo", + 0.509400008013472 + ], + [ + "Preparando primeira vista", + 31.24759999627713 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.8, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.081, + "p95_ms": 0.179, + "p99_ms": 1.014, + "max_ms": 1.014 + }, + "horizon": { + "median_ms": 1.282, + "p95_ms": 2.067, + "p99_ms": 2.125, + "max_ms": 2.125 + }, + "ground": { + "median_ms": 5.892, + "p95_ms": 8.966, + "p99_ms": 10.402, + "max_ms": 10.402 + }, + "route_and_banks": { + "median_ms": 8.821, + "p95_ms": 14.139, + "p99_ms": 15.485, + "max_ms": 15.485 + }, + "background": { + "median_ms": 10.026, + "p95_ms": 16.078, + "p99_ms": 16.176, + "max_ms": 16.176 + }, + "plane": { + "median_ms": 0.118, + "p95_ms": 0.523, + "p99_ms": 0.875, + "max_ms": 0.875 + }, + "entities_and_effects": { + "median_ms": 11.033, + "p95_ms": 16.827, + "p99_ms": 17.907, + "max_ms": 17.907 + }, + "world": { + "median_ms": 11.038, + "p95_ms": 16.833, + "p99_ms": 17.915, + "max_ms": 17.915 + }, + "hud": { + "median_ms": 0.291, + "p95_ms": 0.435, + "p99_ms": 0.44, + "max_ms": 0.44 + }, + "scene": { + "median_ms": 12.496, + "p95_ms": 18.613, + "p99_ms": 19.972, + "max_ms": 19.972 + }, + "canvas": { + "median_ms": 13.05, + "p95_ms": 18.86, + "p99_ms": 20.144, + "max_ms": 20.144 + }, + "present": { + "median_ms": 0.293, + "p95_ms": 0.439, + "p99_ms": 0.603, + "max_ms": 0.603 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.081, + "p95_ms": 0.179, + "p99_ms": 1.014, + "max_ms": 1.014 + }, + "horizon": { + "median_ms": 1.282, + "p95_ms": 2.067, + "p99_ms": 2.125, + "max_ms": 2.125 + }, + "ground": { + "median_ms": 5.892, + "p95_ms": 8.966, + "p99_ms": 10.402, + "max_ms": 10.402 + }, + "route_and_banks": { + "median_ms": 2.916, + "p95_ms": 5.438, + "p99_ms": 5.491, + "max_ms": 5.491 + }, + "background": { + "median_ms": 0.454, + "p95_ms": 0.735, + "p99_ms": 0.746, + "max_ms": 0.746 + }, + "plane": { + "median_ms": 0.118, + "p95_ms": 0.523, + "p99_ms": 0.875, + "max_ms": 0.875 + }, + "entities_and_effects": { + "median_ms": 0.694, + "p95_ms": 1.325, + "p99_ms": 1.564, + "max_ms": 1.564 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.012, + "p99_ms": 0.058, + "max_ms": 0.058 + }, + "hud": { + "median_ms": 0.291, + "p95_ms": 0.435, + "p99_ms": 0.44, + "max_ms": 0.44 + }, + "scene": { + "median_ms": 1.161, + "p95_ms": 1.8, + "p99_ms": 2.372, + "max_ms": 2.372 + }, + "canvas": { + "median_ms": 0.036, + "p95_ms": 0.066, + "p99_ms": 0.075, + "max_ms": 0.075 + }, + "present": { + "median_ms": 0.293, + "p95_ms": 0.439, + "p99_ms": 0.603, + "max_ms": 0.603 + } + }, + "rss_bytes": 253894656, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10190, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-3.json b/docs/validacao-v1.7/desempenho/cold-amazonia-3.json new file mode 100644 index 0000000..b51775d --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-3.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 726.03, + "rss_before_bytes": 40964096, + "rss_after_bytes": 100540416, + "rss_delta_bytes": 59576320, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 13.184, + "p95_ms": 18.942, + "p99_ms": 20.258, + "max_ms": 20.258 + }, + "scene_setup_ms": 6.192, + "warmup": { + "median_ms": 10.718, + "p95_ms": 15.999, + "p99_ms": 48.601, + "max_ms": 48.601 + }, + "first_preparation_frame_ms": 56.849, + "first_interactive_frame_ms": 48.601, + "preparation_frames": 31, + "preparation_frame_cost": { + "median_ms": 7.286, + "p95_ms": 74.086, + "p99_ms": 75.536, + "max_ms": 75.536 + }, + "time_until_first_interactive_ms": 564.425, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.23690001037903 + ], + [ + "Preparando paisagem", + 19.181900002877228 + ], + [ + "Preparando paisagem", + 19.85890000651125 + ], + [ + "Preparando textura do percurso", + 58.41850000433624 + ], + [ + "Preparando margens", + 73.37579999875743 + ], + [ + "Preparando margens", + 0.5390000005718321 + ], + [ + "Preparando margens", + 0.4219999973429367 + ], + [ + "Preparando margens", + 0.4636000085156411 + ], + [ + "Preparando margens", + 0.4361999890534207 + ], + [ + "Preparando margens", + 0.4817000008188188 + ], + [ + "Preparando margens", + 0.3895999980159104 + ], + [ + "Preparando margens", + 0.4010999982710928 + ], + [ + "Preparando margens", + 0.5219000013312325 + ], + [ + "Preparando margens", + 0.5977999971946701 + ], + [ + "Preparando margens", + 0.6100000027799979 + ], + [ + "Preparando margens", + 0.7951000006869435 + ], + [ + "Preparando detalhes industriais", + 6.21089999913238 + ], + [ + "Preparando detalhes industriais", + 7.071100000757724 + ], + [ + "Preparando detalhes industriais", + 5.881700009922497 + ], + [ + "Preparando detalhes industriais", + 8.409000001847744 + ], + [ + "Preparando detalhes industriais", + 6.424799998058006 + ], + [ + "Suavizando textura do chão", + 1.2682999949902296 + ], + [ + "Suavizando textura do chão", + 0.7989000005181879 + ], + [ + "Suavizando textura do chão", + 0.3403000009711832 + ], + [ + "Suavizando textura do chão", + 0.16390001110266894 + ], + [ + "Suavizando textura do chão", + 0.06289999873843044 + ], + [ + "Suavizando textura do chão", + 0.03229999856557697 + ], + [ + "Suavizando textura do chão", + 1.2387000024318695 + ], + [ + "Suavizando textura do chão", + 0.6086999928811565 + ], + [ + "Suavizando textura do chão", + 0.301199994282797 + ], + [ + "Suavizando textura do chão", + 0.16290000348817557 + ], + [ + "Suavizando textura do chão", + 0.08080000407062471 + ], + [ + "Suavizando textura do chão", + 0.05289999535307288 + ], + [ + "Suavizando textura do chão", + 1.229399989824742 + ], + [ + "Suavizando textura do chão", + 0.8636999991722405 + ], + [ + "Suavizando textura do chão", + 0.41399999463465065 + ], + [ + "Suavizando textura do chão", + 0.21320000814739615 + ], + [ + "Suavizando textura do chão", + 0.09899999713525176 + ], + [ + "Suavizando textura do chão", + 0.11750000703614205 + ], + [ + "Alocando faixas do chão", + 0.4315000114729628 + ], + [ + "Alocando faixas do chão", + 0.298099999781698 + ], + [ + "Alocando faixas do chão", + 0.29170000925660133 + ], + [ + "Alocando faixas do chão", + 0.28389999351929873 + ], + [ + "Alocando faixas do chão", + 0.3541999903973192 + ], + [ + "Alocando faixas do chão", + 0.4186000005574897 + ], + [ + "Alocando faixas do chão", + 0.480500006233342 + ], + [ + "Alocando faixas do chão", + 0.48689999675843865 + ], + [ + "Alocando faixas do chão", + 0.3193000011378899 + ], + [ + "Alocando faixas do chão", + 0.14930000179447234 + ], + [ + "Alocando faixas do chão", + 0.1584999990882352 + ], + [ + "Alocando faixas do chão", + 0.22310001077130437 + ], + [ + "Alocando faixas do chão", + 0.27829999453388155 + ], + [ + "Alocando faixas do chão", + 0.3302999975858256 + ], + [ + "Alocando faixas do chão", + 0.4377000004751608 + ], + [ + "Alocando faixas do chão", + 0.8259999885922298 + ], + [ + "Alocando faixas do chão", + 0.44070000876672566 + ], + [ + "Alocando faixas do chão", + 0.2928999892901629 + ], + [ + "Alocando faixas do chão", + 0.17010000010486692 + ], + [ + "Alocando faixas do chão", + 0.14479999663308263 + ], + [ + "Alocando faixas do chão", + 0.1832999987527728 + ], + [ + "Alocando faixas do chão", + 0.2671999973244965 + ], + [ + "Alocando faixas do chão", + 0.3215000033378601 + ], + [ + "Alocando faixas do chão", + 0.35820000630337745 + ], + [ + "Alocando faixas do chão", + 0.40609999268781394 + ], + [ + "Alocando faixas do chão", + 0.49649999709799886 + ], + [ + "Alocando faixas do chão", + 0.32130000181496143 + ], + [ + "Preparando fauna", + 74.02929999807384 + ], + [ + "Carregando elementos regionais", + 6.677400000626221 + ], + [ + "Carregando elementos regionais", + 7.474799989722669 + ], + [ + "Carregando elementos regionais", + 6.941600004211068 + ], + [ + "Preparando obstáculos regionais", + 14.853300002869219 + ], + [ + "Preparando avião", + 16.3167999999132 + ], + [ + "Aplicando pintura", + 0.005299996701069176 + ], + [ + "Preparando piloto", + 30.394100002013147 + ], + [ + "Montando visual do voo", + 0.46719999227207154 + ], + [ + "Preparando primeira vista", + 34.52119999565184 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.9, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.079, + "p95_ms": 0.145, + "p99_ms": 1.794, + "max_ms": 1.794 + }, + "horizon": { + "median_ms": 1.399, + "p95_ms": 1.658, + "p99_ms": 1.662, + "max_ms": 1.662 + }, + "ground": { + "median_ms": 6.101, + "p95_ms": 8.069, + "p99_ms": 10.548, + "max_ms": 10.548 + }, + "route_and_banks": { + "median_ms": 8.934, + "p95_ms": 12.72, + "p99_ms": 16.427, + "max_ms": 16.427 + }, + "background": { + "median_ms": 10.36, + "p95_ms": 14.492, + "p99_ms": 16.949, + "max_ms": 16.949 + }, + "plane": { + "median_ms": 0.123, + "p95_ms": 0.538, + "p99_ms": 0.585, + "max_ms": 0.585 + }, + "entities_and_effects": { + "median_ms": 11.205, + "p95_ms": 16.082, + "p99_ms": 18.195, + "max_ms": 18.195 + }, + "world": { + "median_ms": 11.21, + "p95_ms": 16.09, + "p99_ms": 18.203, + "max_ms": 18.203 + }, + "hud": { + "median_ms": 0.31, + "p95_ms": 0.404, + "p99_ms": 0.486, + "max_ms": 0.486 + }, + "scene": { + "median_ms": 12.802, + "p95_ms": 18.434, + "p99_ms": 19.77, + "max_ms": 19.77 + }, + "canvas": { + "median_ms": 12.93, + "p95_ms": 18.558, + "p99_ms": 19.969, + "max_ms": 19.969 + }, + "present": { + "median_ms": 0.27, + "p95_ms": 0.426, + "p99_ms": 0.45, + "max_ms": 0.45 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.079, + "p95_ms": 0.145, + "p99_ms": 1.794, + "max_ms": 1.794 + }, + "horizon": { + "median_ms": 1.399, + "p95_ms": 1.658, + "p99_ms": 1.662, + "max_ms": 1.662 + }, + "ground": { + "median_ms": 6.101, + "p95_ms": 8.069, + "p99_ms": 10.548, + "max_ms": 10.548 + }, + "route_and_banks": { + "median_ms": 2.901, + "p95_ms": 5.336, + "p99_ms": 5.88, + "max_ms": 5.88 + }, + "background": { + "median_ms": 0.38, + "p95_ms": 0.533, + "p99_ms": 0.553, + "max_ms": 0.553 + }, + "plane": { + "median_ms": 0.123, + "p95_ms": 0.538, + "p99_ms": 0.585, + "max_ms": 0.585 + }, + "entities_and_effects": { + "median_ms": 0.72, + "p95_ms": 1.423, + "p99_ms": 1.43, + "max_ms": 1.43 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.009, + "p99_ms": 0.01, + "max_ms": 0.01 + }, + "hud": { + "median_ms": 0.31, + "p95_ms": 0.404, + "p99_ms": 0.486, + "max_ms": 0.486 + }, + "scene": { + "median_ms": 1.18, + "p95_ms": 1.666, + "p99_ms": 1.919, + "max_ms": 1.919 + }, + "canvas": { + "median_ms": 0.035, + "p95_ms": 0.054, + "p99_ms": 0.072, + "max_ms": 0.072 + }, + "present": { + "median_ms": 0.27, + "p95_ms": 0.426, + "p99_ms": 0.45, + "max_ms": 0.45 + } + }, + "rss_bytes": 253710336, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10187, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-4.json b/docs/validacao-v1.7/desempenho/cold-amazonia-4.json new file mode 100644 index 0000000..1cf8061 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-4.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 810.22, + "rss_before_bytes": 41103360, + "rss_after_bytes": 100749312, + "rss_delta_bytes": 59645952, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 13.564, + "p95_ms": 18.879, + "p99_ms": 19.346, + "max_ms": 19.346 + }, + "scene_setup_ms": 6.452, + "warmup": { + "median_ms": 11.013, + "p95_ms": 19.111, + "p99_ms": 31.854, + "max_ms": 31.854 + }, + "first_preparation_frame_ms": 58.252, + "first_interactive_frame_ms": 31.854, + "preparation_frames": 31, + "preparation_frame_cost": { + "median_ms": 7.807, + "p95_ms": 68.348, + "p99_ms": 77.64, + "max_ms": 77.64 + }, + "time_until_first_interactive_ms": 520.918, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.40029999241233 + ], + [ + "Preparando paisagem", + 26.319600001443177 + ], + [ + "Preparando paisagem", + 22.211999996216036 + ], + [ + "Preparando textura do percurso", + 67.33230000827461 + ], + [ + "Preparando margens", + 76.62449999770615 + ], + [ + "Preparando margens", + 0.5498999962583184 + ], + [ + "Preparando margens", + 0.5704999930458143 + ], + [ + "Preparando margens", + 0.48410000454168767 + ], + [ + "Preparando margens", + 0.5018999945605174 + ], + [ + "Preparando margens", + 0.5942999996477738 + ], + [ + "Preparando margens", + 0.640199999907054 + ], + [ + "Preparando margens", + 0.5214999982854351 + ], + [ + "Preparando margens", + 0.5766999965999275 + ], + [ + "Preparando margens", + 0.5482999986270443 + ], + [ + "Preparando margens", + 0.6549999961862341 + ], + [ + "Preparando margens", + 0.8673999982420355 + ], + [ + "Preparando detalhes industriais", + 8.593000005930662 + ], + [ + "Preparando detalhes industriais", + 8.053400000790134 + ], + [ + "Preparando detalhes industriais", + 5.58409999939613 + ], + [ + "Preparando detalhes industriais", + 7.207399990875274 + ], + [ + "Preparando detalhes industriais", + 6.106699991505593 + ], + [ + "Suavizando textura do chão", + 1.2795999937225133 + ], + [ + "Suavizando textura do chão", + 0.6127999949967489 + ], + [ + "Suavizando textura do chão", + 0.3183999942848459 + ], + [ + "Suavizando textura do chão", + 0.16429999959655106 + ], + [ + "Suavizando textura do chão", + 0.06289999873843044 + ], + [ + "Suavizando textura do chão", + 0.033200005418621004 + ], + [ + "Suavizando textura do chão", + 1.852000001235865 + ], + [ + "Suavizando textura do chão", + 0.6847000040579587 + ], + [ + "Suavizando textura do chão", + 0.3136000013910234 + ], + [ + "Suavizando textura do chão", + 0.15900000289548188 + ], + [ + "Suavizando textura do chão", + 0.08719999459572136 + ], + [ + "Suavizando textura do chão", + 0.049700000090524554 + ], + [ + "Suavizando textura do chão", + 1.3499999913619831 + ], + [ + "Suavizando textura do chão", + 0.6193000008352101 + ], + [ + "Suavizando textura do chão", + 0.302400003420189 + ], + [ + "Suavizando textura do chão", + 0.15900000289548188 + ], + [ + "Suavizando textura do chão", + 0.09410000347997993 + ], + [ + "Suavizando textura do chão", + 0.04630000330507755 + ], + [ + "Alocando faixas do chão", + 0.29769999673590064 + ], + [ + "Alocando faixas do chão", + 0.2518999972380698 + ], + [ + "Alocando faixas do chão", + 0.25070000265259296 + ], + [ + "Alocando faixas do chão", + 0.2806999982567504 + ], + [ + "Alocando faixas do chão", + 0.31119999766815454 + ], + [ + "Alocando faixas do chão", + 0.36139998701401055 + ], + [ + "Alocando faixas do chão", + 0.4413999995449558 + ], + [ + "Alocando faixas do chão", + 0.45599999430123717 + ], + [ + "Alocando faixas do chão", + 0.29090000316500664 + ], + [ + "Alocando faixas do chão", + 0.1387999946018681 + ], + [ + "Alocando faixas do chão", + 0.14730000111740083 + ], + [ + "Alocando faixas do chão", + 0.21569999807979912 + ], + [ + "Alocando faixas do chão", + 0.27689999842550606 + ], + [ + "Alocando faixas do chão", + 0.32330000249203295 + ], + [ + "Alocando faixas do chão", + 0.37799999699927866 + ], + [ + "Alocando faixas do chão", + 0.47030000132508576 + ], + [ + "Alocando faixas do chão", + 0.7070000137900934 + ], + [ + "Alocando faixas do chão", + 0.3708000003825873 + ], + [ + "Alocando faixas do chão", + 0.17640000442042947 + ], + [ + "Alocando faixas do chão", + 0.15449999773409218 + ], + [ + "Alocando faixas do chão", + 0.18790000467561185 + ], + [ + "Alocando faixas do chão", + 0.26420000358484685 + ], + [ + "Alocando faixas do chão", + 0.32970000756904483 + ], + [ + "Alocando faixas do chão", + 0.37710000469814986 + ], + [ + "Alocando faixas do chão", + 0.4175000067334622 + ], + [ + "Alocando faixas do chão", + 0.45620001037605107 + ], + [ + "Alocando faixas do chão", + 0.43820000428240746 + ], + [ + "Preparando fauna", + 51.687099999981 + ], + [ + "Carregando elementos regionais", + 7.166100011090748 + ], + [ + "Carregando elementos regionais", + 8.564200004911982 + ], + [ + "Carregando elementos regionais", + 6.729800006723963 + ], + [ + "Preparando obstáculos regionais", + 7.810700000845827 + ], + [ + "Preparando avião", + 15.096599992830306 + ], + [ + "Aplicando pintura", + 0.006000002031214535 + ], + [ + "Preparando piloto", + 19.16999999957625 + ], + [ + "Montando visual do voo", + 0.37850000080652535 + ], + [ + "Preparando primeira vista", + 19.537399988621473 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.8, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.082, + "p95_ms": 0.123, + "p99_ms": 1.629, + "max_ms": 1.629 + }, + "horizon": { + "median_ms": 1.443, + "p95_ms": 2.568, + "p99_ms": 2.574, + "max_ms": 2.574 + }, + "ground": { + "median_ms": 6.212, + "p95_ms": 9.798, + "p99_ms": 10.037, + "max_ms": 10.037 + }, + "route_and_banks": { + "median_ms": 9.186, + "p95_ms": 13.082, + "p99_ms": 13.507, + "max_ms": 13.507 + }, + "background": { + "median_ms": 10.633, + "p95_ms": 15.44, + "p99_ms": 16.287, + "max_ms": 16.287 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.46, + "p99_ms": 0.638, + "max_ms": 0.638 + }, + "entities_and_effects": { + "median_ms": 11.569, + "p95_ms": 16.272, + "p99_ms": 17.335, + "max_ms": 17.335 + }, + "world": { + "median_ms": 11.575, + "p95_ms": 16.28, + "p99_ms": 17.341, + "max_ms": 17.341 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.504, + "p99_ms": 0.755, + "max_ms": 0.755 + }, + "scene": { + "median_ms": 13.158, + "p95_ms": 18.377, + "p99_ms": 18.981, + "max_ms": 18.981 + }, + "canvas": { + "median_ms": 13.29, + "p95_ms": 18.508, + "p99_ms": 19.097, + "max_ms": 19.097 + }, + "present": { + "median_ms": 0.3, + "p95_ms": 0.553, + "p99_ms": 0.63, + "max_ms": 0.63 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.003, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.082, + "p95_ms": 0.123, + "p99_ms": 1.629, + "max_ms": 1.629 + }, + "horizon": { + "median_ms": 1.443, + "p95_ms": 2.568, + "p99_ms": 2.574, + "max_ms": 2.574 + }, + "ground": { + "median_ms": 6.212, + "p95_ms": 9.798, + "p99_ms": 10.037, + "max_ms": 10.037 + }, + "route_and_banks": { + "median_ms": 2.932, + "p95_ms": 4.23, + "p99_ms": 4.758, + "max_ms": 4.758 + }, + "background": { + "median_ms": 0.453, + "p95_ms": 0.903, + "p99_ms": 0.941, + "max_ms": 0.941 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.46, + "p99_ms": 0.638, + "max_ms": 0.638 + }, + "entities_and_effects": { + "median_ms": 0.725, + "p95_ms": 1.645, + "p99_ms": 1.784, + "max_ms": 1.784 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.008, + "p99_ms": 0.008, + "max_ms": 0.008 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.504, + "p99_ms": 0.755, + "max_ms": 0.755 + }, + "scene": { + "median_ms": 1.107, + "p95_ms": 1.994, + "p99_ms": 2.089, + "max_ms": 2.089 + }, + "canvas": { + "median_ms": 0.036, + "p95_ms": 0.066, + "p99_ms": 0.071, + "max_ms": 0.071 + }, + "present": { + "median_ms": 0.3, + "p95_ms": 0.553, + "p99_ms": 0.63, + "max_ms": 0.63 + } + }, + "rss_bytes": 254001152, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10187, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-5.json b/docs/validacao-v1.7/desempenho/cold-amazonia-5.json new file mode 100644 index 0000000..30019f6 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-5.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 712.88, + "rss_before_bytes": 41123840, + "rss_after_bytes": 100720640, + "rss_delta_bytes": 59596800, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 11.96, + "p95_ms": 16.297, + "p99_ms": 17.452, + "max_ms": 17.452 + }, + "scene_setup_ms": 6.923, + "warmup": { + "median_ms": 10.242, + "p95_ms": 16.778, + "p99_ms": 37.147, + "max_ms": 37.147 + }, + "first_preparation_frame_ms": 69.146, + "first_interactive_frame_ms": 37.147, + "preparation_frames": 35, + "preparation_frame_cost": { + "median_ms": 7.025, + "p95_ms": 64.388, + "p99_ms": 69.146, + "max_ms": 69.146 + }, + "time_until_first_interactive_ms": 522.378, + "preparation_tasks": [ + [ + "Preparando paisagem", + 23.293899997952394 + ], + [ + "Preparando paisagem", + 22.967299999436364 + ], + [ + "Preparando paisagem", + 18.21870000276249 + ], + [ + "Preparando textura do percurso", + 54.76050000288524 + ], + [ + "Preparando margens", + 63.77269999939017 + ], + [ + "Preparando margens", + 0.7481000066036358 + ], + [ + "Preparando margens", + 0.7665000011911616 + ], + [ + "Preparando margens", + 0.6501000025309622 + ], + [ + "Preparando margens", + 0.6004000024404377 + ], + [ + "Preparando margens", + 0.6871000077808276 + ], + [ + "Preparando margens", + 0.6056999991415069 + ], + [ + "Preparando margens", + 0.48180000158026814 + ], + [ + "Preparando margens", + 0.674000009894371 + ], + [ + "Preparando margens", + 0.8514000073773786 + ], + [ + "Preparando margens", + 1.0318999993614852 + ], + [ + "Preparando margens", + 0.7387000077869743 + ], + [ + "Preparando detalhes industriais", + 5.955799992079847 + ], + [ + "Preparando detalhes industriais", + 6.425300001865253 + ], + [ + "Preparando detalhes industriais", + 5.324199999449775 + ], + [ + "Preparando detalhes industriais", + 7.381100003840402 + ], + [ + "Preparando detalhes industriais", + 7.934500012197532 + ], + [ + "Suavizando textura do chão", + 2.231699996627867 + ], + [ + "Suavizando textura do chão", + 1.0731999936979264 + ], + [ + "Suavizando textura do chão", + 0.5359999922802672 + ], + [ + "Suavizando textura do chão", + 0.19780000729952008 + ], + [ + "Suavizando textura do chão", + 0.07010000990703702 + ], + [ + "Suavizando textura do chão", + 0.03679998917505145 + ], + [ + "Suavizando textura do chão", + 1.3704000011784956 + ], + [ + "Suavizando textura do chão", + 1.0252999927615747 + ], + [ + "Suavizando textura do chão", + 0.6037999992258847 + ], + [ + "Suavizando textura do chão", + 0.3209999995306134 + ], + [ + "Suavizando textura do chão", + 0.1351000100839883 + ], + [ + "Suavizando textura do chão", + 0.0805000017862767 + ], + [ + "Suavizando textura do chão", + 1.384699993650429 + ], + [ + "Suavizando textura do chão", + 0.8098999969661236 + ], + [ + "Suavizando textura do chão", + 0.41730000521056354 + ], + [ + "Suavizando textura do chão", + 0.17010000010486692 + ], + [ + "Suavizando textura do chão", + 0.0985000078799203 + ], + [ + "Suavizando textura do chão", + 0.05040000542066991 + ], + [ + "Alocando faixas do chão", + 0.28369999199640006 + ], + [ + "Alocando faixas do chão", + 0.41120000241789967 + ], + [ + "Alocando faixas do chão", + 0.3473000106168911 + ], + [ + "Alocando faixas do chão", + 0.4017000028397888 + ], + [ + "Alocando faixas do chão", + 0.34020000020973384 + ], + [ + "Alocando faixas do chão", + 0.4084999964106828 + ], + [ + "Alocando faixas do chão", + 0.4619000101229176 + ], + [ + "Alocando faixas do chão", + 0.5903999990550801 + ], + [ + "Alocando faixas do chão", + 0.40219999209512025 + ], + [ + "Alocando faixas do chão", + 0.145500001963228 + ], + [ + "Alocando faixas do chão", + 0.14679999731015414 + ], + [ + "Alocando faixas do chão", + 0.2010000025620684 + ], + [ + "Alocando faixas do chão", + 0.2682000049389899 + ], + [ + "Alocando faixas do chão", + 0.30610000248998404 + ], + [ + "Alocando faixas do chão", + 0.3648999991128221 + ], + [ + "Alocando faixas do chão", + 0.6030000076862052 + ], + [ + "Alocando faixas do chão", + 0.5194999976083636 + ], + [ + "Alocando faixas do chão", + 0.5328999977791682 + ], + [ + "Alocando faixas do chão", + 0.29260000155773014 + ], + [ + "Alocando faixas do chão", + 0.24750000739004463 + ], + [ + "Alocando faixas do chão", + 0.31430000672116876 + ], + [ + "Alocando faixas do chão", + 0.4095999902347103 + ], + [ + "Alocando faixas do chão", + 0.5339000053936616 + ], + [ + "Alocando faixas do chão", + 0.6009999924572185 + ], + [ + "Alocando faixas do chão", + 0.7110999868018553 + ], + [ + "Alocando faixas do chão", + 0.7953000022098422 + ], + [ + "Alocando faixas do chão", + 0.4937000048812479 + ], + [ + "Preparando fauna", + 54.800999991130084 + ], + [ + "Carregando elementos regionais", + 6.787200007238425 + ], + [ + "Carregando elementos regionais", + 7.648599988897331 + ], + [ + "Carregando elementos regionais", + 7.217400008812547 + ], + [ + "Preparando obstáculos regionais", + 8.155799994710833 + ], + [ + "Preparando avião", + 16.18900000175927 + ], + [ + "Aplicando pintura", + 0.005399997462518513 + ], + [ + "Preparando piloto", + 20.0433999998495 + ], + [ + "Montando visual do voo", + 0.38610000046901405 + ], + [ + "Preparando primeira vista", + 22.7005999913672 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.9667, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.074, + "p95_ms": 0.116, + "p99_ms": 1.02, + "max_ms": 1.02 + }, + "horizon": { + "median_ms": 1.215, + "p95_ms": 1.863, + "p99_ms": 1.918, + "max_ms": 1.918 + }, + "ground": { + "median_ms": 5.32, + "p95_ms": 7.876, + "p99_ms": 8.544, + "max_ms": 8.544 + }, + "route_and_banks": { + "median_ms": 7.782, + "p95_ms": 11.93, + "p99_ms": 12.217, + "max_ms": 12.217 + }, + "background": { + "median_ms": 9.45, + "p95_ms": 12.929, + "p99_ms": 14.193, + "max_ms": 14.193 + }, + "plane": { + "median_ms": 0.111, + "p95_ms": 0.464, + "p99_ms": 0.706, + "max_ms": 0.706 + }, + "entities_and_effects": { + "median_ms": 10.213, + "p95_ms": 13.83, + "p99_ms": 15.184, + "max_ms": 15.184 + }, + "world": { + "median_ms": 10.219, + "p95_ms": 13.836, + "p99_ms": 15.192, + "max_ms": 15.192 + }, + "hud": { + "median_ms": 0.283, + "p95_ms": 0.431, + "p99_ms": 0.433, + "max_ms": 0.433 + }, + "scene": { + "median_ms": 11.541, + "p95_ms": 15.874, + "p99_ms": 17.02, + "max_ms": 17.02 + }, + "canvas": { + "median_ms": 11.718, + "p95_ms": 16.022, + "p99_ms": 17.181, + "max_ms": 17.181 + }, + "present": { + "median_ms": 0.252, + "p95_ms": 0.309, + "p99_ms": 0.339, + "max_ms": 0.339 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.074, + "p95_ms": 0.116, + "p99_ms": 1.02, + "max_ms": 1.02 + }, + "horizon": { + "median_ms": 1.215, + "p95_ms": 1.863, + "p99_ms": 1.918, + "max_ms": 1.918 + }, + "ground": { + "median_ms": 5.32, + "p95_ms": 7.876, + "p99_ms": 8.544, + "max_ms": 8.544 + }, + "route_and_banks": { + "median_ms": 2.534, + "p95_ms": 3.992, + "p99_ms": 4.054, + "max_ms": 4.054 + }, + "background": { + "median_ms": 0.35, + "p95_ms": 0.468, + "p99_ms": 0.599, + "max_ms": 0.599 + }, + "plane": { + "median_ms": 0.111, + "p95_ms": 0.464, + "p99_ms": 0.706, + "max_ms": 0.706 + }, + "entities_and_effects": { + "median_ms": 0.689, + "p95_ms": 1.036, + "p99_ms": 1.111, + "max_ms": 1.111 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.008, + "p99_ms": 0.008, + "max_ms": 0.008 + }, + "hud": { + "median_ms": 0.283, + "p95_ms": 0.431, + "p99_ms": 0.433, + "max_ms": 0.433 + }, + "scene": { + "median_ms": 1.067, + "p95_ms": 1.648, + "p99_ms": 1.664, + "max_ms": 1.664 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.05, + "p99_ms": 0.054, + "max_ms": 0.054 + }, + "present": { + "median_ms": 0.252, + "p95_ms": 0.309, + "p99_ms": 0.339, + "max_ms": 0.339 + } + }, + "rss_bytes": 254341120, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10191, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-6.json b/docs/validacao-v1.7/desempenho/cold-amazonia-6.json new file mode 100644 index 0000000..b5e940e --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-6.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 743.62, + "rss_before_bytes": 41013248, + "rss_after_bytes": 100667392, + "rss_delta_bytes": 59654144, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 12.608, + "p95_ms": 19.797, + "p99_ms": 20.279, + "max_ms": 20.279 + }, + "scene_setup_ms": 7.272, + "warmup": { + "median_ms": 10.228, + "p95_ms": 13.548, + "p99_ms": 37.717, + "max_ms": 37.717 + }, + "first_preparation_frame_ms": 58.852, + "first_interactive_frame_ms": 37.717, + "preparation_frames": 31, + "preparation_frame_cost": { + "median_ms": 7.162, + "p95_ms": 63.345, + "p99_ms": 68.757, + "max_ms": 68.757 + }, + "time_until_first_interactive_ms": 519.565, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.94009999523405 + ], + [ + "Preparando paisagem", + 24.19910000753589 + ], + [ + "Preparando paisagem", + 19.880299994838424 + ], + [ + "Preparando textura do percurso", + 67.8844000067329 + ], + [ + "Preparando margens", + 62.759899999946356 + ], + [ + "Preparando margens", + 0.414699999964796 + ], + [ + "Preparando margens", + 0.3436000115470961 + ], + [ + "Preparando margens", + 0.367600005120039 + ], + [ + "Preparando margens", + 0.3701000096043572 + ], + [ + "Preparando margens", + 0.41050001163966954 + ], + [ + "Preparando margens", + 0.5278000026009977 + ], + [ + "Preparando margens", + 0.3865000035148114 + ], + [ + "Preparando margens", + 0.4512999876169488 + ], + [ + "Preparando margens", + 0.4918000049656257 + ], + [ + "Preparando margens", + 0.5225999921094626 + ], + [ + "Preparando margens", + 0.745700002880767 + ], + [ + "Preparando detalhes industriais", + 5.708199998480268 + ], + [ + "Preparando detalhes industriais", + 6.5670000039972365 + ], + [ + "Preparando detalhes industriais", + 5.582400001003407 + ], + [ + "Preparando detalhes industriais", + 8.165699997334741 + ], + [ + "Preparando detalhes industriais", + 5.684000003384426 + ], + [ + "Suavizando textura do chão", + 1.2722999963443726 + ], + [ + "Suavizando textura do chão", + 0.6184999947436154 + ], + [ + "Suavizando textura do chão", + 0.3146999952150509 + ], + [ + "Suavizando textura do chão", + 0.16759999562054873 + ], + [ + "Suavizando textura do chão", + 0.0627999979769811 + ], + [ + "Suavizando textura do chão", + 0.03239999932702631 + ], + [ + "Suavizando textura do chão", + 1.5970999957062304 + ], + [ + "Suavizando textura do chão", + 0.6422000005841255 + ], + [ + "Suavizando textura do chão", + 0.31680001120548695 + ], + [ + "Suavizando textura do chão", + 0.15969999367371202 + ], + [ + "Suavizando textura do chão", + 0.08260000322479755 + ], + [ + "Suavizando textura do chão", + 0.04999998782295734 + ], + [ + "Suavizando textura do chão", + 1.2412999931257218 + ], + [ + "Suavizando textura do chão", + 0.6252000021049753 + ], + [ + "Suavizando textura do chão", + 0.3028999926755205 + ], + [ + "Suavizando textura do chão", + 0.15900000289548188 + ], + [ + "Suavizando textura do chão", + 0.09689999569673091 + ], + [ + "Suavizando textura do chão", + 0.047299996367655694 + ], + [ + "Alocando faixas do chão", + 0.2877999941119924 + ], + [ + "Alocando faixas do chão", + 0.2927000023191795 + ], + [ + "Alocando faixas do chão", + 0.37120000342838466 + ], + [ + "Alocando faixas do chão", + 0.450699997600168 + ], + [ + "Alocando faixas do chão", + 0.5128999910084531 + ], + [ + "Alocando faixas do chão", + 0.37819999852217734 + ], + [ + "Alocando faixas do chão", + 0.46300000394694507 + ], + [ + "Alocando faixas do chão", + 0.45059999683871865 + ], + [ + "Alocando faixas do chão", + 0.28729999030474573 + ], + [ + "Alocando faixas do chão", + 0.14570000348612666 + ], + [ + "Alocando faixas do chão", + 0.14309999824035913 + ], + [ + "Alocando faixas do chão", + 0.19719998817890882 + ], + [ + "Alocando faixas do chão", + 0.27779999072663486 + ], + [ + "Alocando faixas do chão", + 0.30529999639838934 + ], + [ + "Alocando faixas do chão", + 0.3555000002961606 + ], + [ + "Alocando faixas do chão", + 0.5512999923666939 + ], + [ + "Alocando faixas do chão", + 0.5429000011645257 + ], + [ + "Alocando faixas do chão", + 0.34470000537112355 + ], + [ + "Alocando faixas do chão", + 0.18259999342262745 + ], + [ + "Alocando faixas do chão", + 0.16540000797249377 + ], + [ + "Alocando faixas do chão", + 0.17939999816007912 + ], + [ + "Alocando faixas do chão", + 0.28390000807121396 + ], + [ + "Alocando faixas do chão", + 0.38019999919924885 + ], + [ + "Alocando faixas do chão", + 0.40270001045428216 + ], + [ + "Alocando faixas do chão", + 0.45779999345541 + ], + [ + "Alocando faixas do chão", + 0.5054000066593289 + ], + [ + "Alocando faixas do chão", + 0.3122000052826479 + ], + [ + "Preparando fauna", + 53.59359999420121 + ], + [ + "Carregando elementos regionais", + 9.915899994666688 + ], + [ + "Carregando elementos regionais", + 8.156399999279529 + ], + [ + "Carregando elementos regionais", + 7.611499997437932 + ], + [ + "Preparando obstáculos regionais", + 8.639100007712841 + ], + [ + "Preparando avião", + 16.312099993228912 + ], + [ + "Aplicando pintura", + 0.006799993570894003 + ], + [ + "Preparando piloto", + 25.57679999154061 + ], + [ + "Montando visual do voo", + 0.40160000207833946 + ], + [ + "Preparando primeira vista", + 21.553400001721457 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.8333, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.079, + "p95_ms": 0.136, + "p99_ms": 1.366, + "max_ms": 1.366 + }, + "horizon": { + "median_ms": 1.226, + "p95_ms": 1.843, + "p99_ms": 2.244, + "max_ms": 2.244 + }, + "ground": { + "median_ms": 5.791, + "p95_ms": 9.315, + "p99_ms": 9.669, + "max_ms": 9.669 + }, + "route_and_banks": { + "median_ms": 8.671, + "p95_ms": 13.776, + "p99_ms": 13.961, + "max_ms": 13.961 + }, + "background": { + "median_ms": 10.169, + "p95_ms": 15.829, + "p99_ms": 16.488, + "max_ms": 16.488 + }, + "plane": { + "median_ms": 0.124, + "p95_ms": 0.437, + "p99_ms": 0.709, + "max_ms": 0.709 + }, + "entities_and_effects": { + "median_ms": 10.951, + "p95_ms": 17.381, + "p99_ms": 17.397, + "max_ms": 17.397 + }, + "world": { + "median_ms": 10.957, + "p95_ms": 17.389, + "p99_ms": 17.405, + "max_ms": 17.405 + }, + "hud": { + "median_ms": 0.299, + "p95_ms": 0.501, + "p99_ms": 0.504, + "max_ms": 0.504 + }, + "scene": { + "median_ms": 12.245, + "p95_ms": 19.239, + "p99_ms": 19.77, + "max_ms": 19.77 + }, + "canvas": { + "median_ms": 12.354, + "p95_ms": 19.427, + "p99_ms": 19.901, + "max_ms": 19.901 + }, + "present": { + "median_ms": 0.279, + "p95_ms": 0.481, + "p99_ms": 0.486, + "max_ms": 0.486 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.079, + "p95_ms": 0.136, + "p99_ms": 1.366, + "max_ms": 1.366 + }, + "horizon": { + "median_ms": 1.226, + "p95_ms": 1.843, + "p99_ms": 2.244, + "max_ms": 2.244 + }, + "ground": { + "median_ms": 5.791, + "p95_ms": 9.315, + "p99_ms": 9.669, + "max_ms": 9.669 + }, + "route_and_banks": { + "median_ms": 2.97, + "p95_ms": 5.022, + "p99_ms": 5.271, + "max_ms": 5.271 + }, + "background": { + "median_ms": 0.433, + "p95_ms": 0.702, + "p99_ms": 0.782, + "max_ms": 0.782 + }, + "plane": { + "median_ms": 0.124, + "p95_ms": 0.437, + "p99_ms": 0.709, + "max_ms": 0.709 + }, + "entities_and_effects": { + "median_ms": 0.75, + "p95_ms": 1.247, + "p99_ms": 1.362, + "max_ms": 1.362 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.009, + "p99_ms": 0.011, + "max_ms": 0.011 + }, + "hud": { + "median_ms": 0.299, + "p95_ms": 0.501, + "p99_ms": 0.504, + "max_ms": 0.504 + }, + "scene": { + "median_ms": 1.177, + "p95_ms": 1.865, + "p99_ms": 1.988, + "max_ms": 1.988 + }, + "canvas": { + "median_ms": 0.035, + "p95_ms": 0.057, + "p99_ms": 0.057, + "max_ms": 0.057 + }, + "present": { + "median_ms": 0.279, + "p95_ms": 0.481, + "p99_ms": 0.486, + "max_ms": 0.486 + } + }, + "rss_bytes": 253997056, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10187, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-7.json b/docs/validacao-v1.7/desempenho/cold-amazonia-7.json new file mode 100644 index 0000000..106993a --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-7.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 772.44, + "rss_before_bytes": 40988672, + "rss_after_bytes": 100642816, + "rss_delta_bytes": 59654144, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 12.097, + "p95_ms": 15.372, + "p99_ms": 16.286, + "max_ms": 16.286 + }, + "scene_setup_ms": 7.505, + "warmup": { + "median_ms": 10.735, + "p95_ms": 18.976, + "p99_ms": 36.504, + "max_ms": 36.504 + }, + "first_preparation_frame_ms": 60.799, + "first_interactive_frame_ms": 36.504, + "preparation_frames": 36, + "preparation_frame_cost": { + "median_ms": 6.668, + "p95_ms": 68.371, + "p99_ms": 75.933, + "max_ms": 75.933 + }, + "time_until_first_interactive_ms": 576.097, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.059599999105558 + ], + [ + "Preparando paisagem", + 20.733500001369976 + ], + [ + "Preparando paisagem", + 20.889199993689544 + ], + [ + "Preparando textura do percurso", + 67.6172000094084 + ], + [ + "Preparando margens", + 75.05129999481142 + ], + [ + "Preparando margens", + 0.47119999362621456 + ], + [ + "Preparando margens", + 0.4048999981023371 + ], + [ + "Preparando margens", + 0.4349999944679439 + ], + [ + "Preparando margens", + 0.4360000020824373 + ], + [ + "Preparando margens", + 0.4712999943876639 + ], + [ + "Preparando margens", + 0.4340999876148999 + ], + [ + "Preparando margens", + 0.39670000842306763 + ], + [ + "Preparando margens", + 0.4870999982813373 + ], + [ + "Preparando margens", + 0.4524999967543408 + ], + [ + "Preparando margens", + 0.6448999920394272 + ], + [ + "Preparando margens", + 0.869099996634759 + ], + [ + "Preparando detalhes industriais", + 6.16489999811165 + ], + [ + "Preparando detalhes industriais", + 7.001900012255646 + ], + [ + "Preparando detalhes industriais", + 5.836299998918548 + ], + [ + "Preparando detalhes industriais", + 7.265100008226 + ], + [ + "Preparando detalhes industriais", + 6.567700009327382 + ], + [ + "Suavizando textura do chão", + 2.143699995940551 + ], + [ + "Suavizando textura do chão", + 1.3290999922901392 + ], + [ + "Suavizando textura do chão", + 0.7006999949226156 + ], + [ + "Suavizando textura do chão", + 0.34070000401698053 + ], + [ + "Suavizando textura do chão", + 0.1370999962091446 + ], + [ + "Suavizando textura do chão", + 0.06960000609979033 + ], + [ + "Suavizando textura do chão", + 2.484800003003329 + ], + [ + "Suavizando textura do chão", + 1.2811999913537875 + ], + [ + "Suavizando textura do chão", + 0.7713999948464334 + ], + [ + "Suavizando textura do chão", + 0.371000001905486 + ], + [ + "Suavizando textura do chão", + 0.17640000442042947 + ], + [ + "Suavizando textura do chão", + 0.09079999290406704 + ], + [ + "Suavizando textura do chão", + 2.3203999880934134 + ], + [ + "Suavizando textura do chão", + 1.251499998033978 + ], + [ + "Suavizando textura do chão", + 0.6649999995715916 + ], + [ + "Suavizando textura do chão", + 0.34350001078564674 + ], + [ + "Suavizando textura do chão", + 0.1841999910539016 + ], + [ + "Suavizando textura do chão", + 0.09139999747276306 + ], + [ + "Alocando faixas do chão", + 0.4304999893065542 + ], + [ + "Alocando faixas do chão", + 0.40419999277219176 + ], + [ + "Alocando faixas do chão", + 0.45279999903868884 + ], + [ + "Alocando faixas do chão", + 0.5015000060666353 + ], + [ + "Alocando faixas do chão", + 0.5403999966802076 + ], + [ + "Alocando faixas do chão", + 0.6164000078570098 + ], + [ + "Alocando faixas do chão", + 0.7790999952703714 + ], + [ + "Alocando faixas do chão", + 0.7620999967912212 + ], + [ + "Alocando faixas do chão", + 0.5755000020144507 + ], + [ + "Alocando faixas do chão", + 0.28079999901819974 + ], + [ + "Alocando faixas do chão", + 0.3003000019816682 + ], + [ + "Alocando faixas do chão", + 0.3598999901441857 + ], + [ + "Alocando faixas do chão", + 0.49709998711477965 + ], + [ + "Alocando faixas do chão", + 0.5725999944843352 + ], + [ + "Alocando faixas do chão", + 0.668499997118488 + ], + [ + "Alocando faixas do chão", + 0.7587000000057742 + ], + [ + "Alocando faixas do chão", + 0.8131000067805871 + ], + [ + "Alocando faixas do chão", + 0.5631999956676736 + ], + [ + "Alocando faixas do chão", + 0.21690000721719116 + ], + [ + "Alocando faixas do chão", + 0.1829000102588907 + ], + [ + "Alocando faixas do chão", + 0.26429998979438096 + ], + [ + "Alocando faixas do chão", + 0.3934999986086041 + ], + [ + "Alocando faixas do chão", + 0.5352000007405877 + ], + [ + "Alocando faixas do chão", + 0.82970000221394 + ], + [ + "Alocando faixas do chão", + 0.7260999991558492 + ], + [ + "Alocando faixas do chão", + 0.5613999965135008 + ], + [ + "Alocando faixas do chão", + 0.36700000055134296 + ], + [ + "Preparando fauna", + 63.817799993557855 + ], + [ + "Carregando elementos regionais", + 9.775300000910647 + ], + [ + "Carregando elementos regionais", + 8.49700000253506 + ], + [ + "Carregando elementos regionais", + 7.908400002634153 + ], + [ + "Preparando obstáculos regionais", + 16.400900000007823 + ], + [ + "Preparando avião", + 25.654700002633035 + ], + [ + "Aplicando pintura", + 0.007499998901039362 + ], + [ + "Preparando piloto", + 22.880299991811626 + ], + [ + "Montando visual do voo", + 0.415000002249144 + ], + [ + "Preparando primeira vista", + 25.134800001978874 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.069, + "p95_ms": 0.121, + "p99_ms": 1.092, + "max_ms": 1.092 + }, + "horizon": { + "median_ms": 1.167, + "p95_ms": 1.681, + "p99_ms": 1.757, + "max_ms": 1.757 + }, + "ground": { + "median_ms": 5.422, + "p95_ms": 8.295, + "p99_ms": 8.337, + "max_ms": 8.337 + }, + "route_and_banks": { + "median_ms": 7.895, + "p95_ms": 11.963, + "p99_ms": 12.297, + "max_ms": 12.297 + }, + "background": { + "median_ms": 9.329, + "p95_ms": 12.687, + "p99_ms": 13.059, + "max_ms": 13.059 + }, + "plane": { + "median_ms": 0.107, + "p95_ms": 0.55, + "p99_ms": 0.647, + "max_ms": 0.647 + }, + "entities_and_effects": { + "median_ms": 10.345, + "p95_ms": 13.748, + "p99_ms": 13.833, + "max_ms": 13.833 + }, + "world": { + "median_ms": 10.35, + "p95_ms": 13.755, + "p99_ms": 13.84, + "max_ms": 13.84 + }, + "hud": { + "median_ms": 0.271, + "p95_ms": 0.413, + "p99_ms": 0.446, + "max_ms": 0.446 + }, + "scene": { + "median_ms": 11.644, + "p95_ms": 14.985, + "p99_ms": 15.819, + "max_ms": 15.819 + }, + "canvas": { + "median_ms": 11.868, + "p95_ms": 15.144, + "p99_ms": 15.986, + "max_ms": 15.986 + }, + "present": { + "median_ms": 0.231, + "p95_ms": 0.379, + "p99_ms": 0.445, + "max_ms": 0.445 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.069, + "p95_ms": 0.121, + "p99_ms": 1.092, + "max_ms": 1.092 + }, + "horizon": { + "median_ms": 1.167, + "p95_ms": 1.681, + "p99_ms": 1.757, + "max_ms": 1.757 + }, + "ground": { + "median_ms": 5.422, + "p95_ms": 8.295, + "p99_ms": 8.337, + "max_ms": 8.337 + }, + "route_and_banks": { + "median_ms": 2.752, + "p95_ms": 4.233, + "p99_ms": 4.863, + "max_ms": 4.863 + }, + "background": { + "median_ms": 0.331, + "p95_ms": 0.646, + "p99_ms": 0.703, + "max_ms": 0.703 + }, + "plane": { + "median_ms": 0.107, + "p95_ms": 0.55, + "p99_ms": 0.647, + "max_ms": 0.647 + }, + "entities_and_effects": { + "median_ms": 0.679, + "p95_ms": 1.266, + "p99_ms": 1.509, + "max_ms": 1.509 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.007, + "max_ms": 0.007 + }, + "hud": { + "median_ms": 0.271, + "p95_ms": 0.413, + "p99_ms": 0.446, + "max_ms": 0.446 + }, + "scene": { + "median_ms": 0.991, + "p95_ms": 1.632, + "p99_ms": 1.65, + "max_ms": 1.65 + }, + "canvas": { + "median_ms": 0.03, + "p95_ms": 0.045, + "p99_ms": 0.066, + "max_ms": 0.066 + }, + "present": { + "median_ms": 0.231, + "p95_ms": 0.379, + "p99_ms": 0.445, + "max_ms": 0.445 + } + }, + "rss_bytes": 254160896, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10192, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-8.json b/docs/validacao-v1.7/desempenho/cold-amazonia-8.json new file mode 100644 index 0000000..968e6c5 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-8.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 703.95, + "rss_before_bytes": 40898560, + "rss_after_bytes": 100466688, + "rss_delta_bytes": 59568128, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 11.984, + "p95_ms": 15.577, + "p99_ms": 16.687, + "max_ms": 16.687 + }, + "scene_setup_ms": 8.521, + "warmup": { + "median_ms": 9.409, + "p95_ms": 14.399, + "p99_ms": 33.329, + "max_ms": 33.329 + }, + "first_preparation_frame_ms": 71.72, + "first_interactive_frame_ms": 33.329, + "preparation_frames": 34, + "preparation_frame_cost": { + "median_ms": 7.568, + "p95_ms": 71.72, + "p99_ms": 81.371, + "max_ms": 81.371 + }, + "time_until_first_interactive_ms": 561.362, + "preparation_tasks": [ + [ + "Preparando paisagem", + 22.361800001817755 + ], + [ + "Preparando paisagem", + 24.082300005829893 + ], + [ + "Preparando paisagem", + 23.377899997285567 + ], + [ + "Preparando textura do percurso", + 60.945999997784384 + ], + [ + "Preparando margens", + 80.45809999748599 + ], + [ + "Preparando margens", + 0.7255999953486025 + ], + [ + "Preparando margens", + 0.6360000115819275 + ], + [ + "Preparando margens", + 0.7026999955996871 + ], + [ + "Preparando margens", + 0.8228000078815967 + ], + [ + "Preparando margens", + 0.8775000023888424 + ], + [ + "Preparando margens", + 0.7038000039756298 + ], + [ + "Preparando margens", + 0.6896999984746799 + ], + [ + "Preparando margens", + 0.8838999929139391 + ], + [ + "Preparando margens", + 0.9911999950418249 + ], + [ + "Preparando margens", + 0.8641000022180378 + ], + [ + "Preparando margens", + 0.9908999927574769 + ], + [ + "Preparando detalhes industriais", + 6.8909999972675 + ], + [ + "Preparando detalhes industriais", + 7.857100004912354 + ], + [ + "Preparando detalhes industriais", + 6.188799990923144 + ], + [ + "Preparando detalhes industriais", + 9.074100002180785 + ], + [ + "Preparando detalhes industriais", + 6.4941000018734485 + ], + [ + "Suavizando textura do chão", + 1.537299991468899 + ], + [ + "Suavizando textura do chão", + 0.7973000028869137 + ], + [ + "Suavizando textura do chão", + 0.37250001332722604 + ], + [ + "Suavizando textura do chão", + 0.19579999207053334 + ], + [ + "Suavizando textura do chão", + 0.07690000347793102 + ], + [ + "Suavizando textura do chão", + 0.03999999898951501 + ], + [ + "Suavizando textura do chão", + 1.5685000107623637 + ], + [ + "Suavizando textura do chão", + 1.15709999226965 + ], + [ + "Suavizando textura do chão", + 0.42100000428035855 + ], + [ + "Suavizando textura do chão", + 0.2221999893663451 + ], + [ + "Suavizando textura do chão", + 0.10439999459777027 + ], + [ + "Suavizando textura do chão", + 0.06199999188538641 + ], + [ + "Suavizando textura do chão", + 1.563700003316626 + ], + [ + "Suavizando textura do chão", + 0.77860000601504 + ], + [ + "Suavizando textura do chão", + 0.3870999935315922 + ], + [ + "Suavizando textura do chão", + 0.21919999562669545 + ], + [ + "Suavizando textura do chão", + 0.12639998749364167 + ], + [ + "Suavizando textura do chão", + 0.06810000922996551 + ], + [ + "Alocando faixas do chão", + 0.34529999538790435 + ], + [ + "Alocando faixas do chão", + 0.27829999453388155 + ], + [ + "Alocando faixas do chão", + 0.3146999952150509 + ], + [ + "Alocando faixas do chão", + 0.3373000072315335 + ], + [ + "Alocando faixas do chão", + 0.37939999310765415 + ], + [ + "Alocando faixas do chão", + 0.4714999959105626 + ], + [ + "Alocando faixas do chão", + 0.5614999972749501 + ], + [ + "Alocando faixas do chão", + 0.5510000046342611 + ], + [ + "Alocando faixas do chão", + 0.3816999960690737 + ], + [ + "Alocando faixas do chão", + 0.16710000636521727 + ], + [ + "Alocando faixas do chão", + 0.17010000010486692 + ], + [ + "Alocando faixas do chão", + 0.23659999715164304 + ], + [ + "Alocando faixas do chão", + 0.4191999905742705 + ], + [ + "Alocando faixas do chão", + 0.49500000022817403 + ], + [ + "Alocando faixas do chão", + 0.5247999943094328 + ], + [ + "Alocando faixas do chão", + 0.5463999987114221 + ], + [ + "Alocando faixas do chão", + 0.5413000035332516 + ], + [ + "Alocando faixas do chão", + 0.3656999906525016 + ], + [ + "Alocando faixas do chão", + 0.20339999173302203 + ], + [ + "Alocando faixas do chão", + 0.1979000080609694 + ], + [ + "Alocando faixas do chão", + 0.21830000332556665 + ], + [ + "Alocando faixas do chão", + 0.31790000502951443 + ], + [ + "Alocando faixas do chão", + 0.3721999964909628 + ], + [ + "Alocando faixas do chão", + 0.4256999964127317 + ], + [ + "Alocando faixas do chão", + 0.4532000020844862 + ], + [ + "Alocando faixas do chão", + 0.5142000009072945 + ], + [ + "Alocando faixas do chão", + 0.378400000045076 + ], + [ + "Preparando fauna", + 58.78370000573341 + ], + [ + "Carregando elementos regionais", + 7.277800003066659 + ], + [ + "Carregando elementos regionais", + 8.212300002924167 + ], + [ + "Carregando elementos regionais", + 7.442800007993355 + ], + [ + "Preparando obstáculos regionais", + 9.099100003368221 + ], + [ + "Preparando avião", + 17.74910000676755 + ], + [ + "Aplicando pintura", + 0.006200003554113209 + ], + [ + "Preparando piloto", + 21.955799995339476 + ], + [ + "Montando visual do voo", + 0.3794999938691035 + ], + [ + "Preparando primeira vista", + 22.705199997290038 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.9667, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.068, + "p95_ms": 0.125, + "p99_ms": 1.552, + "max_ms": 1.552 + }, + "horizon": { + "median_ms": 1.214, + "p95_ms": 1.608, + "p99_ms": 1.841, + "max_ms": 1.841 + }, + "ground": { + "median_ms": 5.301, + "p95_ms": 6.976, + "p99_ms": 8.452, + "max_ms": 8.452 + }, + "route_and_banks": { + "median_ms": 8.071, + "p95_ms": 11.019, + "p99_ms": 13.941, + "max_ms": 13.941 + }, + "background": { + "median_ms": 9.526, + "p95_ms": 12.241, + "p99_ms": 14.332, + "max_ms": 14.332 + }, + "plane": { + "median_ms": 0.109, + "p95_ms": 0.487, + "p99_ms": 0.553, + "max_ms": 0.553 + }, + "entities_and_effects": { + "median_ms": 10.285, + "p95_ms": 13.466, + "p99_ms": 15.078, + "max_ms": 15.078 + }, + "world": { + "median_ms": 10.29, + "p95_ms": 13.473, + "p99_ms": 15.084, + "max_ms": 15.084 + }, + "hud": { + "median_ms": 0.275, + "p95_ms": 0.387, + "p99_ms": 0.444, + "max_ms": 0.444 + }, + "scene": { + "median_ms": 11.673, + "p95_ms": 15.12, + "p99_ms": 16.326, + "max_ms": 16.326 + }, + "canvas": { + "median_ms": 11.76, + "p95_ms": 15.255, + "p99_ms": 16.457, + "max_ms": 16.457 + }, + "present": { + "median_ms": 0.239, + "p95_ms": 0.438, + "p99_ms": 0.441, + "max_ms": 0.441 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.068, + "p95_ms": 0.125, + "p99_ms": 1.552, + "max_ms": 1.552 + }, + "horizon": { + "median_ms": 1.214, + "p95_ms": 1.608, + "p99_ms": 1.841, + "max_ms": 1.841 + }, + "ground": { + "median_ms": 5.301, + "p95_ms": 6.976, + "p99_ms": 8.452, + "max_ms": 8.452 + }, + "route_and_banks": { + "median_ms": 2.509, + "p95_ms": 4.043, + "p99_ms": 5.489, + "max_ms": 5.489 + }, + "background": { + "median_ms": 0.396, + "p95_ms": 0.73, + "p99_ms": 0.84, + "max_ms": 0.84 + }, + "plane": { + "median_ms": 0.109, + "p95_ms": 0.487, + "p99_ms": 0.553, + "max_ms": 0.553 + }, + "entities_and_effects": { + "median_ms": 0.668, + "p95_ms": 0.971, + "p99_ms": 1.085, + "max_ms": 1.085 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.007, + "max_ms": 0.007 + }, + "hud": { + "median_ms": 0.275, + "p95_ms": 0.387, + "p99_ms": 0.444, + "max_ms": 0.444 + }, + "scene": { + "median_ms": 1.014, + "p95_ms": 1.519, + "p99_ms": 1.809, + "max_ms": 1.809 + }, + "canvas": { + "median_ms": 0.029, + "p95_ms": 0.048, + "p99_ms": 0.069, + "max_ms": 0.069 + }, + "present": { + "median_ms": 0.239, + "p95_ms": 0.438, + "p99_ms": 0.441, + "max_ms": 0.441 + } + }, + "rss_bytes": 253816832, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10190, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-amazonia-9.json b/docs/validacao-v1.7/desempenho/cold-amazonia-9.json new file mode 100644 index 0000000..8940e81 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-amazonia-9.json @@ -0,0 +1,544 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 718.17, + "rss_before_bytes": 41205760, + "rss_after_bytes": 100823040, + "rss_delta_bytes": 59617280, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 11.986, + "p95_ms": 15.675, + "p99_ms": 19.277, + "max_ms": 19.277 + }, + "scene_setup_ms": 6.886, + "warmup": { + "median_ms": 9.904, + "p95_ms": 16.425, + "p99_ms": 31.679, + "max_ms": 31.679 + }, + "first_preparation_frame_ms": 68.659, + "first_interactive_frame_ms": 31.679, + "preparation_frames": 33, + "preparation_frame_cost": { + "median_ms": 7.764, + "p95_ms": 68.659, + "p99_ms": 77.704, + "max_ms": 77.704 + }, + "time_until_first_interactive_ms": 528.56, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.605199991725385 + ], + [ + "Preparando paisagem", + 18.80019999225624 + ], + [ + "Preparando paisagem", + 18.85720000427682 + ], + [ + "Preparando textura do percurso", + 56.131900011678226 + ], + [ + "Preparando margens", + 77.05629999691155 + ], + [ + "Preparando margens", + 0.5206000059843063 + ], + [ + "Preparando margens", + 0.44949998846277595 + ], + [ + "Preparando margens", + 0.49089999811258167 + ], + [ + "Preparando margens", + 0.44779999007005244 + ], + [ + "Preparando margens", + 0.5475999932968989 + ], + [ + "Preparando margens", + 0.5177999992156401 + ], + [ + "Preparando margens", + 0.4778000002261251 + ], + [ + "Preparando margens", + 0.5660000024363399 + ], + [ + "Preparando margens", + 0.49140000191982836 + ], + [ + "Preparando margens", + 0.6219000060809776 + ], + [ + "Preparando margens", + 0.9156000014627352 + ], + [ + "Preparando detalhes industriais", + 7.160399996791966 + ], + [ + "Preparando detalhes industriais", + 6.485500009148382 + ], + [ + "Preparando detalhes industriais", + 5.322500001057051 + ], + [ + "Preparando detalhes industriais", + 8.010699995793402 + ], + [ + "Preparando detalhes industriais", + 6.881199995405041 + ], + [ + "Suavizando textura do chão", + 1.6677999956300482 + ], + [ + "Suavizando textura do chão", + 0.7709000055911019 + ], + [ + "Suavizando textura do chão", + 0.3693000035127625 + ], + [ + "Suavizando textura do chão", + 0.18760000239126384 + ], + [ + "Suavizando textura do chão", + 0.07380000897683203 + ], + [ + "Suavizando textura do chão", + 0.03860000288113952 + ], + [ + "Suavizando textura do chão", + 1.446499998564832 + ], + [ + "Suavizando textura do chão", + 0.9545999928377569 + ], + [ + "Suavizando textura do chão", + 0.4642999992938712 + ], + [ + "Suavizando textura do chão", + 0.21810000180266798 + ], + [ + "Suavizando textura do chão", + 0.10770000517368317 + ], + [ + "Suavizando textura do chão", + 0.06189999112393707 + ], + [ + "Suavizando textura do chão", + 1.4792000001762062 + ], + [ + "Suavizando textura do chão", + 0.7391999970423058 + ], + [ + "Suavizando textura do chão", + 0.37059999885968864 + ], + [ + "Suavizando textura do chão", + 0.18740000086836517 + ], + [ + "Suavizando textura do chão", + 0.11059999815188348 + ], + [ + "Suavizando textura do chão", + 0.05420000525191426 + ], + [ + "Alocando faixas do chão", + 0.3966999938711524 + ], + [ + "Alocando faixas do chão", + 0.417499992181547 + ], + [ + "Alocando faixas do chão", + 0.487600002088584 + ], + [ + "Alocando faixas do chão", + 0.5333000008249655 + ], + [ + "Alocando faixas do chão", + 0.45399999362416565 + ], + [ + "Alocando faixas do chão", + 0.4391999973449856 + ], + [ + "Alocando faixas do chão", + 0.5378000059863552 + ], + [ + "Alocando faixas do chão", + 0.5519000114873052 + ], + [ + "Alocando faixas do chão", + 0.40970000554807484 + ], + [ + "Alocando faixas do chão", + 0.17040000238921493 + ], + [ + "Alocando faixas do chão", + 0.17769999976735562 + ], + [ + "Alocando faixas do chão", + 0.24900000425986946 + ], + [ + "Alocando faixas do chão", + 0.48160000005736947 + ], + [ + "Alocando faixas do chão", + 0.458099995739758 + ], + [ + "Alocando faixas do chão", + 0.4763999895658344 + ], + [ + "Alocando faixas do chão", + 0.5173999961698428 + ], + [ + "Alocando faixas do chão", + 0.5481999978655949 + ], + [ + "Alocando faixas do chão", + 0.44129999878350645 + ], + [ + "Alocando faixas do chão", + 0.20249999943189323 + ], + [ + "Alocando faixas do chão", + 0.18020000425167382 + ], + [ + "Alocando faixas do chão", + 0.22909999825060368 + ], + [ + "Alocando faixas do chão", + 0.36210000689607114 + ], + [ + "Alocando faixas do chão", + 0.39069999183993787 + ], + [ + "Alocando faixas do chão", + 0.49479999870527536 + ], + [ + "Alocando faixas do chão", + 0.5865999992238358 + ], + [ + "Alocando faixas do chão", + 0.6116999866208062 + ], + [ + "Alocando faixas do chão", + 0.40249999437946826 + ], + [ + "Preparando fauna", + 59.564199997112155 + ], + [ + "Carregando elementos regionais", + 7.7369999926304445 + ], + [ + "Carregando elementos regionais", + 9.0119000087725 + ], + [ + "Carregando elementos regionais", + 7.269599998835474 + ], + [ + "Preparando obstáculos regionais", + 7.374099994194694 + ], + [ + "Preparando avião", + 15.03690000390634 + ], + [ + "Aplicando pintura", + 0.006600006599910557 + ], + [ + "Preparando piloto", + 20.2385000011418 + ], + [ + "Montando visual do voo", + 0.5397999921115115 + ], + [ + "Preparando primeira vista", + 27.405900007579476 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.9667, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.074, + "p95_ms": 0.168, + "p99_ms": 1.31, + "max_ms": 1.31 + }, + "horizon": { + "median_ms": 1.24, + "p95_ms": 2.003, + "p99_ms": 2.224, + "max_ms": 2.224 + }, + "ground": { + "median_ms": 5.428, + "p95_ms": 6.844, + "p99_ms": 8.027, + "max_ms": 8.027 + }, + "route_and_banks": { + "median_ms": 8.111, + "p95_ms": 9.892, + "p99_ms": 13.083, + "max_ms": 13.083 + }, + "background": { + "median_ms": 9.521, + "p95_ms": 12.626, + "p99_ms": 15.42, + "max_ms": 15.42 + }, + "plane": { + "median_ms": 0.114, + "p95_ms": 0.438, + "p99_ms": 0.845, + "max_ms": 0.845 + }, + "entities_and_effects": { + "median_ms": 10.277, + "p95_ms": 13.732, + "p99_ms": 17.24, + "max_ms": 17.24 + }, + "world": { + "median_ms": 10.282, + "p95_ms": 13.737, + "p99_ms": 17.246, + "max_ms": 17.246 + }, + "hud": { + "median_ms": 0.291, + "p95_ms": 0.368, + "p99_ms": 0.41, + "max_ms": 0.41 + }, + "scene": { + "median_ms": 11.639, + "p95_ms": 15.223, + "p99_ms": 18.869, + "max_ms": 18.869 + }, + "canvas": { + "median_ms": 11.737, + "p95_ms": 15.342, + "p99_ms": 18.978, + "max_ms": 18.978 + }, + "present": { + "median_ms": 0.249, + "p95_ms": 0.369, + "p99_ms": 0.628, + "max_ms": 0.628 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.074, + "p95_ms": 0.168, + "p99_ms": 1.31, + "max_ms": 1.31 + }, + "horizon": { + "median_ms": 1.24, + "p95_ms": 2.003, + "p99_ms": 2.224, + "max_ms": 2.224 + }, + "ground": { + "median_ms": 5.428, + "p95_ms": 6.844, + "p99_ms": 8.027, + "max_ms": 8.027 + }, + "route_and_banks": { + "median_ms": 2.652, + "p95_ms": 4.006, + "p99_ms": 5.056, + "max_ms": 5.056 + }, + "background": { + "median_ms": 0.385, + "p95_ms": 0.638, + "p99_ms": 0.698, + "max_ms": 0.698 + }, + "plane": { + "median_ms": 0.114, + "p95_ms": 0.438, + "p99_ms": 0.845, + "max_ms": 0.845 + }, + "entities_and_effects": { + "median_ms": 0.689, + "p95_ms": 1.029, + "p99_ms": 1.199, + "max_ms": 1.199 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.02, + "max_ms": 0.02 + }, + "hud": { + "median_ms": 0.291, + "p95_ms": 0.368, + "p99_ms": 0.41, + "max_ms": 0.41 + }, + "scene": { + "median_ms": 1.03, + "p95_ms": 1.327, + "p99_ms": 1.423, + "max_ms": 1.423 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.048, + "p99_ms": 0.049, + "max_ms": 0.049 + }, + "present": { + "median_ms": 0.249, + "p95_ms": 0.369, + "p99_ms": 0.628, + "max_ms": 0.628 + } + }, + "rss_bytes": 254095360, + "renderer_caches": { + "unique_retained_surface_bytes": 163543756, + "surface_bytes_by_owner": { + "assets": 19770880, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 101301664, + "plane_skin": 27015716, + "paper_items": 12886532 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 71227484, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10189, + "get_misses": 1141, + "evictions": 115, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-1.json b/docs/validacao-v1.7/desempenho/cold-caatinga-1.json new file mode 100644 index 0000000..268035d --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-1.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 727.61, + "rss_before_bytes": 41181184, + "rss_after_bytes": 100794368, + "rss_delta_bytes": 59613184, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.283, + "p95_ms": 10.414, + "p99_ms": 10.923, + "max_ms": 10.923 + }, + "scene_setup_ms": 7.652, + "warmup": { + "median_ms": 7.616, + "p95_ms": 13.182, + "p99_ms": 32.916, + "max_ms": 32.916 + }, + "first_preparation_frame_ms": 75.63, + "first_interactive_frame_ms": 32.916, + "preparation_frames": 27, + "preparation_frame_cost": { + "median_ms": 10.865, + "p95_ms": 72.482, + "p99_ms": 75.63, + "max_ms": 75.63 + }, + "time_until_first_interactive_ms": 547.044, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.81099999102298 + ], + [ + "Preparando paisagem", + 20.665100004407577 + ], + [ + "Preparando paisagem", + 20.361499991849996 + ], + [ + "Preparando textura do percurso", + 57.681699996464886 + ], + [ + "Preparando margens", + 71.63910000235774 + ], + [ + "Preparando margens", + 0.5534999945666641 + ], + [ + "Preparando margens", + 0.5180000007385388 + ], + [ + "Preparando margens", + 0.531600002432242 + ], + [ + "Preparando margens", + 0.47360001190099865 + ], + [ + "Preparando margens", + 0.5818000063300133 + ], + [ + "Preparando margens", + 0.5318000039551407 + ], + [ + "Preparando margens", + 0.4869000113103539 + ], + [ + "Preparando margens", + 0.6167000101413578 + ], + [ + "Preparando margens", + 0.6425999890780076 + ], + [ + "Preparando margens", + 0.7177999941632152 + ], + [ + "Preparando margens", + 1.0489999986020848 + ], + [ + "Preparando detalhes industriais", + 9.647200000472367 + ], + [ + "Preparando detalhes industriais", + 9.681299998192117 + ], + [ + "Preparando detalhes industriais", + 11.242000007769093 + ], + [ + "Preparando detalhes industriais", + 14.44420000188984 + ], + [ + "Preparando detalhes industriais", + 10.722700011683628 + ], + [ + "Suavizando textura do chão", + 1.7443999968236312 + ], + [ + "Suavizando textura do chão", + 1.3121999945724383 + ], + [ + "Suavizando textura do chão", + 0.6554999999934807 + ], + [ + "Suavizando textura do chão", + 0.32810000993777066 + ], + [ + "Suavizando textura do chão", + 0.11059999815188348 + ], + [ + "Suavizando textura do chão", + 0.06120000034570694 + ], + [ + "Alocando faixas do chão", + 0.3116000007139519 + ], + [ + "Alocando faixas do chão", + 0.26670000806916505 + ], + [ + "Alocando faixas do chão", + 0.2869000018108636 + ], + [ + "Alocando faixas do chão", + 0.31970000418368727 + ], + [ + "Alocando faixas do chão", + 0.3623999946285039 + ], + [ + "Alocando faixas do chão", + 0.39760000072419643 + ], + [ + "Alocando faixas do chão", + 0.444800010882318 + ], + [ + "Alocando faixas do chão", + 0.538099993718788 + ], + [ + "Alocando faixas do chão", + 0.3819999983534217 + ], + [ + "Preparando fauna", + 62.489499992807396 + ], + [ + "Carregando elementos regionais", + 10.003100003814325 + ], + [ + "Carregando elementos regionais", + 9.978800007957034 + ], + [ + "Carregando elementos regionais", + 6.180900003528222 + ], + [ + "Preparando obstáculos regionais", + 9.592599992174655 + ], + [ + "Preparando avião", + 17.212799997651018 + ], + [ + "Aplicando pintura", + 0.005599998985417187 + ], + [ + "Preparando piloto", + 21.98109999881126 + ], + [ + "Montando visual do voo", + 0.3372999926796183 + ], + [ + "Preparando primeira vista", + 19.273099998827092 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.066, + "p95_ms": 0.122, + "p99_ms": 1.115, + "max_ms": 1.115 + }, + "horizon": { + "median_ms": 1.101, + "p95_ms": 1.827, + "p99_ms": 1.899, + "max_ms": 1.899 + }, + "ground": { + "median_ms": 2.123, + "p95_ms": 2.792, + "p99_ms": 3.064, + "max_ms": 3.064 + }, + "route_and_banks": { + "median_ms": 5.188, + "p95_ms": 5.858, + "p99_ms": 5.893, + "max_ms": 5.893 + }, + "background": { + "median_ms": 6.406, + "p95_ms": 7.504, + "p99_ms": 7.699, + "max_ms": 7.699 + }, + "plane": { + "median_ms": 0.105, + "p95_ms": 0.46, + "p99_ms": 0.574, + "max_ms": 0.574 + }, + "entities_and_effects": { + "median_ms": 7.193, + "p95_ms": 8.279, + "p99_ms": 8.329, + "max_ms": 8.329 + }, + "world": { + "median_ms": 7.198, + "p95_ms": 8.284, + "p99_ms": 8.334, + "max_ms": 8.334 + }, + "hud": { + "median_ms": 0.253, + "p95_ms": 0.34, + "p99_ms": 0.404, + "max_ms": 0.404 + }, + "scene": { + "median_ms": 8.837, + "p95_ms": 10.046, + "p99_ms": 10.562, + "max_ms": 10.562 + }, + "canvas": { + "median_ms": 8.997, + "p95_ms": 10.148, + "p99_ms": 10.657, + "max_ms": 10.657 + }, + "present": { + "median_ms": 0.243, + "p95_ms": 0.336, + "p99_ms": 0.915, + "max_ms": 0.915 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.066, + "p95_ms": 0.122, + "p99_ms": 1.115, + "max_ms": 1.115 + }, + "horizon": { + "median_ms": 1.101, + "p95_ms": 1.827, + "p99_ms": 1.899, + "max_ms": 1.899 + }, + "ground": { + "median_ms": 2.123, + "p95_ms": 2.792, + "p99_ms": 3.064, + "max_ms": 3.064 + }, + "route_and_banks": { + "median_ms": 2.917, + "p95_ms": 3.733, + "p99_ms": 3.81, + "max_ms": 3.81 + }, + "background": { + "median_ms": 0.332, + "p95_ms": 0.601, + "p99_ms": 0.632, + "max_ms": 0.632 + }, + "plane": { + "median_ms": 0.105, + "p95_ms": 0.46, + "p99_ms": 0.574, + "max_ms": 0.574 + }, + "entities_and_effects": { + "median_ms": 0.658, + "p95_ms": 0.957, + "p99_ms": 1.108, + "max_ms": 1.108 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.008, + "max_ms": 0.008 + }, + "hud": { + "median_ms": 0.253, + "p95_ms": 0.34, + "p99_ms": 0.404, + "max_ms": 0.404 + }, + "scene": { + "median_ms": 1.401, + "p95_ms": 2.056, + "p99_ms": 2.652, + "max_ms": 2.652 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.053, + "p99_ms": 0.056, + "max_ms": 0.056 + }, + "present": { + "median_ms": 0.243, + "p95_ms": 0.336, + "p99_ms": 0.915, + "max_ms": 0.915 + } + }, + "rss_bytes": 240074752, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10378, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-10.json b/docs/validacao-v1.7/desempenho/cold-caatinga-10.json new file mode 100644 index 0000000..4b08e06 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-10.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 678.81, + "rss_before_bytes": 41074688, + "rss_after_bytes": 100687872, + "rss_delta_bytes": 59613184, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 10.185, + "p95_ms": 15.564, + "p99_ms": 16.841, + "max_ms": 16.841 + }, + "scene_setup_ms": 6.619, + "warmup": { + "median_ms": 6.601, + "p95_ms": 11.479, + "p99_ms": 28.098, + "max_ms": 28.098 + }, + "first_preparation_frame_ms": 66.075, + "first_interactive_frame_ms": 28.098, + "preparation_frames": 26, + "preparation_frame_cost": { + "median_ms": 7.937, + "p95_ms": 66.075, + "p99_ms": 68.707, + "max_ms": 68.707 + }, + "time_until_first_interactive_ms": 503.654, + "preparation_tasks": [ + [ + "Preparando paisagem", + 21.499900001799688 + ], + [ + "Preparando paisagem", + 21.02759999979753 + ], + [ + "Preparando paisagem", + 21.56259999901522 + ], + [ + "Preparando textura do percurso", + 63.7169000110589 + ], + [ + "Preparando margens", + 68.02530000277329 + ], + [ + "Preparando margens", + 0.5232000112300739 + ], + [ + "Preparando margens", + 0.45840001257602125 + ], + [ + "Preparando margens", + 0.5178999999770895 + ], + [ + "Preparando margens", + 0.3884999896399677 + ], + [ + "Preparando margens", + 0.5035999929532409 + ], + [ + "Preparando margens", + 0.3778999962378293 + ], + [ + "Preparando margens", + 0.3529999958118424 + ], + [ + "Preparando margens", + 0.6739999953424558 + ], + [ + "Preparando margens", + 0.5570000066654757 + ], + [ + "Preparando margens", + 0.55929999507498 + ], + [ + "Preparando margens", + 0.8927000017138198 + ], + [ + "Preparando detalhes industriais", + 6.317899998975918 + ], + [ + "Preparando detalhes industriais", + 7.359299997915514 + ], + [ + "Preparando detalhes industriais", + 6.107900000642985 + ], + [ + "Preparando detalhes industriais", + 8.900000000721775 + ], + [ + "Preparando detalhes industriais", + 6.7233000008855015 + ], + [ + "Suavizando textura do chão", + 1.6025999939301983 + ], + [ + "Suavizando textura do chão", + 0.8079999970505014 + ], + [ + "Suavizando textura do chão", + 0.3964000061387196 + ], + [ + "Suavizando textura do chão", + 0.20319999021012336 + ], + [ + "Suavizando textura do chão", + 0.07949999417178333 + ], + [ + "Suavizando textura do chão", + 0.042100000428035855 + ], + [ + "Alocando faixas do chão", + 0.30810000316705555 + ], + [ + "Alocando faixas do chão", + 0.3108000091742724 + ], + [ + "Alocando faixas do chão", + 0.35459999344311655 + ], + [ + "Alocando faixas do chão", + 0.34220000088680536 + ], + [ + "Alocando faixas do chão", + 0.4123000107938424 + ], + [ + "Alocando faixas do chão", + 0.4896000027656555 + ], + [ + "Alocando faixas do chão", + 0.49420000868849456 + ], + [ + "Alocando faixas do chão", + 0.6111000111559406 + ], + [ + "Alocando faixas do chão", + 0.3983000060543418 + ], + [ + "Preparando fauna", + 64.68159999349155 + ], + [ + "Carregando elementos regionais", + 6.386299995938316 + ], + [ + "Carregando elementos regionais", + 6.961699997191317 + ], + [ + "Carregando elementos regionais", + 5.885999999009073 + ], + [ + "Preparando obstáculos regionais", + 8.675800010678358 + ], + [ + "Preparando avião", + 17.760499991709366 + ], + [ + "Aplicando pintura", + 0.0049000082071870565 + ], + [ + "Preparando piloto", + 18.998999992618337 + ], + [ + "Montando visual do voo", + 0.26649999199435115 + ], + [ + "Preparando primeira vista", + 17.56069999828469 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 0.9667, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.075, + "p95_ms": 0.117, + "p99_ms": 1.276, + "max_ms": 1.276 + }, + "horizon": { + "median_ms": 1.117, + "p95_ms": 1.935, + "p99_ms": 2.298, + "max_ms": 2.298 + }, + "ground": { + "median_ms": 2.207, + "p95_ms": 3.464, + "p99_ms": 3.667, + "max_ms": 3.667 + }, + "route_and_banks": { + "median_ms": 5.277, + "p95_ms": 8.78, + "p99_ms": 9.321, + "max_ms": 9.321 + }, + "background": { + "median_ms": 6.597, + "p95_ms": 11.493, + "p99_ms": 11.807, + "max_ms": 11.807 + }, + "plane": { + "median_ms": 0.116, + "p95_ms": 0.443, + "p99_ms": 0.456, + "max_ms": 0.456 + }, + "entities_and_effects": { + "median_ms": 7.722, + "p95_ms": 12.608, + "p99_ms": 13.145, + "max_ms": 13.145 + }, + "world": { + "median_ms": 7.726, + "p95_ms": 12.616, + "p99_ms": 13.154, + "max_ms": 13.154 + }, + "hud": { + "median_ms": 0.295, + "p95_ms": 0.479, + "p99_ms": 0.515, + "max_ms": 0.515 + }, + "scene": { + "median_ms": 9.372, + "p95_ms": 15.121, + "p99_ms": 16.322, + "max_ms": 16.322 + }, + "canvas": { + "median_ms": 9.86, + "p95_ms": 15.278, + "p99_ms": 16.491, + "max_ms": 16.491 + }, + "present": { + "median_ms": 0.261, + "p95_ms": 0.363, + "p99_ms": 0.426, + "max_ms": 0.426 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.075, + "p95_ms": 0.117, + "p99_ms": 1.276, + "max_ms": 1.276 + }, + "horizon": { + "median_ms": 1.117, + "p95_ms": 1.935, + "p99_ms": 2.298, + "max_ms": 2.298 + }, + "ground": { + "median_ms": 2.207, + "p95_ms": 3.464, + "p99_ms": 3.667, + "max_ms": 3.667 + }, + "route_and_banks": { + "median_ms": 2.953, + "p95_ms": 5.316, + "p99_ms": 5.655, + "max_ms": 5.655 + }, + "background": { + "median_ms": 0.371, + "p95_ms": 0.675, + "p99_ms": 0.851, + "max_ms": 0.851 + }, + "plane": { + "median_ms": 0.116, + "p95_ms": 0.443, + "p99_ms": 0.456, + "max_ms": 0.456 + }, + "entities_and_effects": { + "median_ms": 0.696, + "p95_ms": 1.102, + "p99_ms": 1.14, + "max_ms": 1.14 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.009, + "p99_ms": 0.009, + "max_ms": 0.009 + }, + "hud": { + "median_ms": 0.295, + "p95_ms": 0.479, + "p99_ms": 0.515, + "max_ms": 0.515 + }, + "scene": { + "median_ms": 1.505, + "p95_ms": 2.624, + "p99_ms": 2.689, + "max_ms": 2.689 + }, + "canvas": { + "median_ms": 0.033, + "p95_ms": 0.048, + "p99_ms": 0.051, + "max_ms": 0.051 + }, + "present": { + "median_ms": 0.261, + "p95_ms": 0.363, + "p99_ms": 0.426, + "max_ms": 0.426 + } + }, + "rss_bytes": 240189440, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10377, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-2.json b/docs/validacao-v1.7/desempenho/cold-caatinga-2.json new file mode 100644 index 0000000..2f1157a --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-2.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 848.12, + "rss_before_bytes": 41041920, + "rss_after_bytes": 100651008, + "rss_delta_bytes": 59609088, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 10.075, + "p95_ms": 12.064, + "p99_ms": 13.459, + "max_ms": 13.459 + }, + "scene_setup_ms": 7.156, + "warmup": { + "median_ms": 6.715, + "p95_ms": 11.178, + "p99_ms": 36.991, + "max_ms": 36.991 + }, + "first_preparation_frame_ms": 76.088, + "first_interactive_frame_ms": 36.991, + "preparation_frames": 27, + "preparation_frame_cost": { + "median_ms": 9.536, + "p95_ms": 76.088, + "p99_ms": 83.928, + "max_ms": 83.928 + }, + "time_until_first_interactive_ms": 559.427, + "preparation_tasks": [ + [ + "Preparando paisagem", + 22.253799994359724 + ], + [ + "Preparando paisagem", + 22.599999996600673 + ], + [ + "Preparando paisagem", + 21.299400003044866 + ], + [ + "Preparando textura do percurso", + 65.68279999191873 + ], + [ + "Preparando margens", + 83.13440000347327 + ], + [ + "Preparando margens", + 0.6372999923769385 + ], + [ + "Preparando margens", + 0.5927000020164996 + ], + [ + "Preparando margens", + 0.6205999961821362 + ], + [ + "Preparando margens", + 0.8495999936712906 + ], + [ + "Preparando margens", + 0.9849999914877117 + ], + [ + "Preparando margens", + 0.6076999998185784 + ], + [ + "Preparando margens", + 0.4827999946428463 + ], + [ + "Preparando margens", + 0.6391000060830265 + ], + [ + "Preparando margens", + 0.6168999971123412 + ], + [ + "Preparando margens", + 0.5972000071778893 + ], + [ + "Preparando margens", + 0.949399996898137 + ], + [ + "Preparando detalhes industriais", + 6.700500001898035 + ], + [ + "Preparando detalhes industriais", + 8.578900000429712 + ], + [ + "Preparando detalhes industriais", + 6.480399999418296 + ], + [ + "Preparando detalhes industriais", + 8.842999988701195 + ], + [ + "Preparando detalhes industriais", + 6.86130000394769 + ], + [ + "Suavizando textura do chão", + 1.5723999968031421 + ], + [ + "Suavizando textura do chão", + 0.7736999978078529 + ], + [ + "Suavizando textura do chão", + 0.3995000006398186 + ], + [ + "Suavizando textura do chão", + 0.21520000882446766 + ], + [ + "Suavizando textura do chão", + 0.07949999417178333 + ], + [ + "Suavizando textura do chão", + 0.04169999738223851 + ], + [ + "Alocando faixas do chão", + 0.3012999950442463 + ], + [ + "Alocando faixas do chão", + 0.27999999292660505 + ], + [ + "Alocando faixas do chão", + 0.3178000042680651 + ], + [ + "Alocando faixas do chão", + 0.3357999958097935 + ], + [ + "Alocando faixas do chão", + 0.4047000111313537 + ], + [ + "Alocando faixas do chão", + 0.4698999982792884 + ], + [ + "Alocando faixas do chão", + 0.4790999955730513 + ], + [ + "Alocando faixas do chão", + 0.6044000037945807 + ], + [ + "Alocando faixas do chão", + 0.3578000032575801 + ], + [ + "Preparando fauna", + 56.40839999250602 + ], + [ + "Carregando elementos regionais", + 8.11239999893587 + ], + [ + "Carregando elementos regionais", + 8.977699995739385 + ], + [ + "Carregando elementos regionais", + 7.501700005377643 + ], + [ + "Preparando obstáculos regionais", + 9.855099997366779 + ], + [ + "Preparando avião", + 19.364699997822754 + ], + [ + "Aplicando pintura", + 0.008400005754083395 + ], + [ + "Preparando piloto", + 25.51089999906253 + ], + [ + "Montando visual do voo", + 0.26220000290777534 + ], + [ + "Preparando primeira vista", + 21.631299998261966 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.077, + "p95_ms": 0.12, + "p99_ms": 1.61, + "max_ms": 1.61 + }, + "horizon": { + "median_ms": 1.375, + "p95_ms": 1.755, + "p99_ms": 2.004, + "max_ms": 2.004 + }, + "ground": { + "median_ms": 2.379, + "p95_ms": 2.847, + "p99_ms": 3.226, + "max_ms": 3.226 + }, + "route_and_banks": { + "median_ms": 5.531, + "p95_ms": 6.806, + "p99_ms": 7.297, + "max_ms": 7.297 + }, + "background": { + "median_ms": 6.938, + "p95_ms": 8.356, + "p99_ms": 9.244, + "max_ms": 9.244 + }, + "plane": { + "median_ms": 0.114, + "p95_ms": 0.563, + "p99_ms": 0.564, + "max_ms": 0.564 + }, + "entities_and_effects": { + "median_ms": 7.737, + "p95_ms": 9.709, + "p99_ms": 9.995, + "max_ms": 9.995 + }, + "world": { + "median_ms": 7.743, + "p95_ms": 9.715, + "p99_ms": 10.001, + "max_ms": 10.001 + }, + "hud": { + "median_ms": 0.285, + "p95_ms": 0.418, + "p99_ms": 0.518, + "max_ms": 0.518 + }, + "scene": { + "median_ms": 9.587, + "p95_ms": 11.514, + "p99_ms": 11.67, + "max_ms": 11.67 + }, + "canvas": { + "median_ms": 9.698, + "p95_ms": 11.784, + "p99_ms": 13.156, + "max_ms": 13.156 + }, + "present": { + "median_ms": 0.25, + "p95_ms": 0.484, + "p99_ms": 0.491, + "max_ms": 0.491 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.077, + "p95_ms": 0.12, + "p99_ms": 1.61, + "max_ms": 1.61 + }, + "horizon": { + "median_ms": 1.375, + "p95_ms": 1.755, + "p99_ms": 2.004, + "max_ms": 2.004 + }, + "ground": { + "median_ms": 2.379, + "p95_ms": 2.847, + "p99_ms": 3.226, + "max_ms": 3.226 + }, + "route_and_banks": { + "median_ms": 3.214, + "p95_ms": 3.81, + "p99_ms": 4.787, + "max_ms": 4.787 + }, + "background": { + "median_ms": 0.416, + "p95_ms": 0.632, + "p99_ms": 0.747, + "max_ms": 0.747 + }, + "plane": { + "median_ms": 0.114, + "p95_ms": 0.563, + "p99_ms": 0.564, + "max_ms": 0.564 + }, + "entities_and_effects": { + "median_ms": 0.711, + "p95_ms": 1.19, + "p99_ms": 1.224, + "max_ms": 1.224 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.009, + "p99_ms": 0.009, + "max_ms": 0.009 + }, + "hud": { + "median_ms": 0.285, + "p95_ms": 0.418, + "p99_ms": 0.518, + "max_ms": 0.518 + }, + "scene": { + "median_ms": 1.517, + "p95_ms": 2.163, + "p99_ms": 2.91, + "max_ms": 2.91 + }, + "canvas": { + "median_ms": 0.035, + "p95_ms": 0.062, + "p99_ms": 0.064, + "max_ms": 0.064 + }, + "present": { + "median_ms": 0.25, + "p95_ms": 0.484, + "p99_ms": 0.491, + "max_ms": 0.491 + } + }, + "rss_bytes": 240173056, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10378, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-3.json b/docs/validacao-v1.7/desempenho/cold-caatinga-3.json new file mode 100644 index 0000000..5f62358 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-3.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 736.03, + "rss_before_bytes": 41050112, + "rss_after_bytes": 100089856, + "rss_delta_bytes": 59039744, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.845, + "p95_ms": 12.48, + "p99_ms": 12.733, + "max_ms": 12.733 + }, + "scene_setup_ms": 6.293, + "warmup": { + "median_ms": 6.816, + "p95_ms": 11.005, + "p99_ms": 37.498, + "max_ms": 37.498 + }, + "first_preparation_frame_ms": 67.924, + "first_interactive_frame_ms": 37.498, + "preparation_frames": 27, + "preparation_frame_cost": { + "median_ms": 9.547, + "p95_ms": 71.835, + "p99_ms": 81.853, + "max_ms": 81.853 + }, + "time_until_first_interactive_ms": 560.067, + "preparation_tasks": [ + [ + "Preparando paisagem", + 20.981300011044368 + ], + [ + "Preparando paisagem", + 22.795500000938773 + ], + [ + "Preparando paisagem", + 23.5367999994196 + ], + [ + "Preparando textura do percurso", + 70.6915999908233 + ], + [ + "Preparando margens", + 80.78459999524057 + ], + [ + "Preparando margens", + 0.8089000039035454 + ], + [ + "Preparando margens", + 0.5808999994769692 + ], + [ + "Preparando margens", + 0.5702000053133816 + ], + [ + "Preparando margens", + 0.47820000327192247 + ], + [ + "Preparando margens", + 0.5634999979520217 + ], + [ + "Preparando margens", + 0.4756999987876043 + ], + [ + "Preparando margens", + 0.4665000014938414 + ], + [ + "Preparando margens", + 0.5704000068362802 + ], + [ + "Preparando margens", + 0.5957999965175986 + ], + [ + "Preparando margens", + 0.6768999883206561 + ], + [ + "Preparando margens", + 1.075799998943694 + ], + [ + "Preparando detalhes industriais", + 7.5880999938817695 + ], + [ + "Preparando detalhes industriais", + 8.022699999855831 + ], + [ + "Preparando detalhes industriais", + 6.545399999595247 + ], + [ + "Preparando detalhes industriais", + 8.894400001736358 + ], + [ + "Preparando detalhes industriais", + 6.99539999186527 + ], + [ + "Suavizando textura do chão", + 1.5838999970583245 + ], + [ + "Suavizando textura do chão", + 0.8282000053441152 + ], + [ + "Suavizando textura do chão", + 0.46999999904073775 + ], + [ + "Suavizando textura do chão", + 0.221800000872463 + ], + [ + "Suavizando textura do chão", + 0.0833000085549429 + ], + [ + "Suavizando textura do chão", + 0.04089999129064381 + ], + [ + "Alocando faixas do chão", + 0.3395000094315037 + ], + [ + "Alocando faixas do chão", + 0.27889999910257757 + ], + [ + "Alocando faixas do chão", + 0.3085000062128529 + ], + [ + "Alocando faixas do chão", + 0.3301999968243763 + ], + [ + "Alocando faixas do chão", + 0.3808000037679449 + ], + [ + "Alocando faixas do chão", + 0.450699997600168 + ], + [ + "Alocando faixas do chão", + 0.45360000513028353 + ], + [ + "Alocando faixas do chão", + 0.5988999910186976 + ], + [ + "Alocando faixas do chão", + 0.40160000207833946 + ], + [ + "Preparando fauna", + 59.48169999464881 + ], + [ + "Carregando elementos regionais", + 7.115500004147179 + ], + [ + "Carregando elementos regionais", + 8.765199992922135 + ], + [ + "Carregando elementos regionais", + 9.934600006090477 + ], + [ + "Preparando obstáculos regionais", + 11.359099997207522 + ], + [ + "Preparando avião", + 19.954999996116385 + ], + [ + "Aplicando pintura", + 0.007099995855242014 + ], + [ + "Preparando piloto", + 23.572299993247725 + ], + [ + "Montando visual do voo", + 0.3711000026669353 + ], + [ + "Preparando primeira vista", + 20.60679999704007 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.077, + "p95_ms": 0.116, + "p99_ms": 1.392, + "max_ms": 1.392 + }, + "horizon": { + "median_ms": 1.28, + "p95_ms": 1.771, + "p99_ms": 2.022, + "max_ms": 2.022 + }, + "ground": { + "median_ms": 2.348, + "p95_ms": 3.203, + "p99_ms": 3.249, + "max_ms": 3.249 + }, + "route_and_banks": { + "median_ms": 5.573, + "p95_ms": 7.005, + "p99_ms": 7.637, + "max_ms": 7.637 + }, + "background": { + "median_ms": 6.865, + "p95_ms": 8.705, + "p99_ms": 9.048, + "max_ms": 9.048 + }, + "plane": { + "median_ms": 0.115, + "p95_ms": 0.483, + "p99_ms": 0.637, + "max_ms": 0.637 + }, + "entities_and_effects": { + "median_ms": 7.66, + "p95_ms": 10.056, + "p99_ms": 10.201, + "max_ms": 10.201 + }, + "world": { + "median_ms": 7.665, + "p95_ms": 10.063, + "p99_ms": 10.209, + "max_ms": 10.209 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.458, + "p99_ms": 0.765, + "max_ms": 0.765 + }, + "scene": { + "median_ms": 9.381, + "p95_ms": 12.049, + "p99_ms": 12.363, + "max_ms": 12.363 + }, + "canvas": { + "median_ms": 9.559, + "p95_ms": 12.186, + "p99_ms": 12.479, + "max_ms": 12.479 + }, + "present": { + "median_ms": 0.262, + "p95_ms": 0.349, + "p99_ms": 0.37, + "max_ms": 0.37 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.077, + "p95_ms": 0.116, + "p99_ms": 1.392, + "max_ms": 1.392 + }, + "horizon": { + "median_ms": 1.28, + "p95_ms": 1.771, + "p99_ms": 2.022, + "max_ms": 2.022 + }, + "ground": { + "median_ms": 2.348, + "p95_ms": 3.203, + "p99_ms": 3.249, + "max_ms": 3.249 + }, + "route_and_banks": { + "median_ms": 3.193, + "p95_ms": 4.434, + "p99_ms": 4.483, + "max_ms": 4.483 + }, + "background": { + "median_ms": 0.409, + "p95_ms": 0.523, + "p99_ms": 0.554, + "max_ms": 0.554 + }, + "plane": { + "median_ms": 0.115, + "p95_ms": 0.483, + "p99_ms": 0.637, + "max_ms": 0.637 + }, + "entities_and_effects": { + "median_ms": 0.7, + "p95_ms": 1.138, + "p99_ms": 1.321, + "max_ms": 1.321 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.008, + "max_ms": 0.008 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.458, + "p99_ms": 0.765, + "max_ms": 0.765 + }, + "scene": { + "median_ms": 1.543, + "p95_ms": 2.114, + "p99_ms": 2.193, + "max_ms": 2.193 + }, + "canvas": { + "median_ms": 0.034, + "p95_ms": 0.041, + "p99_ms": 0.073, + "max_ms": 0.073 + }, + "present": { + "median_ms": 0.262, + "p95_ms": 0.349, + "p99_ms": 0.37, + "max_ms": 0.37 + } + }, + "rss_bytes": 239947776, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10378, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-4.json b/docs/validacao-v1.7/desempenho/cold-caatinga-4.json new file mode 100644 index 0000000..ccebabb --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-4.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 704.66, + "rss_before_bytes": 41144320, + "rss_after_bytes": 100769792, + "rss_delta_bytes": 59625472, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.855, + "p95_ms": 13.621, + "p99_ms": 16.218, + "max_ms": 16.218 + }, + "scene_setup_ms": 9.288, + "warmup": { + "median_ms": 7.276, + "p95_ms": 10.526, + "p99_ms": 33.362, + "max_ms": 33.362 + }, + "first_preparation_frame_ms": 66.063, + "first_interactive_frame_ms": 33.362, + "preparation_frames": 26, + "preparation_frame_cost": { + "median_ms": 7.377, + "p95_ms": 65.428, + "p99_ms": 66.063, + "max_ms": 66.063 + }, + "time_until_first_interactive_ms": 483.349, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.22000000195112 + ], + [ + "Preparando paisagem", + 19.461699994280934 + ], + [ + "Preparando paisagem", + 19.15249999728985 + ], + [ + "Preparando textura do percurso", + 60.15109999862034 + ], + [ + "Preparando margens", + 64.74180000077467 + ], + [ + "Preparando margens", + 0.4189000028418377 + ], + [ + "Preparando margens", + 0.37519999023061246 + ], + [ + "Preparando margens", + 0.3949999954784289 + ], + [ + "Preparando margens", + 0.3606999962357804 + ], + [ + "Preparando margens", + 0.6969000096432865 + ], + [ + "Preparando margens", + 0.45980000868439674 + ], + [ + "Preparando margens", + 0.3332999913254753 + ], + [ + "Preparando margens", + 0.6627999973716214 + ], + [ + "Preparando margens", + 0.5290999979479238 + ], + [ + "Preparando margens", + 0.5664000054821372 + ], + [ + "Preparando margens", + 0.8238999871537089 + ], + [ + "Preparando detalhes industriais", + 5.732100005843677 + ], + [ + "Preparando detalhes industriais", + 6.815300002926961 + ], + [ + "Preparando detalhes industriais", + 5.847599997650832 + ], + [ + "Preparando detalhes industriais", + 8.449000000837259 + ], + [ + "Preparando detalhes industriais", + 6.630600008065812 + ], + [ + "Suavizando textura do chão", + 1.6817000141600147 + ], + [ + "Suavizando textura do chão", + 0.86600000213366 + ], + [ + "Suavizando textura do chão", + 0.44210000487510115 + ], + [ + "Suavizando textura do chão", + 0.22519999765791 + ], + [ + "Suavizando textura do chão", + 0.09020000288728625 + ], + [ + "Suavizando textura do chão", + 0.044899992644786835 + ], + [ + "Alocando faixas do chão", + 0.338700003339909 + ], + [ + "Alocando faixas do chão", + 0.31900001340545714 + ], + [ + "Alocando faixas do chão", + 0.364200008334592 + ], + [ + "Alocando faixas do chão", + 0.3603999939514324 + ], + [ + "Alocando faixas do chão", + 0.4430999979376793 + ], + [ + "Alocando faixas do chão", + 0.522699992870912 + ], + [ + "Alocando faixas do chão", + 0.5798999918624759 + ], + [ + "Alocando faixas do chão", + 0.7397999870590866 + ], + [ + "Alocando faixas do chão", + 0.4265000025043264 + ], + [ + "Preparando fauna", + 58.90369998815004 + ], + [ + "Carregando elementos regionais", + 6.022500005201437 + ], + [ + "Carregando elementos regionais", + 6.5264000004390255 + ], + [ + "Carregando elementos regionais", + 5.539199992199428 + ], + [ + "Preparando obstáculos regionais", + 7.435999999870546 + ], + [ + "Preparando avião", + 14.950600001611747 + ], + [ + "Aplicando pintura", + 0.006299989763647318 + ], + [ + "Preparando piloto", + 18.753800002741627 + ], + [ + "Montando visual do voo", + 0.32639999699313194 + ], + [ + "Preparando primeira vista", + 18.23020000301767 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.076, + "p95_ms": 0.135, + "p99_ms": 1.519, + "max_ms": 1.519 + }, + "horizon": { + "median_ms": 1.304, + "p95_ms": 1.809, + "p99_ms": 1.884, + "max_ms": 1.884 + }, + "ground": { + "median_ms": 2.304, + "p95_ms": 3.471, + "p99_ms": 3.523, + "max_ms": 3.523 + }, + "route_and_banks": { + "median_ms": 5.297, + "p95_ms": 7.592, + "p99_ms": 9.134, + "max_ms": 9.134 + }, + "background": { + "median_ms": 6.788, + "p95_ms": 9.422, + "p99_ms": 11.055, + "max_ms": 11.055 + }, + "plane": { + "median_ms": 0.116, + "p95_ms": 0.419, + "p99_ms": 0.636, + "max_ms": 0.636 + }, + "entities_and_effects": { + "median_ms": 7.65, + "p95_ms": 11.224, + "p99_ms": 12.731, + "max_ms": 12.731 + }, + "world": { + "median_ms": 7.655, + "p95_ms": 11.232, + "p99_ms": 12.739, + "max_ms": 12.739 + }, + "hud": { + "median_ms": 0.294, + "p95_ms": 0.434, + "p99_ms": 0.45, + "max_ms": 0.45 + }, + "scene": { + "median_ms": 9.443, + "p95_ms": 13.15, + "p99_ms": 15.736, + "max_ms": 15.736 + }, + "canvas": { + "median_ms": 9.555, + "p95_ms": 13.335, + "p99_ms": 15.868, + "max_ms": 15.868 + }, + "present": { + "median_ms": 0.261, + "p95_ms": 0.416, + "p99_ms": 0.499, + "max_ms": 0.499 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.076, + "p95_ms": 0.135, + "p99_ms": 1.519, + "max_ms": 1.519 + }, + "horizon": { + "median_ms": 1.304, + "p95_ms": 1.809, + "p99_ms": 1.884, + "max_ms": 1.884 + }, + "ground": { + "median_ms": 2.304, + "p95_ms": 3.471, + "p99_ms": 3.523, + "max_ms": 3.523 + }, + "route_and_banks": { + "median_ms": 3.058, + "p95_ms": 4.351, + "p99_ms": 6.671, + "max_ms": 6.671 + }, + "background": { + "median_ms": 0.372, + "p95_ms": 0.576, + "p99_ms": 0.777, + "max_ms": 0.777 + }, + "plane": { + "median_ms": 0.116, + "p95_ms": 0.419, + "p99_ms": 0.636, + "max_ms": 0.636 + }, + "entities_and_effects": { + "median_ms": 0.723, + "p95_ms": 1.167, + "p99_ms": 1.495, + "max_ms": 1.495 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.008, + "p99_ms": 0.01, + "max_ms": 0.01 + }, + "hud": { + "median_ms": 0.294, + "p95_ms": 0.434, + "p99_ms": 0.45, + "max_ms": 0.45 + }, + "scene": { + "median_ms": 1.532, + "p95_ms": 2.301, + "p99_ms": 2.547, + "max_ms": 2.547 + }, + "canvas": { + "median_ms": 0.033, + "p95_ms": 0.052, + "p99_ms": 0.052, + "max_ms": 0.052 + }, + "present": { + "median_ms": 0.261, + "p95_ms": 0.416, + "p99_ms": 0.499, + "max_ms": 0.499 + } + }, + "rss_bytes": 240439296, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10377, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-5.json b/docs/validacao-v1.7/desempenho/cold-caatinga-5.json new file mode 100644 index 0000000..1eda53d --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-5.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 764.05, + "rss_before_bytes": 41168896, + "rss_after_bytes": 100777984, + "rss_delta_bytes": 59609088, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.433, + "p95_ms": 11.46, + "p99_ms": 11.886, + "max_ms": 11.886 + }, + "scene_setup_ms": 8.11, + "warmup": { + "median_ms": 7.341, + "p95_ms": 12.375, + "p99_ms": 28.597, + "max_ms": 28.597 + }, + "first_preparation_frame_ms": 58.879, + "first_interactive_frame_ms": 28.597, + "preparation_frames": 26, + "preparation_frame_cost": { + "median_ms": 8.93, + "p95_ms": 65.314, + "p99_ms": 67.153, + "max_ms": 67.153 + }, + "time_until_first_interactive_ms": 481.3, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.385699997656047 + ], + [ + "Preparando paisagem", + 20.53729999170173 + ], + [ + "Preparando paisagem", + 22.19019999029115 + ], + [ + "Preparando textura do percurso", + 66.34539998776745 + ], + [ + "Preparando margens", + 64.6122999896761 + ], + [ + "Preparando margens", + 0.49029999354388565 + ], + [ + "Preparando margens", + 0.45789999421685934 + ], + [ + "Preparando margens", + 0.5044999998062849 + ], + [ + "Preparando margens", + 0.3858999989461154 + ], + [ + "Preparando margens", + 0.4734000103781 + ], + [ + "Preparando margens", + 0.38470000436063856 + ], + [ + "Preparando margens", + 0.35429999115876853 + ], + [ + "Preparando margens", + 0.5169999931240454 + ], + [ + "Preparando margens", + 0.5907000013394281 + ], + [ + "Preparando margens", + 0.5412000027718022 + ], + [ + "Preparando margens", + 0.9175000013783574 + ], + [ + "Preparando detalhes industriais", + 8.470500004477799 + ], + [ + "Preparando detalhes industriais", + 10.01420000102371 + ], + [ + "Preparando detalhes industriais", + 7.464500013156794 + ], + [ + "Preparando detalhes industriais", + 8.636300000944175 + ], + [ + "Preparando detalhes industriais", + 5.888300001970492 + ], + [ + "Suavizando textura do chão", + 1.5743999974802136 + ], + [ + "Suavizando textura do chão", + 0.8168999920599163 + ], + [ + "Suavizando textura do chão", + 0.37399999564513564 + ], + [ + "Suavizando textura do chão", + 0.1931000006152317 + ], + [ + "Suavizando textura do chão", + 0.0847000046633184 + ], + [ + "Suavizando textura do chão", + 0.042800005758181214 + ], + [ + "Alocando faixas do chão", + 0.2952999930130318 + ], + [ + "Alocando faixas do chão", + 0.27370000316295773 + ], + [ + "Alocando faixas do chão", + 0.2995999966515228 + ], + [ + "Alocando faixas do chão", + 0.3149999974993989 + ], + [ + "Alocando faixas do chão", + 0.35400000342633575 + ], + [ + "Alocando faixas do chão", + 0.4337999998824671 + ], + [ + "Alocando faixas do chão", + 0.4520999937085435 + ], + [ + "Alocando faixas do chão", + 0.538699998287484 + ], + [ + "Alocando faixas do chão", + 0.3237000055378303 + ], + [ + "Preparando fauna", + 50.942900008521974 + ], + [ + "Carregando elementos regionais", + 6.380500009981915 + ], + [ + "Carregando elementos regionais", + 7.141199996112846 + ], + [ + "Carregando elementos regionais", + 5.3998000075807795 + ], + [ + "Preparando obstáculos regionais", + 7.823400010238402 + ], + [ + "Preparando avião", + 15.775100007886067 + ], + [ + "Aplicando pintura", + 0.006200003554113209 + ], + [ + "Preparando piloto", + 19.045599998207763 + ], + [ + "Montando visual do voo", + 0.3171999996993691 + ], + [ + "Preparando primeira vista", + 16.084499991848134 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.072, + "p95_ms": 0.137, + "p99_ms": 1.297, + "max_ms": 1.297 + }, + "horizon": { + "median_ms": 1.221, + "p95_ms": 1.909, + "p99_ms": 2.116, + "max_ms": 2.116 + }, + "ground": { + "median_ms": 2.188, + "p95_ms": 2.84, + "p99_ms": 3.361, + "max_ms": 3.361 + }, + "route_and_banks": { + "median_ms": 5.171, + "p95_ms": 7.004, + "p99_ms": 7.629, + "max_ms": 7.629 + }, + "background": { + "median_ms": 6.519, + "p95_ms": 7.974, + "p99_ms": 8.842, + "max_ms": 8.842 + }, + "plane": { + "median_ms": 0.111, + "p95_ms": 0.548, + "p99_ms": 0.774, + "max_ms": 0.774 + }, + "entities_and_effects": { + "median_ms": 7.392, + "p95_ms": 9.337, + "p99_ms": 9.605, + "max_ms": 9.605 + }, + "world": { + "median_ms": 7.397, + "p95_ms": 9.343, + "p99_ms": 9.61, + "max_ms": 9.61 + }, + "hud": { + "median_ms": 0.273, + "p95_ms": 0.35, + "p99_ms": 0.392, + "max_ms": 0.392 + }, + "scene": { + "median_ms": 9.085, + "p95_ms": 11.119, + "p99_ms": 11.538, + "max_ms": 11.538 + }, + "canvas": { + "median_ms": 9.188, + "p95_ms": 11.219, + "p99_ms": 11.637, + "max_ms": 11.637 + }, + "present": { + "median_ms": 0.25, + "p95_ms": 0.339, + "p99_ms": 0.349, + "max_ms": 0.349 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.072, + "p95_ms": 0.137, + "p99_ms": 1.297, + "max_ms": 1.297 + }, + "horizon": { + "median_ms": 1.221, + "p95_ms": 1.909, + "p99_ms": 2.116, + "max_ms": 2.116 + }, + "ground": { + "median_ms": 2.188, + "p95_ms": 2.84, + "p99_ms": 3.361, + "max_ms": 3.361 + }, + "route_and_banks": { + "median_ms": 2.944, + "p95_ms": 4.164, + "p99_ms": 4.268, + "max_ms": 4.268 + }, + "background": { + "median_ms": 0.339, + "p95_ms": 0.515, + "p99_ms": 0.58, + "max_ms": 0.58 + }, + "plane": { + "median_ms": 0.111, + "p95_ms": 0.548, + "p99_ms": 0.774, + "max_ms": 0.774 + }, + "entities_and_effects": { + "median_ms": 0.693, + "p95_ms": 1.378, + "p99_ms": 1.552, + "max_ms": 1.552 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.006, + "p99_ms": 0.006, + "max_ms": 0.006 + }, + "hud": { + "median_ms": 0.273, + "p95_ms": 0.35, + "p99_ms": 0.392, + "max_ms": 0.392 + }, + "scene": { + "median_ms": 1.429, + "p95_ms": 1.845, + "p99_ms": 2.293, + "max_ms": 2.293 + }, + "canvas": { + "median_ms": 0.03, + "p95_ms": 0.054, + "p99_ms": 0.058, + "max_ms": 0.058 + }, + "present": { + "median_ms": 0.25, + "p95_ms": 0.339, + "p99_ms": 0.349, + "max_ms": 0.349 + } + }, + "rss_bytes": 240037888, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10377, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-6.json b/docs/validacao-v1.7/desempenho/cold-caatinga-6.json new file mode 100644 index 0000000..c65d3db --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-6.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 788.24, + "rss_before_bytes": 41111552, + "rss_after_bytes": 100724736, + "rss_delta_bytes": 59613184, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.406, + "p95_ms": 11.914, + "p99_ms": 13.35, + "max_ms": 13.35 + }, + "scene_setup_ms": 6.744, + "warmup": { + "median_ms": 7.073, + "p95_ms": 11.412, + "p99_ms": 38.382, + "max_ms": 38.382 + }, + "first_preparation_frame_ms": 56.626, + "first_interactive_frame_ms": 38.382, + "preparation_frames": 25, + "preparation_frame_cost": { + "median_ms": 7.75, + "p95_ms": 60.529, + "p99_ms": 61.216, + "max_ms": 61.216 + }, + "time_until_first_interactive_ms": 475.511, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.56229998904746 + ], + [ + "Preparando paisagem", + 21.121400000993162 + ], + [ + "Preparando paisagem", + 20.528099994407967 + ], + [ + "Preparando textura do percurso", + 60.46490000153426 + ], + [ + "Preparando margens", + 59.91199999698438 + ], + [ + "Preparando margens", + 0.4393999988678843 + ], + [ + "Preparando margens", + 0.41059999784920365 + ], + [ + "Preparando margens", + 0.43620000360533595 + ], + [ + "Preparando margens", + 0.3848000051220879 + ], + [ + "Preparando margens", + 0.4600000102072954 + ], + [ + "Preparando margens", + 0.3507000074023381 + ], + [ + "Preparando margens", + 0.36249999538995326 + ], + [ + "Preparando margens", + 0.5070999905001372 + ], + [ + "Preparando margens", + 0.5438999942271039 + ], + [ + "Preparando margens", + 0.6483000033767894 + ], + [ + "Preparando margens", + 0.9123999916482717 + ], + [ + "Preparando detalhes industriais", + 5.965100004686974 + ], + [ + "Preparando detalhes industriais", + 6.525200005853549 + ], + [ + "Preparando detalhes industriais", + 5.88939999579452 + ], + [ + "Preparando detalhes industriais", + 7.423000002745539 + ], + [ + "Preparando detalhes industriais", + 5.887000006623566 + ], + [ + "Suavizando textura do chão", + 1.371700011077337 + ], + [ + "Suavizando textura do chão", + 0.6698999932268634 + ], + [ + "Suavizando textura do chão", + 0.344899992342107 + ], + [ + "Suavizando textura do chão", + 0.18180000188294798 + ], + [ + "Suavizando textura do chão", + 0.06679999933112413 + ], + [ + "Suavizando textura do chão", + 0.03480000304989517 + ], + [ + "Alocando faixas do chão", + 0.2852000034181401 + ], + [ + "Alocando faixas do chão", + 0.2643999905558303 + ], + [ + "Alocando faixas do chão", + 0.29660000291187316 + ], + [ + "Alocando faixas do chão", + 0.3372999926796183 + ], + [ + "Alocando faixas do chão", + 0.35519999801181257 + ], + [ + "Alocando faixas do chão", + 0.4231999919284135 + ], + [ + "Alocando faixas do chão", + 0.4520999937085435 + ], + [ + "Alocando faixas do chão", + 0.523299997439608 + ], + [ + "Alocando faixas do chão", + 0.3580999909900129 + ], + [ + "Preparando fauna", + 51.88579999958165 + ], + [ + "Carregando elementos regionais", + 6.416499993065372 + ], + [ + "Carregando elementos regionais", + 7.102999996277504 + ], + [ + "Carregando elementos regionais", + 5.318099996657111 + ], + [ + "Preparando obstáculos regionais", + 7.9698999907122925 + ], + [ + "Preparando avião", + 17.19569999841042 + ], + [ + "Aplicando pintura", + 0.007000009645707905 + ], + [ + "Preparando piloto", + 22.173699995619245 + ], + [ + "Montando visual do voo", + 0.3377000102773309 + ], + [ + "Preparando primeira vista", + 20.478299993555993 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.076, + "p95_ms": 0.156, + "p99_ms": 1.851, + "max_ms": 1.851 + }, + "horizon": { + "median_ms": 1.28, + "p95_ms": 1.727, + "p99_ms": 1.893, + "max_ms": 1.893 + }, + "ground": { + "median_ms": 2.246, + "p95_ms": 2.836, + "p99_ms": 2.998, + "max_ms": 2.998 + }, + "route_and_banks": { + "median_ms": 5.271, + "p95_ms": 6.119, + "p99_ms": 6.317, + "max_ms": 6.317 + }, + "background": { + "median_ms": 6.397, + "p95_ms": 7.891, + "p99_ms": 8.071, + "max_ms": 8.071 + }, + "plane": { + "median_ms": 0.117, + "p95_ms": 0.483, + "p99_ms": 0.575, + "max_ms": 0.575 + }, + "entities_and_effects": { + "median_ms": 7.297, + "p95_ms": 9.003, + "p99_ms": 9.36, + "max_ms": 9.36 + }, + "world": { + "median_ms": 7.302, + "p95_ms": 9.01, + "p99_ms": 9.365, + "max_ms": 9.365 + }, + "hud": { + "median_ms": 0.286, + "p95_ms": 0.44, + "p99_ms": 0.486, + "max_ms": 0.486 + }, + "scene": { + "median_ms": 9.021, + "p95_ms": 10.973, + "p99_ms": 11.535, + "max_ms": 11.535 + }, + "canvas": { + "median_ms": 9.135, + "p95_ms": 11.628, + "p99_ms": 12.88, + "max_ms": 12.88 + }, + "present": { + "median_ms": 0.252, + "p95_ms": 0.444, + "p99_ms": 0.461, + "max_ms": 0.461 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.076, + "p95_ms": 0.156, + "p99_ms": 1.851, + "max_ms": 1.851 + }, + "horizon": { + "median_ms": 1.28, + "p95_ms": 1.727, + "p99_ms": 1.893, + "max_ms": 1.893 + }, + "ground": { + "median_ms": 2.246, + "p95_ms": 2.836, + "p99_ms": 2.998, + "max_ms": 2.998 + }, + "route_and_banks": { + "median_ms": 2.982, + "p95_ms": 3.76, + "p99_ms": 4.03, + "max_ms": 4.03 + }, + "background": { + "median_ms": 0.356, + "p95_ms": 0.58, + "p99_ms": 0.582, + "max_ms": 0.582 + }, + "plane": { + "median_ms": 0.117, + "p95_ms": 0.483, + "p99_ms": 0.575, + "max_ms": 0.575 + }, + "entities_and_effects": { + "median_ms": 0.681, + "p95_ms": 1.015, + "p99_ms": 1.697, + "max_ms": 1.697 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.006, + "p99_ms": 0.026, + "max_ms": 0.026 + }, + "hud": { + "median_ms": 0.286, + "p95_ms": 0.44, + "p99_ms": 0.486, + "max_ms": 0.486 + }, + "scene": { + "median_ms": 1.524, + "p95_ms": 1.909, + "p99_ms": 2.446, + "max_ms": 2.446 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.06, + "p99_ms": 0.089, + "max_ms": 0.089 + }, + "present": { + "median_ms": 0.252, + "p95_ms": 0.444, + "p99_ms": 0.461, + "max_ms": 0.461 + } + }, + "rss_bytes": 240545792, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10376, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-7.json b/docs/validacao-v1.7/desempenho/cold-caatinga-7.json new file mode 100644 index 0000000..f640ac3 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-7.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 737.29, + "rss_before_bytes": 41091072, + "rss_after_bytes": 101044224, + "rss_delta_bytes": 59953152, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.187, + "p95_ms": 15.316, + "p99_ms": 15.877, + "max_ms": 15.877 + }, + "scene_setup_ms": 6.519, + "warmup": { + "median_ms": 7.106, + "p95_ms": 12.879, + "p99_ms": 28.814, + "max_ms": 28.814 + }, + "first_preparation_frame_ms": 73.669, + "first_interactive_frame_ms": 28.814, + "preparation_frames": 26, + "preparation_frame_cost": { + "median_ms": 9.108, + "p95_ms": 68.403, + "p99_ms": 73.669, + "max_ms": 73.669 + }, + "time_until_first_interactive_ms": 507.365, + "preparation_tasks": [ + [ + "Preparando paisagem", + 22.438700005295686 + ], + [ + "Preparando paisagem", + 23.00909999758005 + ], + [ + "Preparando paisagem", + 23.296699990169145 + ], + [ + "Preparando textura do percurso", + 67.54910000017844 + ], + [ + "Preparando margens", + 62.32070000260137 + ], + [ + "Preparando margens", + 0.6905000045662746 + ], + [ + "Preparando margens", + 0.6353000062517822 + ], + [ + "Preparando margens", + 0.7036999886622652 + ], + [ + "Preparando margens", + 0.5342999938875437 + ], + [ + "Preparando margens", + 0.7482000073650852 + ], + [ + "Preparando margens", + 0.6526999932248145 + ], + [ + "Preparando margens", + 0.5114999949000776 + ], + [ + "Preparando margens", + 0.7723000016994774 + ], + [ + "Preparando margens", + 0.7777999999234453 + ], + [ + "Preparando margens", + 0.7981999951880425 + ], + [ + "Preparando margens", + 1.2125000066589564 + ], + [ + "Preparando detalhes industriais", + 8.408400011830963 + ], + [ + "Preparando detalhes industriais", + 9.774199992534705 + ], + [ + "Preparando detalhes industriais", + 8.01330000103917 + ], + [ + "Preparando detalhes industriais", + 11.585100000957027 + ], + [ + "Preparando detalhes industriais", + 5.724000002373941 + ], + [ + "Suavizando textura do chão", + 1.620999988517724 + ], + [ + "Suavizando textura do chão", + 0.651299997116439 + ], + [ + "Suavizando textura do chão", + 0.3200000064680353 + ], + [ + "Suavizando textura do chão", + 0.1588000013725832 + ], + [ + "Suavizando textura do chão", + 0.06259999645408243 + ], + [ + "Suavizando textura do chão", + 0.0320999970426783 + ], + [ + "Alocando faixas do chão", + 0.1905999961309135 + ], + [ + "Alocando faixas do chão", + 0.21920001017861068 + ], + [ + "Alocando faixas do chão", + 0.2700999903026968 + ], + [ + "Alocando faixas do chão", + 0.2820000081555918 + ], + [ + "Alocando faixas do chão", + 0.3124999930150807 + ], + [ + "Alocando faixas do chão", + 0.3696999920066446 + ], + [ + "Alocando faixas do chão", + 0.41259999852627516 + ], + [ + "Alocando faixas do chão", + 0.726399986888282 + ], + [ + "Alocando faixas do chão", + 0.4093000025022775 + ], + [ + "Preparando fauna", + 50.562700009322725 + ], + [ + "Carregando elementos regionais", + 6.614500001887791 + ], + [ + "Carregando elementos regionais", + 6.382200008374639 + ], + [ + "Carregando elementos regionais", + 5.681099995854311 + ], + [ + "Preparando obstáculos regionais", + 7.577199998195283 + ], + [ + "Preparando avião", + 15.061800004332326 + ], + [ + "Aplicando pintura", + 0.006799993570894003 + ], + [ + "Preparando piloto", + 19.10879999923054 + ], + [ + "Montando visual do voo", + 0.29240000003483146 + ], + [ + "Preparando primeira vista", + 17.225500007043593 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.069, + "p95_ms": 0.161, + "p99_ms": 1.085, + "max_ms": 1.085 + }, + "horizon": { + "median_ms": 1.087, + "p95_ms": 1.646, + "p99_ms": 2.255, + "max_ms": 2.255 + }, + "ground": { + "median_ms": 2.173, + "p95_ms": 4.216, + "p99_ms": 4.397, + "max_ms": 4.397 + }, + "route_and_banks": { + "median_ms": 4.888, + "p95_ms": 10.034, + "p99_ms": 10.124, + "max_ms": 10.124 + }, + "background": { + "median_ms": 6.228, + "p95_ms": 10.556, + "p99_ms": 12.965, + "max_ms": 12.965 + }, + "plane": { + "median_ms": 0.11, + "p95_ms": 0.471, + "p99_ms": 0.612, + "max_ms": 0.612 + }, + "entities_and_effects": { + "median_ms": 7.049, + "p95_ms": 11.671, + "p99_ms": 13.762, + "max_ms": 13.762 + }, + "world": { + "median_ms": 7.053, + "p95_ms": 11.682, + "p99_ms": 13.769, + "max_ms": 13.769 + }, + "hud": { + "median_ms": 0.26, + "p95_ms": 0.474, + "p99_ms": 0.514, + "max_ms": 0.514 + }, + "scene": { + "median_ms": 8.781, + "p95_ms": 14.754, + "p99_ms": 15.464, + "max_ms": 15.464 + }, + "canvas": { + "median_ms": 8.893, + "p95_ms": 14.974, + "p99_ms": 15.641, + "max_ms": 15.641 + }, + "present": { + "median_ms": 0.238, + "p95_ms": 0.371, + "p99_ms": 0.438, + "max_ms": 0.438 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.069, + "p95_ms": 0.161, + "p99_ms": 1.085, + "max_ms": 1.085 + }, + "horizon": { + "median_ms": 1.087, + "p95_ms": 1.646, + "p99_ms": 2.255, + "max_ms": 2.255 + }, + "ground": { + "median_ms": 2.173, + "p95_ms": 4.216, + "p99_ms": 4.397, + "max_ms": 4.397 + }, + "route_and_banks": { + "median_ms": 2.829, + "p95_ms": 5.636, + "p99_ms": 5.908, + "max_ms": 5.908 + }, + "background": { + "median_ms": 0.335, + "p95_ms": 0.596, + "p99_ms": 0.798, + "max_ms": 0.798 + }, + "plane": { + "median_ms": 0.11, + "p95_ms": 0.471, + "p99_ms": 0.612, + "max_ms": 0.612 + }, + "entities_and_effects": { + "median_ms": 0.692, + "p95_ms": 0.927, + "p99_ms": 1.112, + "max_ms": 1.112 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.008, + "p99_ms": 0.011, + "max_ms": 0.011 + }, + "hud": { + "median_ms": 0.26, + "p95_ms": 0.474, + "p99_ms": 0.514, + "max_ms": 0.514 + }, + "scene": { + "median_ms": 1.419, + "p95_ms": 2.648, + "p99_ms": 3.009, + "max_ms": 3.009 + }, + "canvas": { + "median_ms": 0.029, + "p95_ms": 0.057, + "p99_ms": 0.063, + "max_ms": 0.063 + }, + "present": { + "median_ms": 0.238, + "p95_ms": 0.371, + "p99_ms": 0.438, + "max_ms": 0.438 + } + }, + "rss_bytes": 240148480, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10377, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-8.json b/docs/validacao-v1.7/desempenho/cold-caatinga-8.json new file mode 100644 index 0000000..56fc867 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-8.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 673.69, + "rss_before_bytes": 41009152, + "rss_after_bytes": 100593664, + "rss_delta_bytes": 59584512, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 10.021, + "p95_ms": 14.051, + "p99_ms": 14.439, + "max_ms": 14.439 + }, + "scene_setup_ms": 7.172, + "warmup": { + "median_ms": 6.381, + "p95_ms": 11.862, + "p99_ms": 30.821, + "max_ms": 30.821 + }, + "first_preparation_frame_ms": 77.204, + "first_interactive_frame_ms": 30.821, + "preparation_frames": 26, + "preparation_frame_cost": { + "median_ms": 7.783, + "p95_ms": 67.065, + "p99_ms": 77.204, + "max_ms": 77.204 + }, + "time_until_first_interactive_ms": 517.768, + "preparation_tasks": [ + [ + "Preparando paisagem", + 19.58589999412652 + ], + [ + "Preparando paisagem", + 27.66029999474995 + ], + [ + "Preparando paisagem", + 27.198399999178946 + ], + [ + "Preparando textura do percurso", + 66.15100000635721 + ], + [ + "Preparando margens", + 64.22980000206735 + ], + [ + "Preparando margens", + 0.4928999987896532 + ], + [ + "Preparando margens", + 0.46969999675638974 + ], + [ + "Preparando margens", + 0.5723000067519024 + ], + [ + "Preparando margens", + 0.7291999936569482 + ], + [ + "Preparando margens", + 0.5012999899918213 + ], + [ + "Preparando margens", + 0.36049999471288174 + ], + [ + "Preparando margens", + 0.4709000058937818 + ], + [ + "Preparando margens", + 0.48349999997299165 + ], + [ + "Preparando margens", + 0.4602999979397282 + ], + [ + "Preparando margens", + 0.4859000036958605 + ], + [ + "Preparando margens", + 0.9147999953711405 + ], + [ + "Preparando detalhes industriais", + 6.479999996372499 + ], + [ + "Preparando detalhes industriais", + 6.9125000009080395 + ], + [ + "Preparando detalhes industriais", + 5.423299997346476 + ], + [ + "Preparando detalhes industriais", + 7.765699992887676 + ], + [ + "Preparando detalhes industriais", + 5.906000005779788 + ], + [ + "Suavizando textura do chão", + 1.5149999962886795 + ], + [ + "Suavizando textura do chão", + 0.6854000093881041 + ], + [ + "Suavizando textura do chão", + 0.33680000342428684 + ], + [ + "Suavizando textura do chão", + 0.17749999824445695 + ], + [ + "Suavizando textura do chão", + 0.06890000076964498 + ], + [ + "Suavizando textura do chão", + 0.03720000677276403 + ], + [ + "Alocando faixas do chão", + 0.29429999995045364 + ], + [ + "Alocando faixas do chão", + 0.3814000083366409 + ], + [ + "Alocando faixas do chão", + 0.3584000078262761 + ], + [ + "Alocando faixas do chão", + 0.46660000225529075 + ], + [ + "Alocando faixas do chão", + 0.41680000140331686 + ], + [ + "Alocando faixas do chão", + 0.414699999964796 + ], + [ + "Alocando faixas do chão", + 0.4135000053793192 + ], + [ + "Alocando faixas do chão", + 0.534099992364645 + ], + [ + "Alocando faixas do chão", + 0.3125000075669959 + ], + [ + "Preparando fauna", + 57.206900004530326 + ], + [ + "Carregando elementos regionais", + 6.0754000005545095 + ], + [ + "Carregando elementos regionais", + 6.149599998025224 + ], + [ + "Carregando elementos regionais", + 5.420900008175522 + ], + [ + "Preparando obstáculos regionais", + 8.112700001220219 + ], + [ + "Preparando avião", + 18.573299996205606 + ], + [ + "Aplicando pintura", + 0.006700007361359894 + ], + [ + "Preparando piloto", + 22.101499998825602 + ], + [ + "Montando visual do voo", + 0.3466000052867457 + ], + [ + "Preparando primeira vista", + 17.135900008725002 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.077, + "p95_ms": 0.121, + "p99_ms": 1.492, + "max_ms": 1.492 + }, + "horizon": { + "median_ms": 1.214, + "p95_ms": 1.788, + "p99_ms": 1.973, + "max_ms": 1.973 + }, + "ground": { + "median_ms": 2.306, + "p95_ms": 3.14, + "p99_ms": 3.247, + "max_ms": 3.247 + }, + "route_and_banks": { + "median_ms": 5.377, + "p95_ms": 8.419, + "p99_ms": 8.424, + "max_ms": 8.424 + }, + "background": { + "median_ms": 6.911, + "p95_ms": 9.251, + "p99_ms": 9.955, + "max_ms": 9.955 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.508, + "p99_ms": 0.532, + "max_ms": 0.532 + }, + "entities_and_effects": { + "median_ms": 7.86, + "p95_ms": 10.303, + "p99_ms": 11.21, + "max_ms": 11.21 + }, + "world": { + "median_ms": 7.865, + "p95_ms": 10.311, + "p99_ms": 11.217, + "max_ms": 11.217 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.45, + "p99_ms": 0.505, + "max_ms": 0.505 + }, + "scene": { + "median_ms": 9.639, + "p95_ms": 12.594, + "p99_ms": 13.633, + "max_ms": 13.633 + }, + "canvas": { + "median_ms": 9.733, + "p95_ms": 13.784, + "p99_ms": 14.127, + "max_ms": 14.127 + }, + "present": { + "median_ms": 0.257, + "p95_ms": 0.371, + "p99_ms": 0.371, + "max_ms": 0.371 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.001, + "max_ms": 0.001 + }, + "rules_update": { + "median_ms": 0.077, + "p95_ms": 0.121, + "p99_ms": 1.492, + "max_ms": 1.492 + }, + "horizon": { + "median_ms": 1.214, + "p95_ms": 1.788, + "p99_ms": 1.973, + "max_ms": 1.973 + }, + "ground": { + "median_ms": 2.306, + "p95_ms": 3.14, + "p99_ms": 3.247, + "max_ms": 3.247 + }, + "route_and_banks": { + "median_ms": 3.229, + "p95_ms": 5.176, + "p99_ms": 5.412, + "max_ms": 5.412 + }, + "background": { + "median_ms": 0.388, + "p95_ms": 0.536, + "p99_ms": 0.54, + "max_ms": 0.54 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.508, + "p99_ms": 0.532, + "max_ms": 0.532 + }, + "entities_and_effects": { + "median_ms": 0.714, + "p95_ms": 1.48, + "p99_ms": 1.484, + "max_ms": 1.484 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.008, + "p99_ms": 0.017, + "max_ms": 0.017 + }, + "hud": { + "median_ms": 0.298, + "p95_ms": 0.45, + "p99_ms": 0.505, + "max_ms": 0.505 + }, + "scene": { + "median_ms": 1.534, + "p95_ms": 2.039, + "p99_ms": 2.153, + "max_ms": 2.153 + }, + "canvas": { + "median_ms": 0.034, + "p95_ms": 0.044, + "p99_ms": 0.052, + "max_ms": 0.052 + }, + "present": { + "median_ms": 0.257, + "p95_ms": 0.371, + "p99_ms": 0.371, + "max_ms": 0.371 + } + }, + "rss_bytes": 240242688, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10377, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/cold-caatinga-9.json b/docs/validacao-v1.7/desempenho/cold-caatinga-9.json new file mode 100644 index 0000000..fdf407f --- /dev/null +++ b/docs/validacao-v1.7/desempenho/cold-caatinga-9.json @@ -0,0 +1,424 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 766.03, + "rss_before_bytes": 41226240, + "rss_after_bytes": 100859904, + "rss_delta_bytes": 59633664, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "caatinga_normal": { + "frame": { + "median_ms": 9.123, + "p95_ms": 11.191, + "p99_ms": 16.034, + "max_ms": 16.034 + }, + "scene_setup_ms": 8.857, + "warmup": { + "median_ms": 7.213, + "p95_ms": 11.39, + "p99_ms": 28.598, + "max_ms": 28.598 + }, + "first_preparation_frame_ms": 63.234, + "first_interactive_frame_ms": 28.598, + "preparation_frames": 26, + "preparation_frame_cost": { + "median_ms": 8.115, + "p95_ms": 63.234, + "p99_ms": 71.219, + "max_ms": 71.219 + }, + "time_until_first_interactive_ms": 479.299, + "preparation_tasks": [ + [ + "Preparando paisagem", + 17.579299994395114 + ], + [ + "Preparando paisagem", + 20.377000008011237 + ], + [ + "Preparando paisagem", + 20.598100003553554 + ], + [ + "Preparando textura do percurso", + 59.30379999335855 + ], + [ + "Preparando margens", + 70.55129999935161 + ], + [ + "Preparando margens", + 0.524800008861348 + ], + [ + "Preparando margens", + 0.5177999992156401 + ], + [ + "Preparando margens", + 0.5658000009134412 + ], + [ + "Preparando margens", + 0.47539999650325626 + ], + [ + "Preparando margens", + 0.5553000082727522 + ], + [ + "Preparando margens", + 0.42799999937415123 + ], + [ + "Preparando margens", + 0.38129999302327633 + ], + [ + "Preparando margens", + 0.6087999936426058 + ], + [ + "Preparando margens", + 0.5892000044696033 + ], + [ + "Preparando margens", + 0.5972999933874235 + ], + [ + "Preparando margens", + 1.082899994798936 + ], + [ + "Preparando detalhes industriais", + 7.597600008011796 + ], + [ + "Preparando detalhes industriais", + 7.600900004035793 + ], + [ + "Preparando detalhes industriais", + 5.172499993932433 + ], + [ + "Preparando detalhes industriais", + 7.319399999687448 + ], + [ + "Preparando detalhes industriais", + 5.289000007905997 + ], + [ + "Suavizando textura do chão", + 1.5501000016229227 + ], + [ + "Suavizando textura do chão", + 0.7602999976370484 + ], + [ + "Suavizando textura do chão", + 0.38889999268576503 + ], + [ + "Suavizando textura do chão", + 0.20080000103916973 + ], + [ + "Suavizando textura do chão", + 0.08759999764151871 + ], + [ + "Suavizando textura do chão", + 0.03750000905711204 + ], + [ + "Alocando faixas do chão", + 0.2967999898828566 + ], + [ + "Alocando faixas do chão", + 0.3206999972462654 + ], + [ + "Alocando faixas do chão", + 0.30339999648276716 + ], + [ + "Alocando faixas do chão", + 0.3476999991107732 + ], + [ + "Alocando faixas do chão", + 0.40210000588558614 + ], + [ + "Alocando faixas do chão", + 0.4622999986167997 + ], + [ + "Alocando faixas do chão", + 0.5134999955771491 + ], + [ + "Alocando faixas do chão", + 0.64820000261534 + ], + [ + "Alocando faixas do chão", + 0.4167999868514016 + ], + [ + "Preparando fauna", + 60.248599998885766 + ], + [ + "Carregando elementos regionais", + 5.867300002137199 + ], + [ + "Carregando elementos regionais", + 6.3119999977061525 + ], + [ + "Carregando elementos regionais", + 5.420200002845377 + ], + [ + "Preparando obstáculos regionais", + 7.523299995227717 + ], + [ + "Preparando avião", + 14.680100008263253 + ], + [ + "Aplicando pintura", + 0.005399997462518513 + ], + [ + "Preparando piloto", + 18.73179999529384 + ], + [ + "Montando visual do voo", + 0.27629999385681003 + ], + [ + "Preparando primeira vista", + 16.35859999805689 + ] + ], + "frames_measured": 30, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.072, + "p95_ms": 0.124, + "p99_ms": 1.083, + "max_ms": 1.083 + }, + "horizon": { + "median_ms": 1.29, + "p95_ms": 2.038, + "p99_ms": 2.059, + "max_ms": 2.059 + }, + "ground": { + "median_ms": 2.145, + "p95_ms": 2.809, + "p99_ms": 3.867, + "max_ms": 3.867 + }, + "route_and_banks": { + "median_ms": 5.029, + "p95_ms": 6.128, + "p99_ms": 8.72, + "max_ms": 8.72 + }, + "background": { + "median_ms": 6.3, + "p95_ms": 8.131, + "p99_ms": 11.305, + "max_ms": 11.305 + }, + "plane": { + "median_ms": 0.103, + "p95_ms": 0.468, + "p99_ms": 0.548, + "max_ms": 0.548 + }, + "entities_and_effects": { + "median_ms": 7.076, + "p95_ms": 8.963, + "p99_ms": 12.76, + "max_ms": 12.76 + }, + "world": { + "median_ms": 7.081, + "p95_ms": 8.97, + "p99_ms": 12.766, + "max_ms": 12.766 + }, + "hud": { + "median_ms": 0.278, + "p95_ms": 0.454, + "p99_ms": 0.473, + "max_ms": 0.473 + }, + "scene": { + "median_ms": 8.731, + "p95_ms": 10.792, + "p99_ms": 15.637, + "max_ms": 15.637 + }, + "canvas": { + "median_ms": 8.863, + "p95_ms": 10.94, + "p99_ms": 15.749, + "max_ms": 15.749 + }, + "present": { + "median_ms": 0.246, + "p95_ms": 0.341, + "p99_ms": 0.41, + "max_ms": 0.41 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.072, + "p95_ms": 0.124, + "p99_ms": 1.083, + "max_ms": 1.083 + }, + "horizon": { + "median_ms": 1.29, + "p95_ms": 2.038, + "p99_ms": 2.059, + "max_ms": 2.059 + }, + "ground": { + "median_ms": 2.145, + "p95_ms": 2.809, + "p99_ms": 3.867, + "max_ms": 3.867 + }, + "route_and_banks": { + "median_ms": 2.994, + "p95_ms": 3.961, + "p99_ms": 4.853, + "max_ms": 4.853 + }, + "background": { + "median_ms": 0.368, + "p95_ms": 0.588, + "p99_ms": 0.621, + "max_ms": 0.621 + }, + "plane": { + "median_ms": 0.103, + "p95_ms": 0.468, + "p99_ms": 0.548, + "max_ms": 0.548 + }, + "entities_and_effects": { + "median_ms": 0.659, + "p95_ms": 0.854, + "p99_ms": 1.279, + "max_ms": 1.279 + }, + "world": { + "median_ms": 0.005, + "p95_ms": 0.007, + "p99_ms": 0.007, + "max_ms": 0.007 + }, + "hud": { + "median_ms": 0.278, + "p95_ms": 0.454, + "p99_ms": 0.473, + "max_ms": 0.473 + }, + "scene": { + "median_ms": 1.447, + "p95_ms": 2.416, + "p99_ms": 2.522, + "max_ms": 2.522 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.052, + "p99_ms": 0.064, + "max_ms": 0.064 + }, + "present": { + "median_ms": 0.246, + "p95_ms": 0.341, + "p99_ms": 0.41, + "max_ms": 0.41 + } + }, + "rss_bytes": 240631808, + "renderer_caches": { + "unique_retained_surface_bytes": 149802208, + "surface_bytes_by_owner": { + "assets": 19497088, + "scene_sprites": 0, + "world_sprite_cache": 581628, + "world_transient": 1069832, + "sky": 0, + "ground": 917504, + "watercolor": 87879516, + "plane_skin": 27015716, + "paper_items": 12840924 + }, + "cache_items": { + "scaled": 1, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 41 + }, + "aggregate_cache_bytes": 74878164, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 10377, + "get_misses": 1184, + "evictions": 171, + "live_caches": 16 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/native-camera-1.json b/docs/validacao-v1.7/desempenho/native-camera-1.json new file mode 100644 index 0000000..d4d5d22 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/native-camera-1.json @@ -0,0 +1,1614 @@ +{ + "version": "1.7.0", + "conditions": "CPU; native window; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 1028.44, + "rss_before_bytes": 41103360, + "rss_after_bytes": 136646656, + "rss_delta_bytes": 95543296, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 14.124, + "p95_ms": 19.117, + "p99_ms": 22.017, + "max_ms": 27.875 + }, + "scene_setup_ms": 14.153, + "warmup": { + "median_ms": 11.883, + "p95_ms": 15.301, + "p99_ms": 44.978, + "max_ms": 44.978 + }, + "first_preparation_frame_ms": 88.5, + "first_interactive_frame_ms": 44.978, + "preparation_frames": 36, + "preparation_frame_cost": { + "median_ms": 9.532, + "p95_ms": 88.5, + "p99_ms": 93.042, + "max_ms": 93.042 + }, + "time_until_first_interactive_ms": 1019.127, + "preparation_tasks": [ + [ + "Preparando paisagem", + 24.96949999476783 + ], + [ + "Preparando paisagem", + 28.657300004852004 + ], + [ + "Preparando paisagem", + 30.159300004015677 + ], + [ + "Preparando textura do percurso", + 89.60320000187494 + ], + [ + "Preparando margens", + 77.3371999966912 + ], + [ + "Preparando margens", + 0.7350000087171793 + ], + [ + "Preparando margens", + 0.5878000083612278 + ], + [ + "Preparando margens", + 0.5760000058216974 + ], + [ + "Preparando margens", + 0.7159000087995082 + ], + [ + "Preparando margens", + 0.6474000110756606 + ], + [ + "Preparando margens", + 0.4959999932907522 + ], + [ + "Preparando margens", + 0.6224999960977584 + ], + [ + "Preparando margens", + 0.6481000018538907 + ], + [ + "Preparando margens", + 0.5994999955873936 + ], + [ + "Preparando margens", + 0.7624999998370185 + ], + [ + "Preparando margens", + 1.413599995430559 + ], + [ + "Preparando detalhes industriais", + 8.493800007272512 + ], + [ + "Preparando detalhes industriais", + 11.708099991665222 + ], + [ + "Preparando detalhes industriais", + 6.1227999976836145 + ], + [ + "Preparando detalhes industriais", + 10.951599993859418 + ], + [ + "Preparando detalhes industriais", + 9.335499998996966 + ], + [ + "Suavizando textura do chão", + 2.3175999958766624 + ], + [ + "Suavizando textura do chão", + 1.2226999970152974 + ], + [ + "Suavizando textura do chão", + 0.5682999908458441 + ], + [ + "Suavizando textura do chão", + 0.3335999936098233 + ], + [ + "Suavizando textura do chão", + 0.14459999511018395 + ], + [ + "Suavizando textura do chão", + 0.08929999603424221 + ], + [ + "Suavizando textura do chão", + 2.07199998840224 + ], + [ + "Suavizando textura do chão", + 1.4946000010240823 + ], + [ + "Suavizando textura do chão", + 0.49760000547394156 + ], + [ + "Suavizando textura do chão", + 0.2232000115327537 + ], + [ + "Suavizando textura do chão", + 0.07329999061767012 + ], + [ + "Suavizando textura do chão", + 0.038300000596791506 + ], + [ + "Suavizando textura do chão", + 1.7223000031663105 + ], + [ + "Suavizando textura do chão", + 1.7292999982601032 + ], + [ + "Suavizando textura do chão", + 0.5133000086061656 + ], + [ + "Suavizando textura do chão", + 0.25270000332966447 + ], + [ + "Suavizando textura do chão", + 0.13040000339969993 + ], + [ + "Suavizando textura do chão", + 0.06690000009257346 + ], + [ + "Alocando faixas do chão", + 0.35740000021178275 + ], + [ + "Alocando faixas do chão", + 0.3228999994462356 + ], + [ + "Alocando faixas do chão", + 0.37719999090768397 + ], + [ + "Alocando faixas do chão", + 0.338099998771213 + ], + [ + "Alocando faixas do chão", + 0.3904000041075051 + ], + [ + "Alocando faixas do chão", + 0.5099999980302528 + ], + [ + "Alocando faixas do chão", + 0.5291999987093732 + ], + [ + "Alocando faixas do chão", + 0.5496999947354198 + ], + [ + "Alocando faixas do chão", + 0.4199999966658652 + ], + [ + "Alocando faixas do chão", + 0.20689998927991837 + ], + [ + "Alocando faixas do chão", + 0.17759999900590628 + ], + [ + "Alocando faixas do chão", + 0.33819999953266233 + ], + [ + "Alocando faixas do chão", + 0.3269000008003786 + ], + [ + "Alocando faixas do chão", + 0.4059000057168305 + ], + [ + "Alocando faixas do chão", + 0.4791999963345006 + ], + [ + "Alocando faixas do chão", + 0.6863000016892329 + ], + [ + "Alocando faixas do chão", + 0.6951999966986477 + ], + [ + "Alocando faixas do chão", + 0.4459999909158796 + ], + [ + "Alocando faixas do chão", + 0.20419999782461673 + ], + [ + "Alocando faixas do chão", + 0.1860999909695238 + ], + [ + "Alocando faixas do chão", + 0.25769999774638563 + ], + [ + "Alocando faixas do chão", + 0.3662000090116635 + ], + [ + "Alocando faixas do chão", + 0.4737999988719821 + ], + [ + "Alocando faixas do chão", + 0.5928999889874831 + ], + [ + "Alocando faixas do chão", + 0.6854000093881041 + ], + [ + "Alocando faixas do chão", + 0.7662999996682629 + ], + [ + "Alocando faixas do chão", + 0.6073000113246962 + ], + [ + "Preparando fauna", + 78.3926000003703 + ], + [ + "Carregando elementos regionais", + 11.13870000699535 + ], + [ + "Carregando elementos regionais", + 13.371300010476261 + ], + [ + "Carregando elementos regionais", + 9.857400000328198 + ], + [ + "Preparando obstáculos regionais", + 15.434400003869087 + ], + [ + "Preparando avião", + 23.56359999976121 + ], + [ + "Aplicando pintura", + 0.010899995686486363 + ], + [ + "Preparando piloto", + 30.142500007059425 + ], + [ + "Montando visual do voo", + 0.5664999916916713 + ], + [ + "Preparando primeira vista", + 34.35889999673236 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.83, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.006, + "max_ms": 0.007 + }, + "rules_update": { + "median_ms": 0.113, + "p95_ms": 0.216, + "p99_ms": 1.229, + "max_ms": 2.517 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.291, + "p99_ms": 3.062, + "max_ms": 3.489 + }, + "ground": { + "median_ms": 7.059, + "p95_ms": 9.843, + "p99_ms": 11.384, + "max_ms": 13.596 + }, + "route_and_banks": { + "median_ms": 9.827, + "p95_ms": 13.659, + "p99_ms": 15.525, + "max_ms": 18.926 + }, + "background": { + "median_ms": 10.661, + "p95_ms": 14.907, + "p99_ms": 17.35, + "max_ms": 23.082 + }, + "plane": { + "median_ms": 0.136, + "p95_ms": 0.216, + "p99_ms": 0.282, + "max_ms": 0.608 + }, + "entities_and_effects": { + "median_ms": 11.64, + "p95_ms": 16.245, + "p99_ms": 18.85, + "max_ms": 25.4 + }, + "world": { + "median_ms": 11.648, + "p95_ms": 16.254, + "p99_ms": 18.865, + "max_ms": 25.413 + }, + "hud": { + "median_ms": 0.393, + "p95_ms": 0.656, + "p99_ms": 0.785, + "max_ms": 6.235 + }, + "scene": { + "median_ms": 12.549, + "p95_ms": 17.154, + "p99_ms": 19.775, + "max_ms": 26.102 + }, + "canvas": { + "median_ms": 12.73, + "p95_ms": 17.428, + "p99_ms": 19.961, + "max_ms": 26.295 + }, + "present": { + "median_ms": 1.389, + "p95_ms": 1.948, + "p99_ms": 2.299, + "max_ms": 3.009 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.006, + "max_ms": 0.007 + }, + "rules_update": { + "median_ms": 0.113, + "p95_ms": 0.216, + "p99_ms": 1.229, + "max_ms": 2.517 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.291, + "p99_ms": 3.062, + "max_ms": 3.489 + }, + "ground": { + "median_ms": 7.059, + "p95_ms": 9.843, + "p99_ms": 11.384, + "max_ms": 13.596 + }, + "route_and_banks": { + "median_ms": 2.681, + "p95_ms": 4.891, + "p99_ms": 6.603, + "max_ms": 7.653 + }, + "background": { + "median_ms": 0.519, + "p95_ms": 1.007, + "p99_ms": 1.379, + "max_ms": 3.212 + }, + "plane": { + "median_ms": 0.136, + "p95_ms": 0.216, + "p99_ms": 0.282, + "max_ms": 0.608 + }, + "entities_and_effects": { + "median_ms": 0.839, + "p95_ms": 1.537, + "p99_ms": 2.14, + "max_ms": 2.938 + }, + "world": { + "median_ms": 0.01, + "p95_ms": 0.018, + "p99_ms": 0.03, + "max_ms": 0.042 + }, + "hud": { + "median_ms": 0.393, + "p95_ms": 0.656, + "p99_ms": 0.785, + "max_ms": 6.235 + }, + "scene": { + "median_ms": 0.338, + "p95_ms": 1.275, + "p99_ms": 2.051, + "max_ms": 3.458 + }, + "canvas": { + "median_ms": 0.046, + "p95_ms": 0.081, + "p99_ms": 0.117, + "max_ms": 0.183 + }, + "present": { + "median_ms": 1.389, + "p95_ms": 1.948, + "p99_ms": 2.299, + "max_ms": 3.009 + } + }, + "rss_bytes": 513552384, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75568, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 79.0, + "max_ms": 109.0 + }, + "camera": { + "frames_read": 374, + "inferences": 374, + "published": 374, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5577.999999994063, + "capture_fps": 29.994386077478573, + "inference_fps": 29.994386077478573, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 14.999999999417923, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 18.884, + "p95_ms": 25.081, + "p99_ms": 27.624, + "max_ms": 28.824 + }, + "scene_setup_ms": 29.029, + "warmup": { + "median_ms": 17.497, + "p95_ms": 22.9, + "p99_ms": 25.929, + "max_ms": 25.929 + }, + "first_preparation_frame_ms": 33.264, + "first_interactive_frame_ms": 14.063, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 33.264, + "p95_ms": 33.264, + "p99_ms": 33.264, + "max_ms": 33.264 + }, + "time_until_first_interactive_ms": 47.368, + "preparation_tasks": [ + [ + "Preparando avião", + 0.002900007530115545 + ], + [ + "Aplicando pintura", + 0.0017999991541728377 + ], + [ + "Preparando piloto", + 0.01890001294668764 + ], + [ + "Montando visual do voo", + 0.0045000051613897085 + ], + [ + "Preparando primeira vista", + 31.366600000183098 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.1717, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.004, + "max_ms": 0.047 + }, + "rules_update": { + "median_ms": 0.116, + "p95_ms": 0.23, + "p99_ms": 1.252, + "max_ms": 2.39 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.142, + "p99_ms": 2.786, + "max_ms": 3.737 + }, + "ground": { + "median_ms": 7.249, + "p95_ms": 10.453, + "p99_ms": 11.702, + "max_ms": 12.663 + }, + "route_and_banks": { + "median_ms": 10.119, + "p95_ms": 14.004, + "p99_ms": 16.043, + "max_ms": 17.587 + }, + "desaturate": { + "median_ms": 2.924, + "p95_ms": 4.683, + "p99_ms": 5.571, + "max_ms": 6.301 + }, + "background": { + "median_ms": 13.954, + "p95_ms": 19.049, + "p99_ms": 21.898, + "max_ms": 23.244 + }, + "plane": { + "median_ms": 0.146, + "p95_ms": 0.24, + "p99_ms": 0.304, + "max_ms": 0.634 + }, + "entities_and_effects": { + "median_ms": 15.558, + "p95_ms": 21.214, + "p99_ms": 23.87, + "max_ms": 24.511 + }, + "world": { + "median_ms": 16.425, + "p95_ms": 22.283, + "p99_ms": 25.053, + "max_ms": 25.516 + }, + "hud": { + "median_ms": 0.399, + "p95_ms": 0.635, + "p99_ms": 0.762, + "max_ms": 0.895 + }, + "scene": { + "median_ms": 17.294, + "p95_ms": 23.312, + "p99_ms": 25.947, + "max_ms": 27.276 + }, + "canvas": { + "median_ms": 17.472, + "p95_ms": 23.643, + "p99_ms": 26.176, + "max_ms": 27.446 + }, + "present": { + "median_ms": 1.361, + "p95_ms": 1.932, + "p99_ms": 2.215, + "max_ms": 2.593 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.004, + "max_ms": 0.047 + }, + "rules_update": { + "median_ms": 0.116, + "p95_ms": 0.23, + "p99_ms": 1.252, + "max_ms": 2.39 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.142, + "p99_ms": 2.786, + "max_ms": 3.737 + }, + "ground": { + "median_ms": 7.249, + "p95_ms": 10.453, + "p99_ms": 11.702, + "max_ms": 12.663 + }, + "route_and_banks": { + "median_ms": 2.704, + "p95_ms": 4.782, + "p99_ms": 5.773, + "max_ms": 7.375 + }, + "desaturate": { + "median_ms": 2.924, + "p95_ms": 4.683, + "p99_ms": 5.571, + "max_ms": 6.301 + }, + "background": { + "median_ms": 0.623, + "p95_ms": 1.022, + "p99_ms": 1.314, + "max_ms": 1.928 + }, + "plane": { + "median_ms": 0.146, + "p95_ms": 0.24, + "p99_ms": 0.304, + "max_ms": 0.634 + }, + "entities_and_effects": { + "median_ms": 1.393, + "p95_ms": 2.561, + "p99_ms": 3.136, + "max_ms": 3.501 + }, + "world": { + "median_ms": 0.835, + "p95_ms": 1.208, + "p99_ms": 1.511, + "max_ms": 3.05 + }, + "hud": { + "median_ms": 0.399, + "p95_ms": 0.635, + "p99_ms": 0.762, + "max_ms": 0.895 + }, + "scene": { + "median_ms": 0.336, + "p95_ms": 1.207, + "p99_ms": 1.637, + "max_ms": 1.817 + }, + "canvas": { + "median_ms": 0.044, + "p95_ms": 0.078, + "p99_ms": 0.121, + "max_ms": 0.466 + }, + "present": { + "median_ms": 1.361, + "p95_ms": 1.932, + "p99_ms": 2.215, + "max_ms": 2.593 + } + }, + "rss_bytes": 522989568, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154992, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 93.0 + }, + "camera": { + "frames_read": 762, + "inferences": 761, + "published": 761, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5577.999999994063, + "capture_fps": 30.010633689098587, + "inference_fps": 29.971249655385858, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 31.000000002677552, + "result_age_ms": 47.00000000593718, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 11.643, + "p95_ms": 18.675, + "p99_ms": 20.647, + "max_ms": 24.894 + }, + "scene_setup_ms": 7.823, + "warmup": { + "median_ms": 8.679, + "p95_ms": 12.81, + "p99_ms": 15.583, + "max_ms": 15.583 + }, + "first_preparation_frame_ms": 40.48, + "first_interactive_frame_ms": 7.442, + "preparation_frames": 20, + "preparation_frame_cost": { + "median_ms": 10.191, + "p95_ms": 88.8, + "p99_ms": 88.8, + "max_ms": 88.8 + }, + "time_until_first_interactive_ms": 471.81, + "preparation_tasks": [ + [ + "Preparando paisagem", + 25.752899993676692 + ], + [ + "Preparando paisagem", + 27.089900002465583 + ], + [ + "Preparando paisagem", + 24.922399999923073 + ], + [ + "Preparando textura do percurso", + 0.0024000037228688598 + ], + [ + "Preparando margens", + 86.65310000651516 + ], + [ + "Preparando margens", + 0.5362999945646152 + ], + [ + "Preparando margens", + 0.39820000529289246 + ], + [ + "Preparando margens", + 0.6476999988080934 + ], + [ + "Preparando margens", + 0.23119999968912452 + ], + [ + "Preparando margens", + 0.3671999875223264 + ], + [ + "Preparando margens", + 0.1880000054370612 + ], + [ + "Preparando margens", + 0.16630000027362257 + ], + [ + "Preparando margens", + 0.4165999998804182 + ], + [ + "Preparando margens", + 0.41349999082740396 + ], + [ + "Preparando margens", + 0.41369999235030264 + ], + [ + "Preparando margens", + 1.2775999930454418 + ], + [ + "Preparando detalhes industriais", + 7.160099994507618 + ], + [ + "Preparando detalhes industriais", + 7.99249998817686 + ], + [ + "Preparando detalhes industriais", + 6.312700003036298 + ], + [ + "Preparando detalhes industriais", + 10.122000006958842 + ], + [ + "Preparando detalhes industriais", + 8.039500011363998 + ], + [ + "Suavizando textura do chão", + 1.7164000018965453 + ], + [ + "Suavizando textura do chão", + 1.062900002580136 + ], + [ + "Suavizando textura do chão", + 0.3288000007160008 + ], + [ + "Suavizando textura do chão", + 0.15659999917261302 + ], + [ + "Suavizando textura do chão", + 0.1053000014508143 + ], + [ + "Suavizando textura do chão", + 0.04769999941345304 + ], + [ + "Alocando faixas do chão", + 0.2556999970693141 + ], + [ + "Alocando faixas do chão", + 0.22400000307243317 + ], + [ + "Alocando faixas do chão", + 0.21819998801220208 + ], + [ + "Alocando faixas do chão", + 0.21890000789426267 + ], + [ + "Alocando faixas do chão", + 0.2378999924985692 + ], + [ + "Alocando faixas do chão", + 0.24589999520685524 + ], + [ + "Alocando faixas do chão", + 0.3741999971680343 + ], + [ + "Alocando faixas do chão", + 0.32390000706072897 + ], + [ + "Alocando faixas do chão", + 0.23119999968912452 + ], + [ + "Preparando fauna", + 0.0022000021999701858 + ], + [ + "Carregando elementos regionais", + 9.476699997321703 + ], + [ + "Carregando elementos regionais", + 9.238900005584583 + ], + [ + "Carregando elementos regionais", + 7.538799996837042 + ], + [ + "Preparando obstáculos regionais", + 9.584600004018284 + ], + [ + "Preparando avião", + 0.0036999990697950125 + ], + [ + "Aplicando pintura", + 0.0024999899324029684 + ], + [ + "Preparando piloto", + 0.027699992642737925 + ], + [ + "Montando visual do voo", + 0.005900001269765198 + ], + [ + "Preparando primeira vista", + 20.91370000562165 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.8883, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.006, + "max_ms": 0.021 + }, + "rules_update": { + "median_ms": 0.12, + "p95_ms": 0.246, + "p99_ms": 1.554, + "max_ms": 2.976 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.572, + "p99_ms": 3.637, + "max_ms": 3.856 + }, + "ground": { + "median_ms": 3.353, + "p95_ms": 5.394, + "p99_ms": 6.208, + "max_ms": 9.166 + }, + "route_and_banks": { + "median_ms": 6.856, + "p95_ms": 11.076, + "p99_ms": 13.403, + "max_ms": 15.183 + }, + "background": { + "median_ms": 7.711, + "p95_ms": 12.421, + "p99_ms": 15.572, + "max_ms": 17.715 + }, + "plane": { + "median_ms": 0.152, + "p95_ms": 0.248, + "p99_ms": 0.342, + "max_ms": 0.947 + }, + "entities_and_effects": { + "median_ms": 8.778, + "p95_ms": 14.007, + "p99_ms": 17.252, + "max_ms": 19.686 + }, + "world": { + "median_ms": 8.787, + "p95_ms": 14.025, + "p99_ms": 17.265, + "max_ms": 19.704 + }, + "hud": { + "median_ms": 0.435, + "p95_ms": 0.711, + "p99_ms": 0.855, + "max_ms": 1.264 + }, + "scene": { + "median_ms": 9.857, + "p95_ms": 16.265, + "p99_ms": 18.455, + "max_ms": 22.282 + }, + "canvas": { + "median_ms": 10.027, + "p95_ms": 16.532, + "p99_ms": 18.698, + "max_ms": 22.588 + }, + "present": { + "median_ms": 1.561, + "p95_ms": 2.267, + "p99_ms": 2.537, + "max_ms": 2.952 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.006, + "max_ms": 0.021 + }, + "rules_update": { + "median_ms": 0.12, + "p95_ms": 0.246, + "p99_ms": 1.554, + "max_ms": 2.976 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.572, + "p99_ms": 3.637, + "max_ms": 3.856 + }, + "ground": { + "median_ms": 3.353, + "p95_ms": 5.394, + "p99_ms": 6.208, + "max_ms": 9.166 + }, + "route_and_banks": { + "median_ms": 3.406, + "p95_ms": 6.635, + "p99_ms": 8.222, + "max_ms": 9.927 + }, + "background": { + "median_ms": 0.563, + "p95_ms": 1.112, + "p99_ms": 1.36, + "max_ms": 3.904 + }, + "plane": { + "median_ms": 0.152, + "p95_ms": 0.248, + "p99_ms": 0.342, + "max_ms": 0.947 + }, + "entities_and_effects": { + "median_ms": 0.976, + "p95_ms": 1.794, + "p99_ms": 2.407, + "max_ms": 2.678 + }, + "world": { + "median_ms": 0.011, + "p95_ms": 0.022, + "p99_ms": 0.03, + "max_ms": 0.048 + }, + "hud": { + "median_ms": 0.435, + "p95_ms": 0.711, + "p99_ms": 0.855, + "max_ms": 1.264 + }, + "scene": { + "median_ms": 0.393, + "p95_ms": 2.263, + "p99_ms": 3.058, + "max_ms": 4.759 + }, + "canvas": { + "median_ms": 0.052, + "p95_ms": 0.094, + "p99_ms": 0.131, + "max_ms": 0.197 + }, + "present": { + "median_ms": 1.561, + "p95_ms": 2.267, + "p99_ms": 2.537, + "max_ms": 2.952 + } + }, + "rss_bytes": 534827008, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127592, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 47.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1114, + "inferences": 1113, + "published": 1113, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5577.999999994063, + "capture_fps": 29.91889133587843, + "inference_fps": 29.892034162327374, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 16.00000000325963, + "result_age_ms": 46.999999991385266, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 16.643, + "p95_ms": 23.418, + "p99_ms": 26.614, + "max_ms": 29.424 + }, + "scene_setup_ms": 8.451, + "warmup": { + "median_ms": 12.729, + "p95_ms": 16.6, + "p99_ms": 17.818, + "max_ms": 17.818 + }, + "first_preparation_frame_ms": 27.318, + "first_interactive_frame_ms": 17.317, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 27.318, + "p95_ms": 27.318, + "p99_ms": 27.318, + "max_ms": 27.318 + }, + "time_until_first_interactive_ms": 44.689, + "preparation_tasks": [ + [ + "Preparando avião", + 0.002700006007216871 + ], + [ + "Aplicando pintura", + 0.0021000014385208488 + ], + [ + "Preparando piloto", + 0.02440001117065549 + ], + [ + "Montando visual do voo", + 0.005199995939619839 + ], + [ + "Preparando primeira vista", + 25.057300008484162 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.505, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.02 + }, + "rules_update": { + "median_ms": 0.127, + "p95_ms": 0.249, + "p99_ms": 1.513, + "max_ms": 3.166 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.309, + "p99_ms": 3.418, + "max_ms": 4.412 + }, + "ground": { + "median_ms": 3.469, + "p95_ms": 4.998, + "p99_ms": 5.966, + "max_ms": 7.227 + }, + "route_and_banks": { + "median_ms": 6.847, + "p95_ms": 11.037, + "p99_ms": 12.713, + "max_ms": 15.641 + }, + "desaturate": { + "median_ms": 3.21, + "p95_ms": 4.979, + "p99_ms": 5.537, + "max_ms": 6.372 + }, + "background": { + "median_ms": 11.007, + "p95_ms": 16.723, + "p99_ms": 19.74, + "max_ms": 22.648 + }, + "plane": { + "median_ms": 0.161, + "p95_ms": 0.257, + "p99_ms": 0.37, + "max_ms": 0.972 + }, + "entities_and_effects": { + "median_ms": 12.85, + "p95_ms": 19.191, + "p99_ms": 21.899, + "max_ms": 25.936 + }, + "world": { + "median_ms": 13.77, + "p95_ms": 20.342, + "p99_ms": 22.934, + "max_ms": 26.948 + }, + "hud": { + "median_ms": 0.437, + "p95_ms": 0.719, + "p99_ms": 0.824, + "max_ms": 1.228 + }, + "scene": { + "median_ms": 14.793, + "p95_ms": 21.402, + "p99_ms": 24.065, + "max_ms": 27.662 + }, + "canvas": { + "median_ms": 15.025, + "p95_ms": 21.611, + "p99_ms": 24.802, + "max_ms": 27.817 + }, + "present": { + "median_ms": 1.565, + "p95_ms": 2.127, + "p99_ms": 2.522, + "max_ms": 2.947 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.02 + }, + "rules_update": { + "median_ms": 0.127, + "p95_ms": 0.249, + "p99_ms": 1.513, + "max_ms": 3.166 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.309, + "p99_ms": 3.418, + "max_ms": 4.412 + }, + "ground": { + "median_ms": 3.469, + "p95_ms": 4.998, + "p99_ms": 5.966, + "max_ms": 7.227 + }, + "route_and_banks": { + "median_ms": 3.298, + "p95_ms": 6.56, + "p99_ms": 7.509, + "max_ms": 10.677 + }, + "desaturate": { + "median_ms": 3.21, + "p95_ms": 4.979, + "p99_ms": 5.537, + "max_ms": 6.372 + }, + "background": { + "median_ms": 0.658, + "p95_ms": 1.102, + "p99_ms": 1.27, + "max_ms": 1.439 + }, + "plane": { + "median_ms": 0.161, + "p95_ms": 0.257, + "p99_ms": 0.37, + "max_ms": 0.972 + }, + "entities_and_effects": { + "median_ms": 1.519, + "p95_ms": 2.784, + "p99_ms": 3.488, + "max_ms": 3.714 + }, + "world": { + "median_ms": 0.902, + "p95_ms": 1.255, + "p99_ms": 1.431, + "max_ms": 2.192 + }, + "hud": { + "median_ms": 0.437, + "p95_ms": 0.719, + "p99_ms": 0.824, + "max_ms": 1.228 + }, + "scene": { + "median_ms": 0.4, + "p95_ms": 1.725, + "p99_ms": 2.259, + "max_ms": 2.957 + }, + "canvas": { + "median_ms": 0.051, + "p95_ms": 0.088, + "p99_ms": 0.158, + "max_ms": 0.257 + }, + "present": { + "median_ms": 1.565, + "p95_ms": 2.127, + "p99_ms": 2.522, + "max_ms": 2.947 + } + }, + "rss_bytes": 538226688, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208187, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 47.0, + "p95_ms": 63.0, + "p99_ms": 93.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1474, + "inferences": 1473, + "published": 1473, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5577.999999994063, + "capture_fps": 29.90039961863445, + "inference_fps": 29.880114408581104, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 31.000000002677552, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 1, + "inferences": 1, + "published": 1, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5577.999999994063, + "capture_fps": 32.258064513342816, + "inference_fps": 32.258064513342816, + "capture_interval_ms": 0.0, + "inference_interval_ms": 0.0, + "inference_ms": 16.00000000325963, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 1474, + "inferences": 1474, + "published": 1474, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5577.999999994063, + "capture_fps": 29.56336869973518, + "inference_fps": 29.56336869973518, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 14.999999999417923, + "result_age_ms": 561.9999999908032, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/native-camera-2.json b/docs/validacao-v1.7/desempenho/native-camera-2.json new file mode 100644 index 0000000..9c43d36 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/native-camera-2.json @@ -0,0 +1,1614 @@ +{ + "version": "1.7.0", + "conditions": "CPU; native window; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 1204.75, + "rss_before_bytes": 41041920, + "rss_after_bytes": 136712192, + "rss_delta_bytes": 95670272, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 16.97, + "p95_ms": 22.677, + "p99_ms": 25.766, + "max_ms": 47.737 + }, + "scene_setup_ms": 13.696, + "warmup": { + "median_ms": 16.407, + "p95_ms": 24.516, + "p99_ms": 44.526, + "max_ms": 44.526 + }, + "first_preparation_frame_ms": 123.648, + "first_interactive_frame_ms": 44.526, + "preparation_frames": 38, + "preparation_frame_cost": { + "median_ms": 8.589, + "p95_ms": 98.806, + "p99_ms": 123.648, + "max_ms": 123.648 + }, + "time_until_first_interactive_ms": 1134.965, + "preparation_tasks": [ + [ + "Preparando paisagem", + 32.04140000161715 + ], + [ + "Preparando paisagem", + 34.85480000381358 + ], + [ + "Preparando paisagem", + 34.256899991305545 + ], + [ + "Preparando textura do percurso", + 94.979700006661 + ], + [ + "Preparando margens", + 87.83780000521801 + ], + [ + "Preparando margens", + 1.0331999947084114 + ], + [ + "Preparando margens", + 0.5996999971102923 + ], + [ + "Preparando margens", + 1.0734999959822744 + ], + [ + "Preparando margens", + 0.7237999961944297 + ], + [ + "Preparando margens", + 0.9327000007033348 + ], + [ + "Preparando margens", + 0.68450000253506 + ], + [ + "Preparando margens", + 0.9809000039240345 + ], + [ + "Preparando margens", + 1.128700008848682 + ], + [ + "Preparando margens", + 0.8869000012055039 + ], + [ + "Preparando margens", + 0.8030000026337802 + ], + [ + "Preparando margens", + 1.560399992740713 + ], + [ + "Preparando detalhes industriais", + 9.289100009482354 + ], + [ + "Preparando detalhes industriais", + 9.938400005921721 + ], + [ + "Preparando detalhes industriais", + 8.05029999173712 + ], + [ + "Preparando detalhes industriais", + 12.2306999983266 + ], + [ + "Preparando detalhes industriais", + 9.491399992839433 + ], + [ + "Suavizando textura do chão", + 1.8180000042775646 + ], + [ + "Suavizando textura do chão", + 1.341299997875467 + ], + [ + "Suavizando textura do chão", + 0.8557999972254038 + ], + [ + "Suavizando textura do chão", + 0.44970000453758985 + ], + [ + "Suavizando textura do chão", + 0.18350000027567148 + ], + [ + "Suavizando textura do chão", + 0.14740000187885016 + ], + [ + "Suavizando textura do chão", + 3.415400002268143 + ], + [ + "Suavizando textura do chão", + 1.6561999946134165 + ], + [ + "Suavizando textura do chão", + 0.49229999422095716 + ], + [ + "Suavizando textura do chão", + 0.2356000040890649 + ], + [ + "Suavizando textura do chão", + 0.12139999307692051 + ], + [ + "Suavizando textura do chão", + 0.06420000863727182 + ], + [ + "Suavizando textura do chão", + 1.751399991917424 + ], + [ + "Suavizando textura do chão", + 1.02599999809172 + ], + [ + "Suavizando textura do chão", + 0.5241999897407368 + ], + [ + "Suavizando textura do chão", + 0.3009000065503642 + ], + [ + "Suavizando textura do chão", + 0.1238999975612387 + ], + [ + "Suavizando textura do chão", + 0.0627999979769811 + ], + [ + "Alocando faixas do chão", + 0.32980000833049417 + ], + [ + "Alocando faixas do chão", + 0.31149999995250255 + ], + [ + "Alocando faixas do chão", + 0.3566000086721033 + ], + [ + "Alocando faixas do chão", + 0.4090000002179295 + ], + [ + "Alocando faixas do chão", + 0.41789999522734433 + ], + [ + "Alocando faixas do chão", + 0.5062999989604577 + ], + [ + "Alocando faixas do chão", + 0.5710999976145104 + ], + [ + "Alocando faixas do chão", + 0.7888999971328303 + ], + [ + "Alocando faixas do chão", + 0.48329999845009297 + ], + [ + "Alocando faixas do chão", + 0.20160000713076442 + ], + [ + "Alocando faixas do chão", + 0.20110000332351774 + ], + [ + "Alocando faixas do chão", + 0.31970000418368727 + ], + [ + "Alocando faixas do chão", + 0.5030000029364601 + ], + [ + "Alocando faixas do chão", + 0.4807999939657748 + ], + [ + "Alocando faixas do chão", + 0.5493999924510717 + ], + [ + "Alocando faixas do chão", + 0.9766000002855435 + ], + [ + "Alocando faixas do chão", + 0.927200002479367 + ], + [ + "Alocando faixas do chão", + 0.44430000707507133 + ], + [ + "Alocando faixas do chão", + 0.18560000171419233 + ], + [ + "Alocando faixas do chão", + 0.18710001313593239 + ], + [ + "Alocando faixas do chão", + 0.23579999106004834 + ], + [ + "Alocando faixas do chão", + 0.3956000000471249 + ], + [ + "Alocando faixas do chão", + 0.44160000106785446 + ], + [ + "Alocando faixas do chão", + 0.786300006438978 + ], + [ + "Alocando faixas do chão", + 0.7836000004317611 + ], + [ + "Alocando faixas do chão", + 0.6314000056590885 + ], + [ + "Alocando faixas do chão", + 0.4700999998021871 + ], + [ + "Preparando fauna", + 89.4813999912003 + ], + [ + "Carregando elementos regionais", + 13.805100010358728 + ], + [ + "Carregando elementos regionais", + 14.730800001416355 + ], + [ + "Carregando elementos regionais", + 11.179499997524545 + ], + [ + "Preparando obstáculos regionais", + 14.010099999723025 + ], + [ + "Preparando avião", + 26.377999995020218 + ], + [ + "Aplicando pintura", + 0.016999998479150236 + ], + [ + "Preparando piloto", + 29.438800003845245 + ], + [ + "Montando visual do voo", + 0.5805999971926212 + ], + [ + "Preparando primeira vista", + 32.5235999916913 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.4517, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.023 + }, + "rules_update": { + "median_ms": 0.144, + "p95_ms": 0.266, + "p99_ms": 1.563, + "max_ms": 2.676 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.423, + "p99_ms": 3.534, + "max_ms": 3.863 + }, + "ground": { + "median_ms": 8.51, + "p95_ms": 12.536, + "p99_ms": 13.785, + "max_ms": 39.518 + }, + "route_and_banks": { + "median_ms": 11.923, + "p95_ms": 16.692, + "p99_ms": 19.23, + "max_ms": 41.947 + }, + "background": { + "median_ms": 12.918, + "p95_ms": 17.553, + "p99_ms": 20.663, + "max_ms": 42.673 + }, + "plane": { + "median_ms": 0.151, + "p95_ms": 0.262, + "p99_ms": 0.384, + "max_ms": 0.74 + }, + "entities_and_effects": { + "median_ms": 14.097, + "p95_ms": 19.223, + "p99_ms": 22.589, + "max_ms": 44.357 + }, + "world": { + "median_ms": 14.114, + "p95_ms": 19.238, + "p99_ms": 22.613, + "max_ms": 44.37 + }, + "hud": { + "median_ms": 0.437, + "p95_ms": 0.751, + "p99_ms": 0.89, + "max_ms": 4.567 + }, + "scene": { + "median_ms": 15.021, + "p95_ms": 20.538, + "p99_ms": 23.639, + "max_ms": 45.589 + }, + "canvas": { + "median_ms": 15.248, + "p95_ms": 20.859, + "p99_ms": 23.883, + "max_ms": 45.772 + }, + "present": { + "median_ms": 1.634, + "p95_ms": 2.165, + "p99_ms": 2.403, + "max_ms": 3.205 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.023 + }, + "rules_update": { + "median_ms": 0.144, + "p95_ms": 0.266, + "p99_ms": 1.563, + "max_ms": 2.676 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.423, + "p99_ms": 3.534, + "max_ms": 3.863 + }, + "ground": { + "median_ms": 8.51, + "p95_ms": 12.536, + "p99_ms": 13.785, + "max_ms": 39.518 + }, + "route_and_banks": { + "median_ms": 3.146, + "p95_ms": 5.608, + "p99_ms": 6.901, + "max_ms": 7.351 + }, + "background": { + "median_ms": 0.693, + "p95_ms": 1.106, + "p99_ms": 1.28, + "max_ms": 4.227 + }, + "plane": { + "median_ms": 0.151, + "p95_ms": 0.262, + "p99_ms": 0.384, + "max_ms": 0.74 + }, + "entities_and_effects": { + "median_ms": 0.988, + "p95_ms": 1.899, + "p99_ms": 2.494, + "max_ms": 3.632 + }, + "world": { + "median_ms": 0.012, + "p95_ms": 0.021, + "p99_ms": 0.031, + "max_ms": 0.05 + }, + "hud": { + "median_ms": 0.437, + "p95_ms": 0.751, + "p99_ms": 0.89, + "max_ms": 4.567 + }, + "scene": { + "median_ms": 0.391, + "p95_ms": 1.437, + "p99_ms": 2.424, + "max_ms": 3.54 + }, + "canvas": { + "median_ms": 0.054, + "p95_ms": 0.089, + "p99_ms": 0.124, + "max_ms": 0.2 + }, + "present": { + "median_ms": 1.634, + "p95_ms": 2.165, + "p99_ms": 2.403, + "max_ms": 3.205 + } + }, + "rss_bytes": 513757184, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75570, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 47.0, + "p95_ms": 63.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 399, + "inferences": 398, + "published": 398, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6343.000000008033, + "capture_fps": 29.83177570093458, + "inference_fps": 29.757009345794394, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 16.00000000325963, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 19.855, + "p95_ms": 26.386, + "p99_ms": 30.126, + "max_ms": 32.295 + }, + "scene_setup_ms": 8.538, + "warmup": { + "median_ms": 19.144, + "p95_ms": 23.605, + "p99_ms": 25.613, + "max_ms": 25.613 + }, + "first_preparation_frame_ms": 39.285, + "first_interactive_frame_ms": 18.71, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 39.285, + "p95_ms": 39.285, + "p99_ms": 39.285, + "max_ms": 39.285 + }, + "time_until_first_interactive_ms": 58.046, + "preparation_tasks": [ + [ + "Preparando avião", + 0.004099987563677132 + ], + [ + "Aplicando pintura", + 0.0029999937396496534 + ], + [ + "Preparando piloto", + 0.024899985874071717 + ], + [ + "Montando visual do voo", + 0.006000002031214535 + ], + [ + "Preparando primeira vista", + 37.41489999811165 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.1033, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.024 + }, + "rules_update": { + "median_ms": 0.125, + "p95_ms": 0.26, + "p99_ms": 1.6, + "max_ms": 2.625 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.112, + "p99_ms": 2.871, + "max_ms": 3.58 + }, + "ground": { + "median_ms": 7.602, + "p95_ms": 11.168, + "p99_ms": 12.226, + "max_ms": 13.404 + }, + "route_and_banks": { + "median_ms": 10.594, + "p95_ms": 14.424, + "p99_ms": 17.091, + "max_ms": 19.698 + }, + "desaturate": { + "median_ms": 3.024, + "p95_ms": 5.034, + "p99_ms": 5.58, + "max_ms": 5.923 + }, + "background": { + "median_ms": 14.666, + "p95_ms": 19.801, + "p99_ms": 22.843, + "max_ms": 26.281 + }, + "plane": { + "median_ms": 0.152, + "p95_ms": 0.248, + "p99_ms": 0.548, + "max_ms": 0.867 + }, + "entities_and_effects": { + "median_ms": 16.38, + "p95_ms": 21.918, + "p99_ms": 25.678, + "max_ms": 27.38 + }, + "world": { + "median_ms": 17.281, + "p95_ms": 23.134, + "p99_ms": 27.007, + "max_ms": 28.409 + }, + "hud": { + "median_ms": 0.416, + "p95_ms": 0.681, + "p99_ms": 0.834, + "max_ms": 1.3 + }, + "scene": { + "median_ms": 18.139, + "p95_ms": 24.173, + "p99_ms": 28.128, + "max_ms": 29.346 + }, + "canvas": { + "median_ms": 18.311, + "p95_ms": 24.509, + "p99_ms": 28.388, + "max_ms": 29.684 + }, + "present": { + "median_ms": 1.458, + "p95_ms": 2.084, + "p99_ms": 2.486, + "max_ms": 2.725 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.024 + }, + "rules_update": { + "median_ms": 0.125, + "p95_ms": 0.26, + "p99_ms": 1.6, + "max_ms": 2.625 + }, + "horizon": { + "median_ms": 0.009, + "p95_ms": 2.112, + "p99_ms": 2.871, + "max_ms": 3.58 + }, + "ground": { + "median_ms": 7.602, + "p95_ms": 11.168, + "p99_ms": 12.226, + "max_ms": 13.404 + }, + "route_and_banks": { + "median_ms": 2.802, + "p95_ms": 4.802, + "p99_ms": 5.878, + "max_ms": 7.472 + }, + "desaturate": { + "median_ms": 3.024, + "p95_ms": 5.034, + "p99_ms": 5.58, + "max_ms": 5.923 + }, + "background": { + "median_ms": 0.674, + "p95_ms": 1.077, + "p99_ms": 1.259, + "max_ms": 1.625 + }, + "plane": { + "median_ms": 0.152, + "p95_ms": 0.248, + "p99_ms": 0.548, + "max_ms": 0.867 + }, + "entities_and_effects": { + "median_ms": 1.416, + "p95_ms": 2.588, + "p99_ms": 3.721, + "max_ms": 4.385 + }, + "world": { + "median_ms": 0.871, + "p95_ms": 1.258, + "p99_ms": 1.448, + "max_ms": 2.475 + }, + "hud": { + "median_ms": 0.416, + "p95_ms": 0.681, + "p99_ms": 0.834, + "max_ms": 1.3 + }, + "scene": { + "median_ms": 0.353, + "p95_ms": 1.178, + "p99_ms": 1.684, + "max_ms": 2.359 + }, + "canvas": { + "median_ms": 0.049, + "p95_ms": 0.09, + "p99_ms": 0.137, + "max_ms": 0.207 + }, + "present": { + "median_ms": 1.458, + "p95_ms": 2.084, + "p99_ms": 2.486, + "max_ms": 2.725 + } + }, + "rss_bytes": 526704640, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154994, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 46.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 803, + "inferences": 802, + "published": 802, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6343.000000008033, + "capture_fps": 29.8612918820387, + "inference_fps": 29.82410471904737, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 16.00000000325963, + "result_age_ms": 62.000000005355105, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 11.136, + "p95_ms": 15.872, + "p99_ms": 18.709, + "max_ms": 20.261 + }, + "scene_setup_ms": 10.489, + "warmup": { + "median_ms": 10.728, + "p95_ms": 13.61, + "p99_ms": 15.265, + "max_ms": 15.265 + }, + "first_preparation_frame_ms": 17.86, + "first_interactive_frame_ms": 11.799, + "preparation_frames": 23, + "preparation_frame_cost": { + "median_ms": 16.75, + "p95_ms": 38.504, + "p99_ms": 122.82, + "max_ms": 122.82 + }, + "time_until_first_interactive_ms": 588.729, + "preparation_tasks": [ + [ + "Preparando paisagem", + 25.61749999586027 + ], + [ + "Preparando paisagem", + 29.532500004279427 + ], + [ + "Preparando paisagem", + 34.47199999936856 + ], + [ + "Preparando textura do percurso", + 0.0018999999156221747 + ], + [ + "Preparando margens", + 119.43240000982769 + ], + [ + "Preparando margens", + 0.9482000023126602 + ], + [ + "Preparando margens", + 0.7080999930622056 + ], + [ + "Preparando margens", + 0.8553999941796064 + ], + [ + "Preparando margens", + 0.49839999701362103 + ], + [ + "Preparando margens", + 0.7960000075399876 + ], + [ + "Preparando margens", + 0.49160000344272703 + ], + [ + "Preparando margens", + 0.36249999538995326 + ], + [ + "Preparando margens", + 0.8067000017035753 + ], + [ + "Preparando margens", + 0.5744999943999574 + ], + [ + "Preparando margens", + 0.5660000024363399 + ], + [ + "Preparando margens", + 1.519700002972968 + ], + [ + "Preparando detalhes industriais", + 13.14400001137983 + ], + [ + "Preparando detalhes industriais", + 13.854699995135888 + ], + [ + "Preparando detalhes industriais", + 14.202200007275678 + ], + [ + "Preparando detalhes industriais", + 14.7685999982059 + ], + [ + "Preparando detalhes industriais", + 11.759799992432818 + ], + [ + "Suavizando textura do chão", + 1.8226999964099377 + ], + [ + "Suavizando textura do chão", + 1.3961999939056113 + ], + [ + "Suavizando textura do chão", + 0.47459999041166157 + ], + [ + "Suavizando textura do chão", + 0.2813000028254464 + ], + [ + "Suavizando textura do chão", + 0.15339998935814947 + ], + [ + "Suavizando textura do chão", + 0.07320000440813601 + ], + [ + "Alocando faixas do chão", + 0.4562999965855852 + ], + [ + "Alocando faixas do chão", + 0.3789000038523227 + ], + [ + "Alocando faixas do chão", + 0.3578000032575801 + ], + [ + "Alocando faixas do chão", + 0.4090000002179295 + ], + [ + "Alocando faixas do chão", + 0.39960000140126795 + ], + [ + "Alocando faixas do chão", + 0.3767000016523525 + ], + [ + "Alocando faixas do chão", + 0.4048999981023371 + ], + [ + "Alocando faixas do chão", + 0.5576999974437058 + ], + [ + "Alocando faixas do chão", + 0.8609000069554895 + ], + [ + "Preparando fauna", + 0.04579999949783087 + ], + [ + "Carregando elementos regionais", + 14.31300000695046 + ], + [ + "Carregando elementos regionais", + 16.237099989666604 + ], + [ + "Carregando elementos regionais", + 11.954600005992688 + ], + [ + "Preparando obstáculos regionais", + 20.01350000500679 + ], + [ + "Preparando avião", + 0.005399997462518513 + ], + [ + "Aplicando pintura", + 0.0041000021155923605 + ], + [ + "Preparando piloto", + 0.05870001041330397 + ], + [ + "Montando visual do voo", + 0.011600001016631722 + ], + [ + "Preparando primeira vista", + 35.86489999725018 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.97, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.006 + }, + "rules_update": { + "median_ms": 0.115, + "p95_ms": 0.214, + "p99_ms": 1.603, + "max_ms": 3.057 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.248, + "p99_ms": 2.977, + "max_ms": 3.6 + }, + "ground": { + "median_ms": 3.154, + "p95_ms": 4.853, + "p99_ms": 5.317, + "max_ms": 5.621 + }, + "route_and_banks": { + "median_ms": 6.445, + "p95_ms": 9.838, + "p99_ms": 12.17, + "max_ms": 13.972 + }, + "background": { + "median_ms": 7.228, + "p95_ms": 11.236, + "p99_ms": 13.419, + "max_ms": 14.634 + }, + "plane": { + "median_ms": 0.142, + "p95_ms": 0.238, + "p99_ms": 0.335, + "max_ms": 1.618 + }, + "entities_and_effects": { + "median_ms": 8.341, + "p95_ms": 12.434, + "p99_ms": 14.934, + "max_ms": 16.936 + }, + "world": { + "median_ms": 8.351, + "p95_ms": 12.449, + "p99_ms": 14.948, + "max_ms": 16.952 + }, + "hud": { + "median_ms": 0.407, + "p95_ms": 0.663, + "p99_ms": 0.806, + "max_ms": 1.03 + }, + "scene": { + "median_ms": 9.402, + "p95_ms": 13.646, + "p99_ms": 16.408, + "max_ms": 18.102 + }, + "canvas": { + "median_ms": 9.567, + "p95_ms": 13.941, + "p99_ms": 16.963, + "max_ms": 18.356 + }, + "present": { + "median_ms": 1.506, + "p95_ms": 2.133, + "p99_ms": 2.522, + "max_ms": 2.926 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.006 + }, + "rules_update": { + "median_ms": 0.115, + "p95_ms": 0.214, + "p99_ms": 1.603, + "max_ms": 3.057 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.248, + "p99_ms": 2.977, + "max_ms": 3.6 + }, + "ground": { + "median_ms": 3.154, + "p95_ms": 4.853, + "p99_ms": 5.317, + "max_ms": 5.621 + }, + "route_and_banks": { + "median_ms": 3.211, + "p95_ms": 5.896, + "p99_ms": 7.723, + "max_ms": 9.276 + }, + "background": { + "median_ms": 0.517, + "p95_ms": 1.005, + "p99_ms": 1.356, + "max_ms": 2.891 + }, + "plane": { + "median_ms": 0.142, + "p95_ms": 0.238, + "p99_ms": 0.335, + "max_ms": 1.618 + }, + "entities_and_effects": { + "median_ms": 0.885, + "p95_ms": 1.747, + "p99_ms": 2.369, + "max_ms": 3.389 + }, + "world": { + "median_ms": 0.01, + "p95_ms": 0.017, + "p99_ms": 0.024, + "max_ms": 0.041 + }, + "hud": { + "median_ms": 0.407, + "p95_ms": 0.663, + "p99_ms": 0.806, + "max_ms": 1.03 + }, + "scene": { + "median_ms": 0.414, + "p95_ms": 1.621, + "p99_ms": 1.897, + "max_ms": 3.756 + }, + "canvas": { + "median_ms": 0.048, + "p95_ms": 0.086, + "p99_ms": 0.121, + "max_ms": 0.361 + }, + "present": { + "median_ms": 1.506, + "p95_ms": 2.133, + "p99_ms": 2.522, + "max_ms": 2.926 + } + }, + "rss_bytes": 533016576, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127597, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 46.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1159, + "inferences": 1158, + "published": 1158, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6343.000000008033, + "capture_fps": 29.90967741935484, + "inference_fps": 29.883870967741935, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 31.000000002677552, + "result_age_ms": 62.000000005355105, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 16.856, + "p95_ms": 24.531, + "p99_ms": 27.326, + "max_ms": 29.288 + }, + "scene_setup_ms": 8.106, + "warmup": { + "median_ms": 12.654, + "p95_ms": 17.032, + "p99_ms": 18.803, + "max_ms": 18.803 + }, + "first_preparation_frame_ms": 31.419, + "first_interactive_frame_ms": 12.558, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 31.419, + "p95_ms": 31.419, + "p99_ms": 31.419, + "max_ms": 31.419 + }, + "time_until_first_interactive_ms": 44.046, + "preparation_tasks": [ + [ + "Preparando avião", + 0.002800006768666208 + ], + [ + "Aplicando pintura", + 0.0025000044843181968 + ], + [ + "Preparando piloto", + 0.025300003471784294 + ], + [ + "Montando visual do voo", + 0.005299996701069176 + ], + [ + "Preparando primeira vista", + 29.243500001030043 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.4783, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.08 + }, + "rules_update": { + "median_ms": 0.128, + "p95_ms": 0.27, + "p99_ms": 1.476, + "max_ms": 2.911 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.411, + "p99_ms": 3.389, + "max_ms": 4.0 + }, + "ground": { + "median_ms": 3.479, + "p95_ms": 5.275, + "p99_ms": 6.228, + "max_ms": 7.001 + }, + "route_and_banks": { + "median_ms": 7.021, + "p95_ms": 10.911, + "p99_ms": 12.692, + "max_ms": 16.298 + }, + "desaturate": { + "median_ms": 3.186, + "p95_ms": 5.227, + "p99_ms": 5.617, + "max_ms": 7.04 + }, + "background": { + "median_ms": 11.203, + "p95_ms": 16.447, + "p99_ms": 19.177, + "max_ms": 22.951 + }, + "plane": { + "median_ms": 0.159, + "p95_ms": 0.278, + "p99_ms": 0.509, + "max_ms": 0.973 + }, + "entities_and_effects": { + "median_ms": 13.006, + "p95_ms": 19.351, + "p99_ms": 21.962, + "max_ms": 26.025 + }, + "world": { + "median_ms": 13.851, + "p95_ms": 20.722, + "p99_ms": 23.066, + "max_ms": 26.969 + }, + "hud": { + "median_ms": 0.443, + "p95_ms": 0.741, + "p99_ms": 0.92, + "max_ms": 2.341 + }, + "scene": { + "median_ms": 15.078, + "p95_ms": 22.3, + "p99_ms": 25.107, + "max_ms": 27.288 + }, + "canvas": { + "median_ms": 15.346, + "p95_ms": 22.69, + "p99_ms": 25.396, + "max_ms": 27.673 + }, + "present": { + "median_ms": 1.585, + "p95_ms": 2.178, + "p99_ms": 2.509, + "max_ms": 3.788 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.005, + "max_ms": 0.08 + }, + "rules_update": { + "median_ms": 0.128, + "p95_ms": 0.27, + "p99_ms": 1.476, + "max_ms": 2.911 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.411, + "p99_ms": 3.389, + "max_ms": 4.0 + }, + "ground": { + "median_ms": 3.479, + "p95_ms": 5.275, + "p99_ms": 6.228, + "max_ms": 7.001 + }, + "route_and_banks": { + "median_ms": 3.375, + "p95_ms": 6.682, + "p99_ms": 8.164, + "max_ms": 10.346 + }, + "desaturate": { + "median_ms": 3.186, + "p95_ms": 5.227, + "p99_ms": 5.617, + "max_ms": 7.04 + }, + "background": { + "median_ms": 0.671, + "p95_ms": 1.099, + "p99_ms": 1.33, + "max_ms": 1.558 + }, + "plane": { + "median_ms": 0.159, + "p95_ms": 0.278, + "p99_ms": 0.509, + "max_ms": 0.973 + }, + "entities_and_effects": { + "median_ms": 1.514, + "p95_ms": 2.97, + "p99_ms": 3.99, + "max_ms": 5.258 + }, + "world": { + "median_ms": 0.899, + "p95_ms": 1.336, + "p99_ms": 1.535, + "max_ms": 2.624 + }, + "hud": { + "median_ms": 0.443, + "p95_ms": 0.741, + "p99_ms": 0.92, + "max_ms": 2.341 + }, + "scene": { + "median_ms": 0.419, + "p95_ms": 1.672, + "p99_ms": 1.981, + "max_ms": 3.393 + }, + "canvas": { + "median_ms": 0.053, + "p95_ms": 0.093, + "p99_ms": 0.135, + "max_ms": 0.188 + }, + "present": { + "median_ms": 1.585, + "p95_ms": 2.178, + "p99_ms": 2.509, + "max_ms": 3.788 + } + }, + "rss_bytes": 542806016, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208192, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 47.0, + "p95_ms": 63.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1527, + "inferences": 1526, + "published": 1526, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6343.000000008033, + "capture_fps": 29.949985289790774, + "inference_fps": 29.93037167794415, + "capture_interval_ms": 14.999999999417923, + "inference_interval_ms": 14.999999999417923, + "inference_ms": 14.999999999417923, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 2, + "inferences": 1, + "published": 1, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6343.000000008033, + "capture_fps": 31.74603174873021, + "inference_fps": 15.873015874365105, + "capture_interval_ms": 46.999999991385266, + "inference_interval_ms": 46.999999991385266, + "inference_ms": 16.00000000325963, + "result_age_ms": 62.999999994644895, + "last_result_age_ms": 31.999999991967343, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 1527, + "inferences": 1527, + "published": 1527, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 6343.000000008033, + "capture_fps": 29.641276496620534, + "inference_fps": 29.641276496620534, + "capture_interval_ms": 14.999999999417923, + "inference_interval_ms": 14.999999999417923, + "inference_ms": 16.00000000325963, + "result_age_ms": 547.0000000059372, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/native-camera-3.json b/docs/validacao-v1.7/desempenho/native-camera-3.json new file mode 100644 index 0000000..6a40391 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/native-camera-3.json @@ -0,0 +1,1614 @@ +{ + "version": "1.7.0", + "conditions": "CPU; native window; local camera inference running concurrently; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "60 fps target, sleep excluded from frame timings", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 1053.95, + "rss_before_bytes": 41086976, + "rss_after_bytes": 136978432, + "rss_delta_bytes": 95891456, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 14.167, + "p95_ms": 19.399, + "p99_ms": 22.415, + "max_ms": 25.55 + }, + "scene_setup_ms": 10.019, + "warmup": { + "median_ms": 12.027, + "p95_ms": 17.539, + "p99_ms": 48.494, + "max_ms": 48.494 + }, + "first_preparation_frame_ms": 80.324, + "first_interactive_frame_ms": 48.494, + "preparation_frames": 39, + "preparation_frame_cost": { + "median_ms": 5.373, + "p95_ms": 89.775, + "p99_ms": 92.95, + "max_ms": 92.95 + }, + "time_until_first_interactive_ms": 1054.367, + "preparation_tasks": [ + [ + "Preparando paisagem", + 22.33969999360852 + ], + [ + "Preparando paisagem", + 27.786399994511157 + ], + [ + "Preparando paisagem", + 25.85700000054203 + ], + [ + "Preparando textura do percurso", + 86.26770001137629 + ], + [ + "Preparando margens", + 90.9444999997504 + ], + [ + "Preparando margens", + 0.6935999990673736 + ], + [ + "Preparando margens", + 0.5705000075977296 + ], + [ + "Preparando margens", + 0.5451000033644959 + ], + [ + "Preparando margens", + 0.7110000005923212 + ], + [ + "Preparando margens", + 0.6763999990653247 + ], + [ + "Preparando margens", + 0.5594999965978786 + ], + [ + "Preparando margens", + 0.683599995682016 + ], + [ + "Preparando margens", + 0.6484000041382387 + ], + [ + "Preparando margens", + 0.6117000011727214 + ], + [ + "Preparando margens", + 1.0214999929303303 + ], + [ + "Preparando margens", + 1.506500004325062 + ], + [ + "Preparando detalhes industriais", + 10.21190000756178 + ], + [ + "Preparando detalhes industriais", + 10.047399991890416 + ], + [ + "Preparando detalhes industriais", + 7.444000002578832 + ], + [ + "Preparando detalhes industriais", + 12.222300007124431 + ], + [ + "Preparando detalhes industriais", + 11.579199999687262 + ], + [ + "Suavizando textura do chão", + 2.1133000118425116 + ], + [ + "Suavizando textura do chão", + 1.3296000106493011 + ], + [ + "Suavizando textura do chão", + 0.5141000001458451 + ], + [ + "Suavizando textura do chão", + 0.48880001122597605 + ], + [ + "Suavizando textura do chão", + 0.1922000083141029 + ], + [ + "Suavizando textura do chão", + 0.11220001033507288 + ], + [ + "Suavizando textura do chão", + 2.4394000065512955 + ], + [ + "Suavizando textura do chão", + 1.6029999969759956 + ], + [ + "Suavizando textura do chão", + 0.7636999944224954 + ], + [ + "Suavizando textura do chão", + 0.4785000055562705 + ], + [ + "Suavizando textura do chão", + 0.18250000721309334 + ], + [ + "Suavizando textura do chão", + 0.08660000457894057 + ], + [ + "Suavizando textura do chão", + 2.7537999994819984 + ], + [ + "Suavizando textura do chão", + 1.7358000040985644 + ], + [ + "Suavizando textura do chão", + 0.7340000011026859 + ], + [ + "Suavizando textura do chão", + 0.35090000892523676 + ], + [ + "Suavizando textura do chão", + 0.24819999816827476 + ], + [ + "Suavizando textura do chão", + 0.0943000050028786 + ], + [ + "Alocando faixas do chão", + 0.523599999723956 + ], + [ + "Alocando faixas do chão", + 0.3935999993700534 + ], + [ + "Alocando faixas do chão", + 0.4141999961575493 + ], + [ + "Alocando faixas do chão", + 0.39539999852422625 + ], + [ + "Alocando faixas do chão", + 0.5037999944761395 + ], + [ + "Alocando faixas do chão", + 0.8345999958692119 + ], + [ + "Alocando faixas do chão", + 0.880199993844144 + ], + [ + "Alocando faixas do chão", + 1.0341000015614554 + ], + [ + "Alocando faixas do chão", + 0.6449999928008765 + ], + [ + "Alocando faixas do chão", + 0.22600000374950469 + ], + [ + "Alocando faixas do chão", + 0.19880000036209822 + ], + [ + "Alocando faixas do chão", + 0.3843000013148412 + ], + [ + "Alocando faixas do chão", + 0.3723999980138615 + ], + [ + "Alocando faixas do chão", + 0.5329999985406175 + ], + [ + "Alocando faixas do chão", + 0.8571000071242452 + ], + [ + "Alocando faixas do chão", + 0.9014999959617853 + ], + [ + "Alocando faixas do chão", + 0.6992999988142401 + ], + [ + "Alocando faixas do chão", + 0.4521000082604587 + ], + [ + "Alocando faixas do chão", + 0.20170000789221376 + ], + [ + "Alocando faixas do chão", + 0.21600000036414713 + ], + [ + "Alocando faixas do chão", + 0.28049999673385173 + ], + [ + "Alocando faixas do chão", + 0.415000002249144 + ], + [ + "Alocando faixas do chão", + 0.5106000025989488 + ], + [ + "Alocando faixas do chão", + 0.5755999882239848 + ], + [ + "Alocando faixas do chão", + 0.6275000050663948 + ], + [ + "Alocando faixas do chão", + 0.5690999969374388 + ], + [ + "Alocando faixas do chão", + 0.4495000030146912 + ], + [ + "Preparando fauna", + 73.09069999610074 + ], + [ + "Carregando elementos regionais", + 10.285099997418001 + ], + [ + "Carregando elementos regionais", + 10.987299989210442 + ], + [ + "Carregando elementos regionais", + 10.540100003709085 + ], + [ + "Preparando obstáculos regionais", + 12.906000003567897 + ], + [ + "Preparando avião", + 22.212999989278615 + ], + [ + "Aplicando pintura", + 0.009199997293762863 + ], + [ + "Preparando piloto", + 25.76809999300167 + ], + [ + "Montando visual do voo", + 0.7482999935746193 + ], + [ + "Preparando primeira vista", + 33.74039998743683 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.8033, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.004, + "p99_ms": 0.006, + "max_ms": 0.016 + }, + "rules_update": { + "median_ms": 0.116, + "p95_ms": 0.251, + "p99_ms": 1.379, + "max_ms": 2.472 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.212, + "p99_ms": 3.156, + "max_ms": 3.604 + }, + "ground": { + "median_ms": 7.178, + "p95_ms": 10.033, + "p99_ms": 12.147, + "max_ms": 12.858 + }, + "route_and_banks": { + "median_ms": 9.92, + "p95_ms": 13.901, + "p99_ms": 16.866, + "max_ms": 17.921 + }, + "background": { + "median_ms": 10.78, + "p95_ms": 15.307, + "p99_ms": 18.106, + "max_ms": 20.067 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.23, + "p99_ms": 0.312, + "max_ms": 0.916 + }, + "entities_and_effects": { + "median_ms": 11.741, + "p95_ms": 16.544, + "p99_ms": 19.668, + "max_ms": 21.374 + }, + "world": { + "median_ms": 11.75, + "p95_ms": 16.562, + "p99_ms": 19.682, + "max_ms": 21.385 + }, + "hud": { + "median_ms": 0.389, + "p95_ms": 0.64, + "p99_ms": 0.788, + "max_ms": 3.802 + }, + "scene": { + "median_ms": 12.481, + "p95_ms": 17.599, + "p99_ms": 20.617, + "max_ms": 23.312 + }, + "canvas": { + "median_ms": 12.681, + "p95_ms": 17.853, + "p99_ms": 20.776, + "max_ms": 23.576 + }, + "present": { + "median_ms": 1.376, + "p95_ms": 1.881, + "p99_ms": 2.302, + "max_ms": 2.825 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.004, + "p99_ms": 0.006, + "max_ms": 0.016 + }, + "rules_update": { + "median_ms": 0.116, + "p95_ms": 0.251, + "p99_ms": 1.379, + "max_ms": 2.472 + }, + "horizon": { + "median_ms": 0.008, + "p95_ms": 2.212, + "p99_ms": 3.156, + "max_ms": 3.604 + }, + "ground": { + "median_ms": 7.178, + "p95_ms": 10.033, + "p99_ms": 12.147, + "max_ms": 12.858 + }, + "route_and_banks": { + "median_ms": 2.677, + "p95_ms": 5.035, + "p99_ms": 6.11, + "max_ms": 7.591 + }, + "background": { + "median_ms": 0.515, + "p95_ms": 1.017, + "p99_ms": 1.217, + "max_ms": 2.549 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.23, + "p99_ms": 0.312, + "max_ms": 0.916 + }, + "entities_and_effects": { + "median_ms": 0.847, + "p95_ms": 1.544, + "p99_ms": 1.901, + "max_ms": 2.509 + }, + "world": { + "median_ms": 0.01, + "p95_ms": 0.022, + "p99_ms": 0.03, + "max_ms": 0.11 + }, + "hud": { + "median_ms": 0.389, + "p95_ms": 0.64, + "p99_ms": 0.788, + "max_ms": 3.802 + }, + "scene": { + "median_ms": 0.338, + "p95_ms": 1.202, + "p99_ms": 2.112, + "max_ms": 3.518 + }, + "canvas": { + "median_ms": 0.046, + "p95_ms": 0.098, + "p99_ms": 0.148, + "max_ms": 0.397 + }, + "present": { + "median_ms": 1.376, + "p95_ms": 1.881, + "p99_ms": 2.302, + "max_ms": 2.825 + } + }, + "rss_bytes": 512696320, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75571, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 32.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 109.0 + }, + "camera": { + "frames_read": 376, + "inferences": 376, + "published": 376, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 30.00558614638547, + "inference_fps": 30.00558614638547, + "capture_interval_ms": 16.00000000325963, + "inference_interval_ms": 16.00000000325963, + "inference_ms": 15.999999988707714, + "result_age_ms": 30.999999988125637, + "last_result_age_ms": 15.999999988707714, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 19.268, + "p95_ms": 28.387, + "p99_ms": 34.409, + "max_ms": 47.571 + }, + "scene_setup_ms": 26.846, + "warmup": { + "median_ms": 16.792, + "p95_ms": 21.661, + "p99_ms": 24.987, + "max_ms": 24.987 + }, + "first_preparation_frame_ms": 35.787, + "first_interactive_frame_ms": 17.583, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 35.787, + "p95_ms": 35.787, + "p99_ms": 35.787, + "max_ms": 35.787 + }, + "time_until_first_interactive_ms": 53.453, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0043000036384910345 + ], + [ + "Aplicando pintura", + 0.0027999922167509794 + ], + [ + "Preparando piloto", + 0.023500004317611456 + ], + [ + "Montando visual do voo", + 0.005399997462518513 + ], + [ + "Preparando primeira vista", + 33.423400003812276 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.175, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.004, + "p99_ms": 0.007, + "max_ms": 0.027 + }, + "rules_update": { + "median_ms": 0.141, + "p95_ms": 0.254, + "p99_ms": 1.446, + "max_ms": 2.567 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.121, + "p99_ms": 3.14, + "max_ms": 4.333 + }, + "ground": { + "median_ms": 7.381, + "p95_ms": 11.236, + "p99_ms": 13.801, + "max_ms": 19.968 + }, + "route_and_banks": { + "median_ms": 10.252, + "p95_ms": 15.859, + "p99_ms": 20.563, + "max_ms": 27.19 + }, + "desaturate": { + "median_ms": 3.001, + "p95_ms": 5.021, + "p99_ms": 5.826, + "max_ms": 7.876 + }, + "background": { + "median_ms": 14.19, + "p95_ms": 21.661, + "p99_ms": 26.31, + "max_ms": 39.283 + }, + "plane": { + "median_ms": 0.15, + "p95_ms": 0.251, + "p99_ms": 0.374, + "max_ms": 0.988 + }, + "entities_and_effects": { + "median_ms": 15.868, + "p95_ms": 23.78, + "p99_ms": 28.667, + "max_ms": 41.002 + }, + "world": { + "median_ms": 16.769, + "p95_ms": 24.996, + "p99_ms": 30.833, + "max_ms": 43.904 + }, + "hud": { + "median_ms": 0.417, + "p95_ms": 0.709, + "p99_ms": 0.812, + "max_ms": 1.748 + }, + "scene": { + "median_ms": 17.598, + "p95_ms": 26.053, + "p99_ms": 32.129, + "max_ms": 45.25 + }, + "canvas": { + "median_ms": 17.833, + "p95_ms": 26.629, + "p99_ms": 32.472, + "max_ms": 45.49 + }, + "present": { + "median_ms": 1.356, + "p95_ms": 1.994, + "p99_ms": 2.462, + "max_ms": 3.525 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.004, + "p99_ms": 0.007, + "max_ms": 0.027 + }, + "rules_update": { + "median_ms": 0.141, + "p95_ms": 0.254, + "p99_ms": 1.446, + "max_ms": 2.567 + }, + "horizon": { + "median_ms": 0.01, + "p95_ms": 2.121, + "p99_ms": 3.14, + "max_ms": 4.333 + }, + "ground": { + "median_ms": 7.381, + "p95_ms": 11.236, + "p99_ms": 13.801, + "max_ms": 19.968 + }, + "route_and_banks": { + "median_ms": 2.819, + "p95_ms": 5.467, + "p99_ms": 7.147, + "max_ms": 8.151 + }, + "desaturate": { + "median_ms": 3.001, + "p95_ms": 5.021, + "p99_ms": 5.826, + "max_ms": 7.876 + }, + "background": { + "median_ms": 0.603, + "p95_ms": 1.005, + "p99_ms": 1.206, + "max_ms": 1.959 + }, + "plane": { + "median_ms": 0.15, + "p95_ms": 0.251, + "p99_ms": 0.374, + "max_ms": 0.988 + }, + "entities_and_effects": { + "median_ms": 1.401, + "p95_ms": 2.753, + "p99_ms": 3.797, + "max_ms": 4.892 + }, + "world": { + "median_ms": 0.871, + "p95_ms": 1.286, + "p99_ms": 1.438, + "max_ms": 2.902 + }, + "hud": { + "median_ms": 0.417, + "p95_ms": 0.709, + "p99_ms": 0.812, + "max_ms": 1.748 + }, + "scene": { + "median_ms": 0.359, + "p95_ms": 1.281, + "p99_ms": 1.791, + "max_ms": 2.064 + }, + "canvas": { + "median_ms": 0.053, + "p95_ms": 0.108, + "p99_ms": 0.161, + "max_ms": 0.233 + }, + "present": { + "median_ms": 1.356, + "p95_ms": 1.994, + "p99_ms": 2.462, + "max_ms": 3.525 + } + }, + "rss_bytes": 522854400, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154995, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 46.0, + "p95_ms": 63.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 781, + "inferences": 780, + "published": 780, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 30.03846153846154, + "inference_fps": 30.0, + "capture_interval_ms": 14.999999999417923, + "inference_interval_ms": 14.999999999417923, + "inference_ms": 14.999999999417923, + "result_age_ms": 31.000000002677552, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 10.342, + "p95_ms": 39.92, + "p99_ms": 52.708, + "max_ms": 64.441 + }, + "scene_setup_ms": 8.034, + "warmup": { + "median_ms": 7.831, + "p95_ms": 10.832, + "p99_ms": 14.339, + "max_ms": 14.339 + }, + "first_preparation_frame_ms": 41.455, + "first_interactive_frame_ms": 8.748, + "preparation_frames": 20, + "preparation_frame_cost": { + "median_ms": 11.325, + "p95_ms": 88.835, + "p99_ms": 88.835, + "max_ms": 88.835 + }, + "time_until_first_interactive_ms": 473.309, + "preparation_tasks": [ + [ + "Preparando paisagem", + 25.67680001084227 + ], + [ + "Preparando paisagem", + 27.94839999114629 + ], + [ + "Preparando paisagem", + 21.996900002704933 + ], + [ + "Preparando textura do percurso", + 0.003100009053014219 + ], + [ + "Preparando margens", + 87.04369999759365 + ], + [ + "Preparando margens", + 0.6902000022819266 + ], + [ + "Preparando margens", + 0.617499987129122 + ], + [ + "Preparando margens", + 0.6397999968612567 + ], + [ + "Preparando margens", + 0.265499998931773 + ], + [ + "Preparando margens", + 0.4014000005554408 + ], + [ + "Preparando margens", + 0.19069999689236283 + ], + [ + "Preparando margens", + 0.17040000238921493 + ], + [ + "Preparando margens", + 0.5003999976906925 + ], + [ + "Preparando margens", + 0.5258000019239262 + ], + [ + "Preparando margens", + 0.5361999938031659 + ], + [ + "Preparando margens", + 0.8269999962067232 + ], + [ + "Preparando detalhes industriais", + 9.292099988670088 + ], + [ + "Preparando detalhes industriais", + 12.732100003631786 + ], + [ + "Preparando detalhes industriais", + 8.619500003987923 + ], + [ + "Preparando detalhes industriais", + 10.324399991077371 + ], + [ + "Preparando detalhes industriais", + 9.043900005053729 + ], + [ + "Suavizando textura do chão", + 1.8894999957410619 + ], + [ + "Suavizando textura do chão", + 1.2584000069182366 + ], + [ + "Suavizando textura do chão", + 0.4648000031011179 + ], + [ + "Suavizando textura do chão", + 0.18060000729747117 + ], + [ + "Suavizando textura do chão", + 0.09919999865815043 + ], + [ + "Suavizando textura do chão", + 0.041700011934153736 + ], + [ + "Alocando faixas do chão", + 0.21810000180266798 + ], + [ + "Alocando faixas do chão", + 0.19920000340789557 + ], + [ + "Alocando faixas do chão", + 0.19500000053085387 + ], + [ + "Alocando faixas do chão", + 0.1922000083141029 + ], + [ + "Alocando faixas do chão", + 0.23429999419022352 + ], + [ + "Alocando faixas do chão", + 0.22420000459533185 + ], + [ + "Alocando faixas do chão", + 0.294400000711903 + ], + [ + "Alocando faixas do chão", + 0.2376000047661364 + ], + [ + "Alocando faixas do chão", + 0.17810000281315297 + ], + [ + "Preparando fauna", + 0.0031999952625483274 + ], + [ + "Carregando elementos regionais", + 9.047600004123524 + ], + [ + "Carregando elementos regionais", + 8.898799991584383 + ], + [ + "Carregando elementos regionais", + 12.38980000198353 + ], + [ + "Preparando obstáculos regionais", + 11.029600005713291 + ], + [ + "Preparando avião", + 0.0031999952625483274 + ], + [ + "Aplicando pintura", + 0.0021999876480549574 + ], + [ + "Preparando piloto", + 0.027699992642737925 + ], + [ + "Montando visual do voo", + 0.005800000508315861 + ], + [ + "Preparando primeira vista", + 23.49750000576023 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.8367, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.006, + "p99_ms": 0.007, + "max_ms": 0.009 + }, + "rules_update": { + "median_ms": 0.109, + "p95_ms": 0.592, + "p99_ms": 1.318, + "max_ms": 10.725 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.595, + "p99_ms": 7.202, + "max_ms": 9.643 + }, + "ground": { + "median_ms": 2.87, + "p95_ms": 13.688, + "p99_ms": 17.682, + "max_ms": 23.836 + }, + "route_and_banks": { + "median_ms": 6.182, + "p95_ms": 23.131, + "p99_ms": 28.599, + "max_ms": 33.487 + }, + "background": { + "median_ms": 6.914, + "p95_ms": 25.962, + "p99_ms": 35.174, + "max_ms": 44.226 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.586, + "p99_ms": 0.851, + "max_ms": 3.135 + }, + "entities_and_effects": { + "median_ms": 7.899, + "p95_ms": 29.359, + "p99_ms": 39.164, + "max_ms": 50.192 + }, + "world": { + "median_ms": 7.908, + "p95_ms": 29.392, + "p99_ms": 39.202, + "max_ms": 50.232 + }, + "hud": { + "median_ms": 0.389, + "p95_ms": 1.855, + "p99_ms": 3.051, + "max_ms": 4.508 + }, + "scene": { + "median_ms": 8.809, + "p95_ms": 34.974, + "p99_ms": 46.502, + "max_ms": 59.079 + }, + "canvas": { + "median_ms": 8.985, + "p95_ms": 35.886, + "p99_ms": 47.196, + "max_ms": 59.893 + }, + "present": { + "median_ms": 1.312, + "p95_ms": 4.081, + "p99_ms": 4.678, + "max_ms": 6.528 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.006, + "p99_ms": 0.007, + "max_ms": 0.009 + }, + "rules_update": { + "median_ms": 0.109, + "p95_ms": 0.592, + "p99_ms": 1.318, + "max_ms": 10.725 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.595, + "p99_ms": 7.202, + "max_ms": 9.643 + }, + "ground": { + "median_ms": 2.87, + "p95_ms": 13.688, + "p99_ms": 17.682, + "max_ms": 23.836 + }, + "route_and_banks": { + "median_ms": 3.291, + "p95_ms": 9.54, + "p99_ms": 12.964, + "max_ms": 15.231 + }, + "background": { + "median_ms": 0.48, + "p95_ms": 1.86, + "p99_ms": 2.247, + "max_ms": 3.871 + }, + "plane": { + "median_ms": 0.137, + "p95_ms": 0.586, + "p99_ms": 0.851, + "max_ms": 3.135 + }, + "entities_and_effects": { + "median_ms": 0.93, + "p95_ms": 3.155, + "p99_ms": 4.801, + "max_ms": 6.487 + }, + "world": { + "median_ms": 0.01, + "p95_ms": 0.035, + "p99_ms": 0.041, + "max_ms": 0.052 + }, + "hud": { + "median_ms": 0.389, + "p95_ms": 1.855, + "p99_ms": 3.051, + "max_ms": 4.508 + }, + "scene": { + "median_ms": 0.386, + "p95_ms": 6.147, + "p99_ms": 9.395, + "max_ms": 11.855 + }, + "canvas": { + "median_ms": 0.043, + "p95_ms": 0.173, + "p99_ms": 0.228, + "max_ms": 0.285 + }, + "present": { + "median_ms": 1.312, + "p95_ms": 4.081, + "p99_ms": 4.678, + "max_ms": 6.528 + } + }, + "rss_bytes": 536301568, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127595, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 46.0, + "p95_ms": 157.0, + "p99_ms": 204.0, + "max_ms": 234.0 + }, + "camera": { + "frames_read": 1123, + "inferences": 1123, + "published": 1123, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 28.3185394391854, + "inference_fps": 28.3185394391854, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 14.999999999417923, + "result_age_ms": 61.99999999080319, + "last_result_age_ms": 14.999999999417923, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 12.928, + "p95_ms": 18.256, + "p99_ms": 21.271, + "max_ms": 27.267 + }, + "scene_setup_ms": 6.051, + "warmup": { + "median_ms": 10.944, + "p95_ms": 16.288, + "p99_ms": 18.573, + "max_ms": 18.573 + }, + "first_preparation_frame_ms": 23.556, + "first_interactive_frame_ms": 10.526, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 23.556, + "p95_ms": 23.556, + "p99_ms": 23.556, + "max_ms": 23.556 + }, + "time_until_first_interactive_ms": 34.14, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0026999914553016424 + ], + [ + "Aplicando pintura", + 0.0018999999156221747 + ], + [ + "Preparando piloto", + 0.020199993741698563 + ], + [ + "Montando visual do voo", + 0.0049000082071870565 + ], + [ + "Preparando primeira vista", + 21.94160000362899 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9083, + "components": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.004, + "max_ms": 0.006 + }, + "rules_update": { + "median_ms": 0.098, + "p95_ms": 0.185, + "p99_ms": 1.283, + "max_ms": 1.579 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.505, + "p99_ms": 1.926, + "max_ms": 2.53 + }, + "ground": { + "median_ms": 2.559, + "p95_ms": 3.772, + "p99_ms": 4.643, + "max_ms": 7.158 + }, + "route_and_banks": { + "median_ms": 5.275, + "p95_ms": 8.335, + "p99_ms": 9.938, + "max_ms": 12.149 + }, + "desaturate": { + "median_ms": 2.579, + "p95_ms": 4.037, + "p99_ms": 5.137, + "max_ms": 6.318 + }, + "background": { + "median_ms": 8.454, + "p95_ms": 12.607, + "p99_ms": 15.727, + "max_ms": 17.032 + }, + "plane": { + "median_ms": 0.126, + "p95_ms": 0.21, + "p99_ms": 0.366, + "max_ms": 0.76 + }, + "entities_and_effects": { + "median_ms": 9.831, + "p95_ms": 14.52, + "p99_ms": 17.155, + "max_ms": 19.442 + }, + "world": { + "median_ms": 10.576, + "p95_ms": 15.642, + "p99_ms": 18.282, + "max_ms": 20.958 + }, + "hud": { + "median_ms": 0.35, + "p95_ms": 0.601, + "p99_ms": 0.728, + "max_ms": 1.178 + }, + "scene": { + "median_ms": 11.56, + "p95_ms": 16.596, + "p99_ms": 19.629, + "max_ms": 25.16 + }, + "canvas": { + "median_ms": 11.743, + "p95_ms": 16.735, + "p99_ms": 19.807, + "max_ms": 25.525 + }, + "present": { + "median_ms": 1.196, + "p95_ms": 1.705, + "p99_ms": 2.165, + "max_ms": 3.399 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.002, + "p95_ms": 0.003, + "p99_ms": 0.004, + "max_ms": 0.006 + }, + "rules_update": { + "median_ms": 0.098, + "p95_ms": 0.185, + "p99_ms": 1.283, + "max_ms": 1.579 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 1.505, + "p99_ms": 1.926, + "max_ms": 2.53 + }, + "ground": { + "median_ms": 2.559, + "p95_ms": 3.772, + "p99_ms": 4.643, + "max_ms": 7.158 + }, + "route_and_banks": { + "median_ms": 2.603, + "p95_ms": 4.958, + "p99_ms": 6.311, + "max_ms": 7.822 + }, + "desaturate": { + "median_ms": 2.579, + "p95_ms": 4.037, + "p99_ms": 5.137, + "max_ms": 6.318 + }, + "background": { + "median_ms": 0.451, + "p95_ms": 0.77, + "p99_ms": 0.938, + "max_ms": 1.209 + }, + "plane": { + "median_ms": 0.126, + "p95_ms": 0.21, + "p99_ms": 0.366, + "max_ms": 0.76 + }, + "entities_and_effects": { + "median_ms": 1.184, + "p95_ms": 2.267, + "p99_ms": 3.09, + "max_ms": 3.909 + }, + "world": { + "median_ms": 0.741, + "p95_ms": 1.105, + "p99_ms": 1.32, + "max_ms": 1.584 + }, + "hud": { + "median_ms": 0.35, + "p95_ms": 0.601, + "p99_ms": 0.728, + "max_ms": 1.178 + }, + "scene": { + "median_ms": 0.344, + "p95_ms": 1.399, + "p99_ms": 1.897, + "max_ms": 3.024 + }, + "canvas": { + "median_ms": 0.039, + "p95_ms": 0.066, + "p99_ms": 0.103, + "max_ms": 0.116 + }, + "present": { + "median_ms": 1.196, + "p95_ms": 1.705, + "p99_ms": 2.165, + "max_ms": 3.399 + } + }, + "rss_bytes": 540889088, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208190, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "latest_camera_result_age_at_present": { + "median_ms": 31.0, + "p95_ms": 63.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "camera": { + "frames_read": 1466, + "inferences": 1465, + "published": 1465, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 28.709633198209147, + "inference_fps": 28.690049546641475, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 31.000000002677552, + "result_age_ms": 47.00000000593718, + "last_result_age_ms": 31.000000002677552, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + } + } + }, + "camera_start": { + "frames_read": 1, + "inferences": 1, + "published": 1, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 32.25806452848529, + "inference_fps": 32.25806452848529, + "capture_interval_ms": 0.0, + "inference_interval_ms": 0.0, + "inference_ms": 30.999999988125637, + "result_age_ms": 30.999999988125637, + "last_result_age_ms": 30.999999988125637, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": false + }, + "camera_ready": true, + "latency_basis": "read-return to present-call completion; excludes sensor buffering and physical display latency", + "camera_thread_stopped": true, + "camera_end": { + "frames_read": 1466, + "inferences": 1466, + "published": 1466, + "stale_dropped": 0, + "read_failures": 0, + "errors": 0, + "startup_ms": 5781.000000002678, + "capture_fps": 28.40589819605287, + "inference_fps": 28.40589819605287, + "capture_interval_ms": 31.000000002677552, + "inference_interval_ms": 31.000000002677552, + "inference_ms": 16.00000000325963, + "result_age_ms": 562.0000000053551, + "last_result_age_ms": 16.00000000325963, + "resolution": [ + 640, + 480 + ], + "error": null, + "stopping": true + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/runtime-1.json b/docs/validacao-v1.7/desempenho/runtime-1.json new file mode 100644 index 0000000..a296667 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/runtime-1.json @@ -0,0 +1,1455 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 850.6, + "rss_before_bytes": 41058304, + "rss_after_bytes": 100663296, + "rss_delta_bytes": 59604992, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 11.15, + "p95_ms": 15.089, + "p99_ms": 17.465, + "max_ms": 19.599 + }, + "scene_setup_ms": 12.165, + "warmup": { + "median_ms": 10.421, + "p95_ms": 15.104, + "p99_ms": 59.233, + "max_ms": 59.233 + }, + "first_preparation_frame_ms": 82.37, + "first_interactive_frame_ms": 59.233, + "preparation_frames": 36, + "preparation_frame_cost": { + "median_ms": 7.601, + "p95_ms": 84.577, + "p99_ms": 102.486, + "max_ms": 102.486 + }, + "time_until_first_interactive_ms": 709.271, + "preparation_tasks": [ + [ + "Preparando paisagem", + 24.186499998904765 + ], + [ + "Preparando paisagem", + 27.629299991531298 + ], + [ + "Preparando paisagem", + 28.275000004214235 + ], + [ + "Preparando textura do percurso", + 83.6773000046378 + ], + [ + "Preparando margens", + 101.59239999484271 + ], + [ + "Preparando margens", + 1.0602000111248344 + ], + [ + "Preparando margens", + 0.8818999922368675 + ], + [ + "Preparando margens", + 1.047299985657446 + ], + [ + "Preparando margens", + 0.9751000034157187 + ], + [ + "Preparando margens", + 0.7692000071983784 + ], + [ + "Preparando margens", + 0.5594999965978786 + ], + [ + "Preparando margens", + 0.6175000016810372 + ], + [ + "Preparando margens", + 0.751899991882965 + ], + [ + "Preparando margens", + 0.6813999934820458 + ], + [ + "Preparando margens", + 0.8016999927349389 + ], + [ + "Preparando margens", + 1.1838000064017251 + ], + [ + "Preparando detalhes industriais", + 8.742599995457567 + ], + [ + "Preparando detalhes industriais", + 10.67259999399539 + ], + [ + "Preparando detalhes industriais", + 6.465000013122335 + ], + [ + "Preparando detalhes industriais", + 9.456699990550987 + ], + [ + "Preparando detalhes industriais", + 6.972899995162152 + ], + [ + "Suavizando textura do chão", + 2.6092999905813485 + ], + [ + "Suavizando textura do chão", + 1.4510000037262216 + ], + [ + "Suavizando textura do chão", + 0.5682999908458441 + ], + [ + "Suavizando textura do chão", + 0.287900009425357 + ], + [ + "Suavizando textura do chão", + 0.09410000347997993 + ], + [ + "Suavizando textura do chão", + 0.046900007873773575 + ], + [ + "Suavizando textura do chão", + 1.831699992180802 + ], + [ + "Suavizando textura do chão", + 0.9354999929200858 + ], + [ + "Suavizando textura do chão", + 0.4830999969271943 + ], + [ + "Suavizando textura do chão", + 0.25440000172238797 + ], + [ + "Suavizando textura do chão", + 0.14930000179447234 + ], + [ + "Suavizando textura do chão", + 0.08250000246334821 + ], + [ + "Suavizando textura do chão", + 1.8982999899890274 + ], + [ + "Suavizando textura do chão", + 1.0458000033395365 + ], + [ + "Suavizando textura do chão", + 0.5300000048009679 + ], + [ + "Suavizando textura do chão", + 0.31770000350661576 + ], + [ + "Suavizando textura do chão", + 0.22499999613501132 + ], + [ + "Suavizando textura do chão", + 0.09110000974033028 + ], + [ + "Alocando faixas do chão", + 0.5223000043770298 + ], + [ + "Alocando faixas do chão", + 0.3882000019075349 + ], + [ + "Alocando faixas do chão", + 0.4317999992053956 + ], + [ + "Alocando faixas do chão", + 0.41879998752847314 + ], + [ + "Alocando faixas do chão", + 0.527600001078099 + ], + [ + "Alocando faixas do chão", + 0.5920999974478036 + ], + [ + "Alocando faixas do chão", + 0.6900000007590279 + ], + [ + "Alocando faixas do chão", + 0.6704000115860254 + ], + [ + "Alocando faixas do chão", + 0.519299996085465 + ], + [ + "Alocando faixas do chão", + 0.22529999841935933 + ], + [ + "Alocando faixas do chão", + 0.20870000298600644 + ], + [ + "Alocando faixas do chão", + 0.29320000612642616 + ], + [ + "Alocando faixas do chão", + 0.375000003259629 + ], + [ + "Alocando faixas do chão", + 0.417799994465895 + ], + [ + "Alocando faixas do chão", + 0.5324999947333708 + ], + [ + "Alocando faixas do chão", + 0.5643000040436164 + ], + [ + "Alocando faixas do chão", + 0.6025000038789585 + ], + [ + "Alocando faixas do chão", + 0.43820000428240746 + ], + [ + "Alocando faixas do chão", + 0.23969999165274203 + ], + [ + "Alocando faixas do chão", + 0.1900999923236668 + ], + [ + "Alocando faixas do chão", + 0.43840000580530614 + ], + [ + "Alocando faixas do chão", + 0.6888000061735511 + ], + [ + "Alocando faixas do chão", + 0.5588000058196485 + ], + [ + "Alocando faixas do chão", + 0.6135000003268942 + ], + [ + "Alocando faixas do chão", + 0.6843000010121614 + ], + [ + "Alocando faixas do chão", + 0.8868000004440546 + ], + [ + "Alocando faixas do chão", + 0.5337000038707629 + ], + [ + "Preparando fauna", + 67.25330000335816 + ], + [ + "Carregando elementos regionais", + 9.428499994101003 + ], + [ + "Carregando elementos regionais", + 9.692099993117154 + ], + [ + "Carregando elementos regionais", + 11.834999997518025 + ], + [ + "Preparando obstáculos regionais", + 11.056899995310232 + ], + [ + "Preparando avião", + 21.939300000667572 + ], + [ + "Aplicando pintura", + 0.014200006262399256 + ], + [ + "Preparando piloto", + 29.82900000642985 + ], + [ + "Montando visual do voo", + 0.7521000079577789 + ], + [ + "Preparando primeira vista", + 28.205299997352995 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9833, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.024 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.158, + "p99_ms": 1.116, + "max_ms": 1.894 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.45, + "p99_ms": 1.744, + "max_ms": 2.125 + }, + "ground": { + "median_ms": 6.018, + "p95_ms": 8.564, + "p99_ms": 10.046, + "max_ms": 12.72 + }, + "route_and_banks": { + "median_ms": 8.412, + "p95_ms": 11.757, + "p99_ms": 13.687, + "max_ms": 16.184 + }, + "background": { + "median_ms": 8.979, + "p95_ms": 12.642, + "p99_ms": 14.806, + "max_ms": 16.846 + }, + "plane": { + "median_ms": 0.122, + "p95_ms": 0.19, + "p99_ms": 0.262, + "max_ms": 0.864 + }, + "entities_and_effects": { + "median_ms": 9.898, + "p95_ms": 13.633, + "p99_ms": 15.485, + "max_ms": 18.326 + }, + "world": { + "median_ms": 9.908, + "p95_ms": 13.64, + "p99_ms": 15.492, + "max_ms": 18.336 + }, + "hud": { + "median_ms": 0.354, + "p95_ms": 0.567, + "p99_ms": 0.742, + "max_ms": 3.67 + }, + "scene": { + "median_ms": 10.653, + "p95_ms": 14.578, + "p99_ms": 16.499, + "max_ms": 19.05 + }, + "canvas": { + "median_ms": 10.847, + "p95_ms": 14.789, + "p99_ms": 17.166, + "max_ms": 19.281 + }, + "present": { + "median_ms": 0.277, + "p95_ms": 0.43, + "p99_ms": 0.496, + "max_ms": 1.191 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.024 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.158, + "p99_ms": 1.116, + "max_ms": 1.894 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.45, + "p99_ms": 1.744, + "max_ms": 2.125 + }, + "ground": { + "median_ms": 6.018, + "p95_ms": 8.564, + "p99_ms": 10.046, + "max_ms": 12.72 + }, + "route_and_banks": { + "median_ms": 2.334, + "p95_ms": 4.217, + "p99_ms": 5.41, + "max_ms": 6.001 + }, + "background": { + "median_ms": 0.392, + "p95_ms": 0.637, + "p99_ms": 0.859, + "max_ms": 2.977 + }, + "plane": { + "median_ms": 0.122, + "p95_ms": 0.19, + "p99_ms": 0.262, + "max_ms": 0.864 + }, + "entities_and_effects": { + "median_ms": 0.721, + "p95_ms": 1.326, + "p99_ms": 1.796, + "max_ms": 2.331 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.009, + "p99_ms": 0.019, + "max_ms": 0.034 + }, + "hud": { + "median_ms": 0.354, + "p95_ms": 0.567, + "p99_ms": 0.742, + "max_ms": 3.67 + }, + "scene": { + "median_ms": 0.303, + "p95_ms": 1.106, + "p99_ms": 1.921, + "max_ms": 2.579 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.048, + "p99_ms": 0.056, + "max_ms": 0.161 + }, + "present": { + "median_ms": 0.277, + "p95_ms": 0.43, + "p99_ms": 0.496, + "max_ms": 1.191 + } + }, + "rss_bytes": 275681280, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75568, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 15.189, + "p95_ms": 20.917, + "p99_ms": 25.132, + "max_ms": 29.055 + }, + "scene_setup_ms": 6.004, + "warmup": { + "median_ms": 13.06, + "p95_ms": 15.919, + "p99_ms": 16.711, + "max_ms": 16.711 + }, + "first_preparation_frame_ms": 35.948, + "first_interactive_frame_ms": 11.725, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 35.948, + "p95_ms": 35.948, + "p99_ms": 35.948, + "max_ms": 35.948 + }, + "time_until_first_interactive_ms": 47.705, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0033999967854470015 + ], + [ + "Aplicando pintura", + 0.0024000037228688598 + ], + [ + "Preparando piloto", + 0.01960000372491777 + ], + [ + "Montando visual do voo", + 0.0046000059228390455 + ], + [ + "Preparando primeira vista", + 35.187400004360825 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.6967, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.015 + }, + "rules_update": { + "median_ms": 0.09, + "p95_ms": 0.161, + "p99_ms": 1.118, + "max_ms": 2.913 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.849, + "p99_ms": 2.593, + "max_ms": 3.101 + }, + "ground": { + "median_ms": 6.108, + "p95_ms": 8.767, + "p99_ms": 10.942, + "max_ms": 12.052 + }, + "route_and_banks": { + "median_ms": 8.525, + "p95_ms": 12.26, + "p99_ms": 15.797, + "max_ms": 18.237 + }, + "desaturate": { + "median_ms": 2.697, + "p95_ms": 4.223, + "p99_ms": 5.195, + "max_ms": 5.424 + }, + "background": { + "median_ms": 11.909, + "p95_ms": 16.761, + "p99_ms": 20.779, + "max_ms": 23.099 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.198, + "p99_ms": 0.243, + "max_ms": 0.607 + }, + "entities_and_effects": { + "median_ms": 13.329, + "p95_ms": 18.424, + "p99_ms": 22.49, + "max_ms": 25.637 + }, + "world": { + "median_ms": 14.038, + "p95_ms": 19.824, + "p99_ms": 23.583, + "max_ms": 27.386 + }, + "hud": { + "median_ms": 0.358, + "p95_ms": 0.565, + "p99_ms": 0.731, + "max_ms": 2.061 + }, + "scene": { + "median_ms": 14.779, + "p95_ms": 20.457, + "p99_ms": 23.989, + "max_ms": 28.447 + }, + "canvas": { + "median_ms": 14.902, + "p95_ms": 20.604, + "p99_ms": 24.514, + "max_ms": 28.648 + }, + "present": { + "median_ms": 0.274, + "p95_ms": 0.433, + "p99_ms": 0.55, + "max_ms": 0.733 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.015 + }, + "rules_update": { + "median_ms": 0.09, + "p95_ms": 0.161, + "p99_ms": 1.118, + "max_ms": 2.913 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.849, + "p99_ms": 2.593, + "max_ms": 3.101 + }, + "ground": { + "median_ms": 6.108, + "p95_ms": 8.767, + "p99_ms": 10.942, + "max_ms": 12.052 + }, + "route_and_banks": { + "median_ms": 2.37, + "p95_ms": 4.235, + "p99_ms": 5.526, + "max_ms": 7.733 + }, + "desaturate": { + "median_ms": 2.697, + "p95_ms": 4.223, + "p99_ms": 5.195, + "max_ms": 5.424 + }, + "background": { + "median_ms": 0.4, + "p95_ms": 0.63, + "p99_ms": 0.843, + "max_ms": 1.284 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.198, + "p99_ms": 0.243, + "max_ms": 0.607 + }, + "entities_and_effects": { + "median_ms": 1.167, + "p95_ms": 2.241, + "p99_ms": 2.7, + "max_ms": 3.523 + }, + "world": { + "median_ms": 0.758, + "p95_ms": 1.076, + "p99_ms": 1.225, + "max_ms": 2.271 + }, + "hud": { + "median_ms": 0.358, + "p95_ms": 0.565, + "p99_ms": 0.731, + "max_ms": 2.061 + }, + "scene": { + "median_ms": 0.294, + "p95_ms": 1.231, + "p99_ms": 1.865, + "max_ms": 2.048 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.05, + "p99_ms": 0.064, + "max_ms": 0.096 + }, + "present": { + "median_ms": 0.274, + "p95_ms": 0.433, + "p99_ms": 0.55, + "max_ms": 0.733 + } + }, + "rss_bytes": 287641600, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154992, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 7.849, + "p95_ms": 14.579, + "p99_ms": 24.948, + "max_ms": 39.558 + }, + "scene_setup_ms": 5.558, + "warmup": { + "median_ms": 6.216, + "p95_ms": 8.7, + "p99_ms": 8.966, + "max_ms": 8.966 + }, + "first_preparation_frame_ms": 32.168, + "first_interactive_frame_ms": 7.392, + "preparation_frames": 20, + "preparation_frame_cost": { + "median_ms": 8.745, + "p95_ms": 69.533, + "p99_ms": 69.533, + "max_ms": 69.533 + }, + "time_until_first_interactive_ms": 272.905, + "preparation_tasks": [ + [ + "Preparando paisagem", + 20.141799992416054 + ], + [ + "Preparando paisagem", + 20.845799997914582 + ], + [ + "Preparando paisagem", + 19.318799997563474 + ], + [ + "Preparando textura do percurso", + 0.0008999923011288047 + ], + [ + "Preparando margens", + 68.9223000081256 + ], + [ + "Preparando margens", + 0.2680000034160912 + ], + [ + "Preparando margens", + 0.22430000535678118 + ], + [ + "Preparando margens", + 0.27779999072663486 + ], + [ + "Preparando margens", + 0.1812999980757013 + ], + [ + "Preparando margens", + 0.34149999555666 + ], + [ + "Preparando margens", + 0.2567000046838075 + ], + [ + "Preparando margens", + 0.18020000425167382 + ], + [ + "Preparando margens", + 0.3183000080753118 + ], + [ + "Preparando margens", + 0.32559999090153724 + ], + [ + "Preparando margens", + 0.2978999982587993 + ], + [ + "Preparando margens", + 0.7714999956078827 + ], + [ + "Preparando detalhes industriais", + 6.520399998407811 + ], + [ + "Preparando detalhes industriais", + 7.468299998436123 + ], + [ + "Preparando detalhes industriais", + 6.287399999564514 + ], + [ + "Preparando detalhes industriais", + 9.53260000096634 + ], + [ + "Preparando detalhes industriais", + 9.808800008613616 + ], + [ + "Suavizando textura do chão", + 2.204200005508028 + ], + [ + "Suavizando textura do chão", + 1.1017999931937084 + ], + [ + "Suavizando textura do chão", + 0.5392000020947307 + ], + [ + "Suavizando textura do chão", + 0.268299991148524 + ], + [ + "Suavizando textura do chão", + 0.13059999037068337 + ], + [ + "Suavizando textura do chão", + 0.06409999332390726 + ], + [ + "Alocando faixas do chão", + 0.3113999991910532 + ], + [ + "Alocando faixas do chão", + 0.30759999935980886 + ], + [ + "Alocando faixas do chão", + 0.2927000023191795 + ], + [ + "Alocando faixas do chão", + 0.3026999911526218 + ], + [ + "Alocando faixas do chão", + 0.3648999991128221 + ], + [ + "Alocando faixas do chão", + 0.3493999975034967 + ], + [ + "Alocando faixas do chão", + 0.36610000825021416 + ], + [ + "Alocando faixas do chão", + 0.3721999964909628 + ], + [ + "Alocando faixas do chão", + 0.2604000037536025 + ], + [ + "Preparando fauna", + 0.0030999945010989904 + ], + [ + "Carregando elementos regionais", + 7.430500001646578 + ], + [ + "Carregando elementos regionais", + 8.001099995453842 + ], + [ + "Carregando elementos regionais", + 8.463500009384006 + ], + [ + "Preparando obstáculos regionais", + 10.097999998833984 + ], + [ + "Preparando avião", + 0.0031999952625483274 + ], + [ + "Aplicando pintura", + 0.0023000029614195228 + ], + [ + "Preparando piloto", + 0.02570000651758164 + ], + [ + "Montando visual do voo", + 0.005199995939619839 + ], + [ + "Preparando primeira vista", + 22.069999991799705 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.965, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.088, + "p95_ms": 0.158, + "p99_ms": 1.165, + "max_ms": 2.871 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.927, + "p99_ms": 2.802, + "max_ms": 9.206 + }, + "ground": { + "median_ms": 2.52, + "p95_ms": 4.433, + "p99_ms": 6.109, + "max_ms": 8.059 + }, + "route_and_banks": { + "median_ms": 5.165, + "p95_ms": 10.503, + "p99_ms": 15.817, + "max_ms": 25.344 + }, + "background": { + "median_ms": 5.792, + "p95_ms": 11.518, + "p99_ms": 16.56, + "max_ms": 25.985 + }, + "plane": { + "median_ms": 0.123, + "p95_ms": 0.198, + "p99_ms": 0.273, + "max_ms": 0.895 + }, + "entities_and_effects": { + "median_ms": 6.691, + "p95_ms": 13.284, + "p99_ms": 23.186, + "max_ms": 38.012 + }, + "world": { + "median_ms": 6.7, + "p95_ms": 13.295, + "p99_ms": 23.202, + "max_ms": 38.025 + }, + "hud": { + "median_ms": 0.352, + "p95_ms": 0.555, + "p99_ms": 0.662, + "max_ms": 1.102 + }, + "scene": { + "median_ms": 7.453, + "p95_ms": 13.91, + "p99_ms": 24.284, + "max_ms": 38.933 + }, + "canvas": { + "median_ms": 7.567, + "p95_ms": 14.216, + "p99_ms": 24.498, + "max_ms": 39.121 + }, + "present": { + "median_ms": 0.277, + "p95_ms": 0.438, + "p99_ms": 0.611, + "max_ms": 0.953 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.088, + "p95_ms": 0.158, + "p99_ms": 1.165, + "max_ms": 2.871 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.927, + "p99_ms": 2.802, + "max_ms": 9.206 + }, + "ground": { + "median_ms": 2.52, + "p95_ms": 4.433, + "p99_ms": 6.109, + "max_ms": 8.059 + }, + "route_and_banks": { + "median_ms": 2.64, + "p95_ms": 6.324, + "p99_ms": 10.62, + "max_ms": 20.037 + }, + "background": { + "median_ms": 0.389, + "p95_ms": 0.643, + "p99_ms": 1.207, + "max_ms": 3.94 + }, + "plane": { + "median_ms": 0.123, + "p95_ms": 0.198, + "p99_ms": 0.273, + "max_ms": 0.895 + }, + "entities_and_effects": { + "median_ms": 0.736, + "p95_ms": 1.667, + "p99_ms": 3.204, + "max_ms": 13.902 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.011, + "p99_ms": 0.015, + "max_ms": 0.025 + }, + "hud": { + "median_ms": 0.352, + "p95_ms": 0.555, + "p99_ms": 0.662, + "max_ms": 1.102 + }, + "scene": { + "median_ms": 0.349, + "p95_ms": 1.411, + "p99_ms": 1.847, + "max_ms": 2.61 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.052, + "p99_ms": 0.065, + "max_ms": 0.159 + }, + "present": { + "median_ms": 0.277, + "p95_ms": 0.438, + "p99_ms": 0.611, + "max_ms": 0.953 + } + }, + "rss_bytes": 294010880, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127592, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 11.53, + "p95_ms": 17.481, + "p99_ms": 25.002, + "max_ms": 32.637 + }, + "scene_setup_ms": 7.952, + "warmup": { + "median_ms": 8.708, + "p95_ms": 11.41, + "p99_ms": 13.057, + "max_ms": 13.057 + }, + "first_preparation_frame_ms": 26.93, + "first_interactive_frame_ms": 10.678, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 26.93, + "p95_ms": 26.93, + "p99_ms": 26.93, + "max_ms": 26.93 + }, + "time_until_first_interactive_ms": 37.649, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0026000052457675338 + ], + [ + "Aplicando pintura", + 0.0025000044843181968 + ], + [ + "Preparando piloto", + 0.022599997464567423 + ], + [ + "Montando visual do voo", + 0.00549999822396785 + ], + [ + "Preparando primeira vista", + 26.00509999319911 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.94, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.086, + "p95_ms": 0.161, + "p99_ms": 1.207, + "max_ms": 2.772 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.795, + "p99_ms": 2.239, + "max_ms": 2.673 + }, + "ground": { + "median_ms": 2.459, + "p95_ms": 3.919, + "p99_ms": 5.377, + "max_ms": 11.586 + }, + "route_and_banks": { + "median_ms": 5.071, + "p95_ms": 7.954, + "p99_ms": 10.298, + "max_ms": 16.322 + }, + "desaturate": { + "median_ms": 2.567, + "p95_ms": 4.583, + "p99_ms": 6.186, + "max_ms": 9.518 + }, + "background": { + "median_ms": 8.243, + "p95_ms": 12.579, + "p99_ms": 16.56, + "max_ms": 22.414 + }, + "plane": { + "median_ms": 0.122, + "p95_ms": 0.206, + "p99_ms": 0.311, + "max_ms": 0.658 + }, + "entities_and_effects": { + "median_ms": 9.539, + "p95_ms": 15.139, + "p99_ms": 20.161, + "max_ms": 28.191 + }, + "world": { + "median_ms": 10.316, + "p95_ms": 16.024, + "p99_ms": 21.909, + "max_ms": 29.376 + }, + "hud": { + "median_ms": 0.349, + "p95_ms": 0.603, + "p99_ms": 0.777, + "max_ms": 1.042 + }, + "scene": { + "median_ms": 11.121, + "p95_ms": 17.023, + "p99_ms": 24.305, + "max_ms": 31.684 + }, + "canvas": { + "median_ms": 11.267, + "p95_ms": 17.213, + "p99_ms": 24.58, + "max_ms": 31.951 + }, + "present": { + "median_ms": 0.264, + "p95_ms": 0.393, + "p99_ms": 0.54, + "max_ms": 0.991 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.086, + "p95_ms": 0.161, + "p99_ms": 1.207, + "max_ms": 2.772 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.795, + "p99_ms": 2.239, + "max_ms": 2.673 + }, + "ground": { + "median_ms": 2.459, + "p95_ms": 3.919, + "p99_ms": 5.377, + "max_ms": 11.586 + }, + "route_and_banks": { + "median_ms": 2.531, + "p95_ms": 4.596, + "p99_ms": 6.498, + "max_ms": 7.739 + }, + "desaturate": { + "median_ms": 2.567, + "p95_ms": 4.583, + "p99_ms": 6.186, + "max_ms": 9.518 + }, + "background": { + "median_ms": 0.392, + "p95_ms": 0.636, + "p99_ms": 0.794, + "max_ms": 1.563 + }, + "plane": { + "median_ms": 0.122, + "p95_ms": 0.206, + "p99_ms": 0.311, + "max_ms": 0.658 + }, + "entities_and_effects": { + "median_ms": 1.127, + "p95_ms": 2.411, + "p99_ms": 4.235, + "max_ms": 12.403 + }, + "world": { + "median_ms": 0.726, + "p95_ms": 1.156, + "p99_ms": 1.391, + "max_ms": 2.766 + }, + "hud": { + "median_ms": 0.349, + "p95_ms": 0.603, + "p99_ms": 0.777, + "max_ms": 1.042 + }, + "scene": { + "median_ms": 0.317, + "p95_ms": 1.402, + "p99_ms": 2.133, + "max_ms": 2.866 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.048, + "p99_ms": 0.066, + "max_ms": 0.083 + }, + "present": { + "median_ms": 0.264, + "p95_ms": 0.393, + "p99_ms": 0.54, + "max_ms": 0.991 + } + }, + "rss_bytes": 300163072, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208187, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/runtime-2.json b/docs/validacao-v1.7/desempenho/runtime-2.json new file mode 100644 index 0000000..4fa8b89 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/runtime-2.json @@ -0,0 +1,1455 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 1074.07, + "rss_before_bytes": 40988672, + "rss_after_bytes": 100638720, + "rss_delta_bytes": 59650048, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 14.465, + "p95_ms": 21.691, + "p99_ms": 26.103, + "max_ms": 36.097 + }, + "scene_setup_ms": 9.862, + "warmup": { + "median_ms": 15.628, + "p95_ms": 24.635, + "p99_ms": 59.406, + "max_ms": 59.406 + }, + "first_preparation_frame_ms": 103.703, + "first_interactive_frame_ms": 59.406, + "preparation_frames": 37, + "preparation_frame_cost": { + "median_ms": 10.695, + "p95_ms": 103.703, + "p99_ms": 104.152, + "max_ms": 104.152 + }, + "time_until_first_interactive_ms": 812.026, + "preparation_tasks": [ + [ + "Preparando paisagem", + 30.475299994577654 + ], + [ + "Preparando paisagem", + 28.518299994175322 + ], + [ + "Preparando paisagem", + 30.74459999334067 + ], + [ + "Preparando textura do percurso", + 103.15480000281241 + ], + [ + "Preparando margens", + 98.45839999616146 + ], + [ + "Preparando margens", + 0.6935000128578395 + ], + [ + "Preparando margens", + 0.6055999983800575 + ], + [ + "Preparando margens", + 0.647900000330992 + ], + [ + "Preparando margens", + 0.8027000003494322 + ], + [ + "Preparando margens", + 0.7795999990776181 + ], + [ + "Preparando margens", + 0.6917999999132007 + ], + [ + "Preparando margens", + 0.618399993982166 + ], + [ + "Preparando margens", + 0.6850999925518408 + ], + [ + "Preparando margens", + 0.7463999936589971 + ], + [ + "Preparando margens", + 0.8169999928213656 + ], + [ + "Preparando margens", + 1.345600001513958 + ], + [ + "Preparando detalhes industriais", + 12.022299997624941 + ], + [ + "Preparando detalhes industriais", + 11.828200003947131 + ], + [ + "Preparando detalhes industriais", + 9.766400005901232 + ], + [ + "Preparando detalhes industriais", + 11.648100000456907 + ], + [ + "Preparando detalhes industriais", + 10.753300011856481 + ], + [ + "Suavizando textura do chão", + 3.078200010349974 + ], + [ + "Suavizando textura do chão", + 1.5525999915553257 + ], + [ + "Suavizando textura do chão", + 0.7573999901069328 + ], + [ + "Suavizando textura do chão", + 0.40970000554807484 + ], + [ + "Suavizando textura do chão", + 0.15100000018719584 + ], + [ + "Suavizando textura do chão", + 0.07809999806340784 + ], + [ + "Suavizando textura do chão", + 3.0764999974053353 + ], + [ + "Suavizando textura do chão", + 0.9563999919919297 + ], + [ + "Suavizando textura do chão", + 0.5212999967625365 + ], + [ + "Suavizando textura do chão", + 0.27779999072663486 + ], + [ + "Suavizando textura do chão", + 0.15129998791962862 + ], + [ + "Suavizando textura do chão", + 0.07199999527074397 + ], + [ + "Suavizando textura do chão", + 2.947500004665926 + ], + [ + "Suavizando textura do chão", + 1.3242999993963167 + ], + [ + "Suavizando textura do chão", + 0.6540000031236559 + ], + [ + "Suavizando textura do chão", + 0.28619999648071826 + ], + [ + "Suavizando textura do chão", + 0.14289999671746045 + ], + [ + "Suavizando textura do chão", + 0.07170000753831118 + ], + [ + "Alocando faixas do chão", + 0.487299999804236 + ], + [ + "Alocando faixas do chão", + 0.5914000066695735 + ], + [ + "Alocando faixas do chão", + 0.4776999994646758 + ], + [ + "Alocando faixas do chão", + 0.4530000005615875 + ], + [ + "Alocando faixas do chão", + 0.5049000028520823 + ], + [ + "Alocando faixas do chão", + 0.5727999960072339 + ], + [ + "Alocando faixas do chão", + 0.704799997038208 + ], + [ + "Alocando faixas do chão", + 0.7729000062681735 + ], + [ + "Alocando faixas do chão", + 0.4434999864315614 + ], + [ + "Alocando faixas do chão", + 0.22570000146515667 + ], + [ + "Alocando faixas do chão", + 0.22329999774228781 + ], + [ + "Alocando faixas do chão", + 0.3423000016482547 + ], + [ + "Alocando faixas do chão", + 0.4243000003043562 + ], + [ + "Alocando faixas do chão", + 0.5143000016687438 + ], + [ + "Alocando faixas do chão", + 0.5661000031977892 + ], + [ + "Alocando faixas do chão", + 0.6847000040579587 + ], + [ + "Alocando faixas do chão", + 0.750300008803606 + ], + [ + "Alocando faixas do chão", + 0.4963999963365495 + ], + [ + "Alocando faixas do chão", + 0.2727999963099137 + ], + [ + "Alocando faixas do chão", + 0.38389999826904386 + ], + [ + "Alocando faixas do chão", + 0.4245000018272549 + ], + [ + "Alocando faixas do chão", + 0.45819999650120735 + ], + [ + "Alocando faixas do chão", + 0.541799992788583 + ], + [ + "Alocando faixas do chão", + 0.6090999959269539 + ], + [ + "Alocando faixas do chão", + 0.7480000058421865 + ], + [ + "Alocando faixas do chão", + 0.8802000083960593 + ], + [ + "Alocando faixas do chão", + 0.7597999938298017 + ], + [ + "Preparando fauna", + 80.0294000073336 + ], + [ + "Carregando elementos regionais", + 12.567900004796684 + ], + [ + "Carregando elementos regionais", + 13.602399994852021 + ], + [ + "Carregando elementos regionais", + 10.062500005005859 + ], + [ + "Preparando obstáculos regionais", + 13.945900005637668 + ], + [ + "Preparando avião", + 26.83729999989737 + ], + [ + "Aplicando pintura", + 0.007800001185387373 + ], + [ + "Preparando piloto", + 33.65260000282433 + ], + [ + "Montando visual do voo", + 0.7428999961121008 + ], + [ + "Preparando primeira vista", + 36.96739999577403 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.7283, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.018 + }, + "rules_update": { + "median_ms": 0.109, + "p95_ms": 0.182, + "p99_ms": 1.472, + "max_ms": 3.596 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.417, + "p99_ms": 3.181, + "max_ms": 3.738 + }, + "ground": { + "median_ms": 7.808, + "p95_ms": 11.634, + "p99_ms": 13.774, + "max_ms": 19.164 + }, + "route_and_banks": { + "median_ms": 11.18, + "p95_ms": 16.818, + "p99_ms": 19.093, + "max_ms": 22.355 + }, + "background": { + "median_ms": 11.952, + "p95_ms": 18.085, + "p99_ms": 21.611, + "max_ms": 25.758 + }, + "plane": { + "median_ms": 0.153, + "p95_ms": 0.251, + "p99_ms": 0.61, + "max_ms": 1.162 + }, + "entities_and_effects": { + "median_ms": 13.135, + "p95_ms": 19.613, + "p99_ms": 22.827, + "max_ms": 27.125 + }, + "world": { + "median_ms": 13.142, + "p95_ms": 19.62, + "p99_ms": 22.838, + "max_ms": 27.135 + }, + "hud": { + "median_ms": 0.429, + "p95_ms": 0.72, + "p99_ms": 1.274, + "max_ms": 5.161 + }, + "scene": { + "median_ms": 13.949, + "p95_ms": 21.013, + "p99_ms": 25.478, + "max_ms": 35.458 + }, + "canvas": { + "median_ms": 14.129, + "p95_ms": 21.294, + "p99_ms": 25.716, + "max_ms": 35.695 + }, + "present": { + "median_ms": 0.329, + "p95_ms": 0.486, + "p99_ms": 0.584, + "max_ms": 2.593 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.018 + }, + "rules_update": { + "median_ms": 0.109, + "p95_ms": 0.182, + "p99_ms": 1.472, + "max_ms": 3.596 + }, + "horizon": { + "median_ms": 0.007, + "p95_ms": 2.417, + "p99_ms": 3.181, + "max_ms": 3.738 + }, + "ground": { + "median_ms": 7.808, + "p95_ms": 11.634, + "p99_ms": 13.774, + "max_ms": 19.164 + }, + "route_and_banks": { + "median_ms": 3.074, + "p95_ms": 6.061, + "p99_ms": 7.498, + "max_ms": 9.697 + }, + "background": { + "median_ms": 0.49, + "p95_ms": 0.76, + "p99_ms": 0.944, + "max_ms": 6.254 + }, + "plane": { + "median_ms": 0.153, + "p95_ms": 0.251, + "p99_ms": 0.61, + "max_ms": 1.162 + }, + "entities_and_effects": { + "median_ms": 0.918, + "p95_ms": 1.904, + "p99_ms": 2.499, + "max_ms": 5.135 + }, + "world": { + "median_ms": 0.008, + "p95_ms": 0.013, + "p99_ms": 0.022, + "max_ms": 0.031 + }, + "hud": { + "median_ms": 0.429, + "p95_ms": 0.72, + "p99_ms": 1.274, + "max_ms": 5.161 + }, + "scene": { + "median_ms": 0.37, + "p95_ms": 1.822, + "p99_ms": 2.827, + "max_ms": 13.476 + }, + "canvas": { + "median_ms": 0.04, + "p95_ms": 0.06, + "p99_ms": 0.091, + "max_ms": 0.27 + }, + "present": { + "median_ms": 0.329, + "p95_ms": 0.486, + "p99_ms": 0.584, + "max_ms": 2.593 + } + }, + "rss_bytes": 276598784, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75569, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 15.63, + "p95_ms": 21.795, + "p99_ms": 27.26, + "max_ms": 32.726 + }, + "scene_setup_ms": 8.267, + "warmup": { + "median_ms": 14.358, + "p95_ms": 18.564, + "p99_ms": 25.574, + "max_ms": 25.574 + }, + "first_preparation_frame_ms": 39.921, + "first_interactive_frame_ms": 13.933, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 39.921, + "p95_ms": 39.921, + "p99_ms": 39.921, + "max_ms": 39.921 + }, + "time_until_first_interactive_ms": 53.899, + "preparation_tasks": [ + [ + "Preparando avião", + 0.00549999822396785 + ], + [ + "Aplicando pintura", + 0.0035999983083456755 + ], + [ + "Preparando piloto", + 0.03780001134146005 + ], + [ + "Montando visual do voo", + 0.009499999578110874 + ], + [ + "Preparando primeira vista", + 38.884800000232644 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.6483, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.005 + }, + "rules_update": { + "median_ms": 0.089, + "p95_ms": 0.16, + "p99_ms": 1.233, + "max_ms": 1.724 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.921, + "p99_ms": 2.644, + "max_ms": 3.423 + }, + "ground": { + "median_ms": 6.149, + "p95_ms": 9.277, + "p99_ms": 10.841, + "max_ms": 14.412 + }, + "route_and_banks": { + "median_ms": 8.652, + "p95_ms": 12.945, + "p99_ms": 15.87, + "max_ms": 18.57 + }, + "desaturate": { + "median_ms": 2.673, + "p95_ms": 4.591, + "p99_ms": 5.308, + "max_ms": 6.239 + }, + "background": { + "median_ms": 12.13, + "p95_ms": 17.598, + "p99_ms": 20.305, + "max_ms": 25.628 + }, + "plane": { + "median_ms": 0.128, + "p95_ms": 0.216, + "p99_ms": 0.386, + "max_ms": 0.847 + }, + "entities_and_effects": { + "median_ms": 13.611, + "p95_ms": 19.283, + "p99_ms": 23.358, + "max_ms": 29.755 + }, + "world": { + "median_ms": 14.377, + "p95_ms": 20.241, + "p99_ms": 24.485, + "max_ms": 31.049 + }, + "hud": { + "median_ms": 0.357, + "p95_ms": 0.587, + "p99_ms": 0.72, + "max_ms": 2.25 + }, + "scene": { + "median_ms": 15.145, + "p95_ms": 21.3, + "p99_ms": 26.657, + "max_ms": 32.122 + }, + "canvas": { + "median_ms": 15.292, + "p95_ms": 21.425, + "p99_ms": 26.809, + "max_ms": 32.344 + }, + "present": { + "median_ms": 0.278, + "p95_ms": 0.431, + "p99_ms": 0.536, + "max_ms": 0.78 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.005 + }, + "rules_update": { + "median_ms": 0.089, + "p95_ms": 0.16, + "p99_ms": 1.233, + "max_ms": 1.724 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.921, + "p99_ms": 2.644, + "max_ms": 3.423 + }, + "ground": { + "median_ms": 6.149, + "p95_ms": 9.277, + "p99_ms": 10.841, + "max_ms": 14.412 + }, + "route_and_banks": { + "median_ms": 2.347, + "p95_ms": 4.573, + "p99_ms": 6.054, + "max_ms": 7.819 + }, + "desaturate": { + "median_ms": 2.673, + "p95_ms": 4.591, + "p99_ms": 5.308, + "max_ms": 6.239 + }, + "background": { + "median_ms": 0.417, + "p95_ms": 0.651, + "p99_ms": 0.781, + "max_ms": 1.042 + }, + "plane": { + "median_ms": 0.128, + "p95_ms": 0.216, + "p99_ms": 0.386, + "max_ms": 0.847 + }, + "entities_and_effects": { + "median_ms": 1.162, + "p95_ms": 2.43, + "p99_ms": 3.346, + "max_ms": 4.839 + }, + "world": { + "median_ms": 0.768, + "p95_ms": 1.103, + "p99_ms": 1.263, + "max_ms": 1.622 + }, + "hud": { + "median_ms": 0.357, + "p95_ms": 0.587, + "p99_ms": 0.72, + "max_ms": 2.25 + }, + "scene": { + "median_ms": 0.307, + "p95_ms": 1.173, + "p99_ms": 1.59, + "max_ms": 1.87 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.048, + "p99_ms": 0.056, + "max_ms": 0.103 + }, + "present": { + "median_ms": 0.278, + "p95_ms": 0.431, + "p99_ms": 0.536, + "max_ms": 0.78 + } + }, + "rss_bytes": 285224960, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154993, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 8.078, + "p95_ms": 11.243, + "p99_ms": 13.332, + "max_ms": 15.364 + }, + "scene_setup_ms": 6.736, + "warmup": { + "median_ms": 6.019, + "p95_ms": 8.485, + "p99_ms": 9.405, + "max_ms": 9.405 + }, + "first_preparation_frame_ms": 30.315, + "first_interactive_frame_ms": 5.643, + "preparation_frames": 19, + "preparation_frame_cost": { + "median_ms": 8.879, + "p95_ms": 78.359, + "p99_ms": 78.359, + "max_ms": 78.359 + }, + "time_until_first_interactive_ms": 272.706, + "preparation_tasks": [ + [ + "Preparando paisagem", + 18.474099997547455 + ], + [ + "Preparando paisagem", + 20.98820000537671 + ], + [ + "Preparando paisagem", + 23.453300003893673 + ], + [ + "Preparando textura do percurso", + 0.000900006853044033 + ], + [ + "Preparando margens", + 77.48539999010973 + ], + [ + "Preparando margens", + 0.415000002249144 + ], + [ + "Preparando margens", + 0.30759999935980886 + ], + [ + "Preparando margens", + 0.35539999953471124 + ], + [ + "Preparando margens", + 0.22560000070370734 + ], + [ + "Preparando margens", + 0.37059999885968864 + ], + [ + "Preparando margens", + 0.18370000179857016 + ], + [ + "Preparando margens", + 0.15320000238716602 + ], + [ + "Preparando margens", + 0.3913999971700832 + ], + [ + "Preparando margens", + 0.42799999937415123 + ], + [ + "Preparando margens", + 0.3833999944617972 + ], + [ + "Preparando margens", + 0.9995000000344589 + ], + [ + "Preparando detalhes industriais", + 6.926000001840293 + ], + [ + "Preparando detalhes industriais", + 7.662699994398281 + ], + [ + "Preparando detalhes industriais", + 5.907899991143495 + ], + [ + "Preparando detalhes industriais", + 9.252899995772168 + ], + [ + "Preparando detalhes industriais", + 10.033600003225729 + ], + [ + "Suavizando textura do chão", + 2.453699999023229 + ], + [ + "Suavizando textura do chão", + 1.1725000076694414 + ], + [ + "Suavizando textura do chão", + 0.6246999982977286 + ], + [ + "Suavizando textura do chão", + 0.3205999964848161 + ], + [ + "Suavizando textura do chão", + 0.15720000374130905 + ], + [ + "Suavizando textura do chão", + 0.09229998977389187 + ], + [ + "Alocando faixas do chão", + 0.3440000000409782 + ], + [ + "Alocando faixas do chão", + 0.3158000035909936 + ], + [ + "Alocando faixas do chão", + 0.3173000004608184 + ], + [ + "Alocando faixas do chão", + 0.3274999908171594 + ], + [ + "Alocando faixas do chão", + 0.2179000002797693 + ], + [ + "Alocando faixas do chão", + 0.2386999985901639 + ], + [ + "Alocando faixas do chão", + 0.23700000019744039 + ], + [ + "Alocando faixas do chão", + 0.25520000781398267 + ], + [ + "Alocando faixas do chão", + 0.17079999088309705 + ], + [ + "Preparando fauna", + 0.001200009137392044 + ], + [ + "Carregando elementos regionais", + 7.562200000393204 + ], + [ + "Carregando elementos regionais", + 7.996799991815351 + ], + [ + "Carregando elementos regionais", + 6.195900001330301 + ], + [ + "Preparando obstáculos regionais", + 8.267199998954311 + ], + [ + "Preparando avião", + 0.0026000052457675338 + ], + [ + "Aplicando pintura", + 0.0024000037228688598 + ], + [ + "Preparando piloto", + 0.024199995095841587 + ], + [ + "Montando visual do voo", + 0.005399997462518513 + ], + [ + "Preparando primeira vista", + 18.279700001585297 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 1.0, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.159, + "p99_ms": 1.142, + "max_ms": 2.558 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.765, + "p99_ms": 2.305, + "max_ms": 2.893 + }, + "ground": { + "median_ms": 2.466, + "p95_ms": 3.81, + "p99_ms": 4.27, + "max_ms": 4.922 + }, + "route_and_banks": { + "median_ms": 5.181, + "p95_ms": 7.615, + "p99_ms": 9.229, + "max_ms": 11.973 + }, + "background": { + "median_ms": 5.796, + "p95_ms": 8.831, + "p99_ms": 9.993, + "max_ms": 12.422 + }, + "plane": { + "median_ms": 0.118, + "p95_ms": 0.201, + "p99_ms": 0.238, + "max_ms": 0.591 + }, + "entities_and_effects": { + "median_ms": 6.714, + "p95_ms": 9.791, + "p99_ms": 11.201, + "max_ms": 13.961 + }, + "world": { + "median_ms": 6.72, + "p95_ms": 9.8, + "p99_ms": 11.209, + "max_ms": 13.971 + }, + "hud": { + "median_ms": 0.357, + "p95_ms": 0.577, + "p99_ms": 0.673, + "max_ms": 1.197 + }, + "scene": { + "median_ms": 7.616, + "p95_ms": 10.753, + "p99_ms": 12.747, + "max_ms": 14.88 + }, + "canvas": { + "median_ms": 7.759, + "p95_ms": 10.927, + "p99_ms": 12.911, + "max_ms": 15.063 + }, + "present": { + "median_ms": 0.272, + "p95_ms": 0.423, + "p99_ms": 0.535, + "max_ms": 0.618 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.003 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.159, + "p99_ms": 1.142, + "max_ms": 2.558 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.765, + "p99_ms": 2.305, + "max_ms": 2.893 + }, + "ground": { + "median_ms": 2.466, + "p95_ms": 3.81, + "p99_ms": 4.27, + "max_ms": 4.922 + }, + "route_and_banks": { + "median_ms": 2.643, + "p95_ms": 4.708, + "p99_ms": 5.906, + "max_ms": 7.887 + }, + "background": { + "median_ms": 0.38, + "p95_ms": 0.652, + "p99_ms": 0.849, + "max_ms": 2.35 + }, + "plane": { + "median_ms": 0.118, + "p95_ms": 0.201, + "p99_ms": 0.238, + "max_ms": 0.591 + }, + "entities_and_effects": { + "median_ms": 0.716, + "p95_ms": 1.378, + "p99_ms": 1.676, + "max_ms": 1.867 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.009, + "p99_ms": 0.016, + "max_ms": 0.208 + }, + "hud": { + "median_ms": 0.357, + "p95_ms": 0.577, + "p99_ms": 0.673, + "max_ms": 1.197 + }, + "scene": { + "median_ms": 0.321, + "p95_ms": 1.579, + "p99_ms": 2.247, + "max_ms": 2.52 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.046, + "p99_ms": 0.056, + "max_ms": 0.062 + }, + "present": { + "median_ms": 0.272, + "p95_ms": 0.423, + "p99_ms": 0.535, + "max_ms": 0.618 + } + }, + "rss_bytes": 291962880, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127592, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 11.76, + "p95_ms": 17.078, + "p99_ms": 21.837, + "max_ms": 23.648 + }, + "scene_setup_ms": 6.334, + "warmup": { + "median_ms": 9.772, + "p95_ms": 13.549, + "p99_ms": 15.278, + "max_ms": 15.278 + }, + "first_preparation_frame_ms": 22.945, + "first_interactive_frame_ms": 8.719, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 22.945, + "p95_ms": 22.945, + "p99_ms": 22.945, + "max_ms": 22.945 + }, + "time_until_first_interactive_ms": 31.696, + "preparation_tasks": [ + [ + "Preparando avião", + 0.0026000052457675338 + ], + [ + "Aplicando pintura", + 0.0021000014385208488 + ], + [ + "Preparando piloto", + 0.021799991372972727 + ], + [ + "Montando visual do voo", + 0.004799992893822491 + ], + [ + "Preparando primeira vista", + 22.036300011677667 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.94, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.01 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.158, + "p99_ms": 1.105, + "max_ms": 1.958 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.783, + "p99_ms": 2.302, + "max_ms": 2.564 + }, + "ground": { + "median_ms": 2.455, + "p95_ms": 3.892, + "p99_ms": 4.448, + "max_ms": 4.974 + }, + "route_and_banks": { + "median_ms": 5.104, + "p95_ms": 7.892, + "p99_ms": 10.563, + "max_ms": 13.015 + }, + "desaturate": { + "median_ms": 2.613, + "p95_ms": 4.599, + "p99_ms": 5.432, + "max_ms": 5.844 + }, + "background": { + "median_ms": 8.356, + "p95_ms": 12.804, + "p99_ms": 16.543, + "max_ms": 17.981 + }, + "plane": { + "median_ms": 0.123, + "p95_ms": 0.194, + "p99_ms": 0.281, + "max_ms": 0.769 + }, + "entities_and_effects": { + "median_ms": 9.702, + "p95_ms": 14.503, + "p99_ms": 19.094, + "max_ms": 20.523 + }, + "world": { + "median_ms": 10.414, + "p95_ms": 15.607, + "p99_ms": 19.993, + "max_ms": 21.818 + }, + "hud": { + "median_ms": 0.353, + "p95_ms": 0.553, + "p99_ms": 0.661, + "max_ms": 0.993 + }, + "scene": { + "median_ms": 11.328, + "p95_ms": 16.619, + "p99_ms": 20.639, + "max_ms": 23.164 + }, + "canvas": { + "median_ms": 11.455, + "p95_ms": 16.742, + "p99_ms": 21.518, + "max_ms": 23.365 + }, + "present": { + "median_ms": 0.268, + "p95_ms": 0.391, + "p99_ms": 0.467, + "max_ms": 0.516 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.01 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.158, + "p99_ms": 1.105, + "max_ms": 1.958 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.783, + "p99_ms": 2.302, + "max_ms": 2.564 + }, + "ground": { + "median_ms": 2.455, + "p95_ms": 3.892, + "p99_ms": 4.448, + "max_ms": 4.974 + }, + "route_and_banks": { + "median_ms": 2.614, + "p95_ms": 4.909, + "p99_ms": 6.465, + "max_ms": 8.041 + }, + "desaturate": { + "median_ms": 2.613, + "p95_ms": 4.599, + "p99_ms": 5.432, + "max_ms": 5.844 + }, + "background": { + "median_ms": 0.388, + "p95_ms": 0.581, + "p99_ms": 0.718, + "max_ms": 1.292 + }, + "plane": { + "median_ms": 0.123, + "p95_ms": 0.194, + "p99_ms": 0.281, + "max_ms": 0.769 + }, + "entities_and_effects": { + "median_ms": 1.119, + "p95_ms": 2.277, + "p99_ms": 2.874, + "max_ms": 3.274 + }, + "world": { + "median_ms": 0.74, + "p95_ms": 1.065, + "p99_ms": 1.264, + "max_ms": 1.387 + }, + "hud": { + "median_ms": 0.353, + "p95_ms": 0.553, + "p99_ms": 0.661, + "max_ms": 0.993 + }, + "scene": { + "median_ms": 0.335, + "p95_ms": 1.542, + "p99_ms": 1.75, + "max_ms": 2.272 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.047, + "p99_ms": 0.056, + "max_ms": 0.077 + }, + "present": { + "median_ms": 0.268, + "p95_ms": 0.391, + "p99_ms": 0.467, + "max_ms": 0.516 + } + }, + "rss_bytes": 300683264, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208187, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/runtime-3.json b/docs/validacao-v1.7/desempenho/runtime-3.json new file mode 100644 index 0000000..92498a7 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/runtime-3.json @@ -0,0 +1,1455 @@ +{ + "version": "1.7.0", + "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", + "pacing": "uncapped stress", + "python": "3.12.10", + "platform": "Windows-11-10.0.26200-SP0", + "camera_clock_resolution_ms": 15.625, + "startup_ms": 781.34, + "rss_before_bytes": 41205760, + "rss_after_bytes": 100876288, + "rss_delta_bytes": 59670528, + "startup_watercolor_count": 0, + "startup_watercolor_bytes": 0, + "seed": 7, + "pilot": "customized synthetic avatar", + "flights": { + "amazonia_normal": { + "frame": { + "median_ms": 10.715, + "p95_ms": 14.484, + "p99_ms": 17.585, + "max_ms": 19.843 + }, + "scene_setup_ms": 7.953, + "warmup": { + "median_ms": 9.251, + "p95_ms": 12.198, + "p99_ms": 39.878, + "max_ms": 39.878 + }, + "first_preparation_frame_ms": 76.433, + "first_interactive_frame_ms": 39.878, + "preparation_frames": 35, + "preparation_frame_cost": { + "median_ms": 7.749, + "p95_ms": 78.806, + "p99_ms": 82.79, + "max_ms": 82.79 + }, + "time_until_first_interactive_ms": 607.759, + "preparation_tasks": [ + [ + "Preparando paisagem", + 21.98849999695085 + ], + [ + "Preparando paisagem", + 22.935200002393685 + ], + [ + "Preparando paisagem", + 26.316199990105815 + ], + [ + "Preparando textura do percurso", + 77.89950000005774 + ], + [ + "Preparando margens", + 82.0912000053795 + ], + [ + "Preparando margens", + 0.527900003362447 + ], + [ + "Preparando margens", + 0.43000000005122274 + ], + [ + "Preparando margens", + 0.567299997783266 + ], + [ + "Preparando margens", + 0.4732999950647354 + ], + [ + "Preparando margens", + 0.48010000318754464 + ], + [ + "Preparando margens", + 0.41530000453349203 + ], + [ + "Preparando margens", + 0.41009999404195696 + ], + [ + "Preparando margens", + 0.5131999932928011 + ], + [ + "Preparando margens", + 0.4634000069927424 + ], + [ + "Preparando margens", + 0.5407999997260049 + ], + [ + "Preparando margens", + 0.884100008988753 + ], + [ + "Preparando detalhes industriais", + 6.1812000058125705 + ], + [ + "Preparando detalhes industriais", + 7.127799995942041 + ], + [ + "Preparando detalhes industriais", + 6.7959000007249415 + ], + [ + "Preparando detalhes industriais", + 7.724700000835583 + ], + [ + "Preparando detalhes industriais", + 5.698699998902157 + ], + [ + "Suavizando textura do chão", + 1.8438999977661297 + ], + [ + "Suavizando textura do chão", + 0.9815000084927306 + ], + [ + "Suavizando textura do chão", + 0.4459000047063455 + ], + [ + "Suavizando textura do chão", + 0.3209999995306134 + ], + [ + "Suavizando textura do chão", + 0.1314999972237274 + ], + [ + "Suavizando textura do chão", + 0.06269999721553177 + ], + [ + "Suavizando textura do chão", + 2.161500000511296 + ], + [ + "Suavizando textura do chão", + 0.8078999962890521 + ], + [ + "Suavizando textura do chão", + 0.413799993111752 + ], + [ + "Suavizando textura do chão", + 0.22960000205785036 + ], + [ + "Suavizando textura do chão", + 0.10520000068936497 + ], + [ + "Suavizando textura do chão", + 0.06520000169984996 + ], + [ + "Suavizando textura do chão", + 1.9545999966794625 + ], + [ + "Suavizando textura do chão", + 0.8636999991722405 + ], + [ + "Suavizando textura do chão", + 0.4169999883743003 + ], + [ + "Suavizando textura do chão", + 0.2234999992651865 + ], + [ + "Suavizando textura do chão", + 0.22479999461211264 + ], + [ + "Suavizando textura do chão", + 0.10509999992791563 + ], + [ + "Alocando faixas do chão", + 0.4371999966679141 + ], + [ + "Alocando faixas do chão", + 0.47039998753461987 + ], + [ + "Alocando faixas do chão", + 0.535300001502037 + ], + [ + "Alocando faixas do chão", + 0.5455999926198274 + ], + [ + "Alocando faixas do chão", + 0.48080000851769 + ], + [ + "Alocando faixas do chão", + 0.6180000054882839 + ], + [ + "Alocando faixas do chão", + 0.8034999918891117 + ], + [ + "Alocando faixas do chão", + 0.6298000080278143 + ], + [ + "Alocando faixas do chão", + 0.43510000978130847 + ], + [ + "Alocando faixas do chão", + 0.20809999841731042 + ], + [ + "Alocando faixas do chão", + 0.19010000687558204 + ], + [ + "Alocando faixas do chão", + 0.28199999360367656 + ], + [ + "Alocando faixas do chão", + 0.3671000013127923 + ], + [ + "Alocando faixas do chão", + 0.4512999876169488 + ], + [ + "Alocando faixas do chão", + 0.5761000065831468 + ], + [ + "Alocando faixas do chão", + 0.64820000261534 + ], + [ + "Alocando faixas do chão", + 0.6588000105693936 + ], + [ + "Alocando faixas do chão", + 0.4803999909199774 + ], + [ + "Alocando faixas do chão", + 0.23829999554436654 + ], + [ + "Alocando faixas do chão", + 0.2023999986704439 + ], + [ + "Alocando faixas do chão", + 0.26050000451505184 + ], + [ + "Alocando faixas do chão", + 0.43929999810643494 + ], + [ + "Alocando faixas do chão", + 0.5791000003227964 + ], + [ + "Alocando faixas do chão", + 0.7033000001683831 + ], + [ + "Alocando faixas do chão", + 0.6382999999914318 + ], + [ + "Alocando faixas do chão", + 0.69039998925291 + ], + [ + "Alocando faixas do chão", + 0.4710000066552311 + ], + [ + "Preparando fauna", + 65.61919998785015 + ], + [ + "Carregando elementos regionais", + 8.779700001468882 + ], + [ + "Carregando elementos regionais", + 7.423699993523769 + ], + [ + "Carregando elementos regionais", + 7.578299992019311 + ], + [ + "Preparando obstáculos regionais", + 13.471300000674091 + ], + [ + "Preparando avião", + 17.428799998015165 + ], + [ + "Aplicando pintura", + 0.00549999822396785 + ], + [ + "Preparando piloto", + 23.760600000969134 + ], + [ + "Montando visual do voo", + 0.4000000044470653 + ], + [ + "Preparando primeira vista", + 25.41469999414403 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9833, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.148, + "p99_ms": 1.013, + "max_ms": 1.561 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.732, + "p99_ms": 2.241, + "max_ms": 2.849 + }, + "ground": { + "median_ms": 5.748, + "p95_ms": 8.092, + "p99_ms": 9.982, + "max_ms": 11.615 + }, + "route_and_banks": { + "median_ms": 7.979, + "p95_ms": 11.378, + "p99_ms": 14.096, + "max_ms": 16.027 + }, + "background": { + "median_ms": 8.617, + "p95_ms": 11.771, + "p99_ms": 15.092, + "max_ms": 16.587 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.186, + "p99_ms": 0.243, + "max_ms": 0.583 + }, + "entities_and_effects": { + "median_ms": 9.444, + "p95_ms": 12.868, + "p99_ms": 15.862, + "max_ms": 17.952 + }, + "world": { + "median_ms": 9.45, + "p95_ms": 12.877, + "p99_ms": 15.87, + "max_ms": 17.961 + }, + "hud": { + "median_ms": 0.353, + "p95_ms": 0.536, + "p99_ms": 0.654, + "max_ms": 4.619 + }, + "scene": { + "median_ms": 10.254, + "p95_ms": 13.905, + "p99_ms": 17.127, + "max_ms": 18.944 + }, + "canvas": { + "median_ms": 10.422, + "p95_ms": 14.123, + "p99_ms": 17.26, + "max_ms": 19.466 + }, + "present": { + "median_ms": 0.266, + "p95_ms": 0.397, + "p99_ms": 0.495, + "max_ms": 0.539 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.001, + "p99_ms": 0.002, + "max_ms": 0.002 + }, + "rules_update": { + "median_ms": 0.087, + "p95_ms": 0.148, + "p99_ms": 1.013, + "max_ms": 1.561 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.732, + "p99_ms": 2.241, + "max_ms": 2.849 + }, + "ground": { + "median_ms": 5.748, + "p95_ms": 8.092, + "p99_ms": 9.982, + "max_ms": 11.615 + }, + "route_and_banks": { + "median_ms": 2.269, + "p95_ms": 3.991, + "p99_ms": 4.98, + "max_ms": 6.177 + }, + "background": { + "median_ms": 0.366, + "p95_ms": 0.559, + "p99_ms": 0.744, + "max_ms": 3.14 + }, + "plane": { + "median_ms": 0.12, + "p95_ms": 0.186, + "p99_ms": 0.243, + "max_ms": 0.583 + }, + "entities_and_effects": { + "median_ms": 0.711, + "p95_ms": 1.289, + "p99_ms": 1.58, + "max_ms": 2.143 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.009, + "p99_ms": 0.02, + "max_ms": 0.034 + }, + "hud": { + "median_ms": 0.353, + "p95_ms": 0.536, + "p99_ms": 0.654, + "max_ms": 4.619 + }, + "scene": { + "median_ms": 0.299, + "p95_ms": 1.067, + "p99_ms": 1.883, + "max_ms": 2.332 + }, + "canvas": { + "median_ms": 0.031, + "p95_ms": 0.044, + "p99_ms": 0.06, + "max_ms": 0.078 + }, + "present": { + "median_ms": 0.266, + "p95_ms": 0.397, + "p99_ms": 0.495, + "max_ms": 0.539 + } + }, + "rss_bytes": 274968576, + "renderer_caches": { + "unique_retained_surface_bytes": 172884304, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 1085032, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 13593328 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 83648060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 75567, + "get_misses": 6781, + "evictions": 5858, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "amazonia_contrast": { + "frame": { + "median_ms": 15.077, + "p95_ms": 21.42, + "p99_ms": 27.148, + "max_ms": 29.448 + }, + "scene_setup_ms": 8.059, + "warmup": { + "median_ms": 13.667, + "p95_ms": 18.007, + "p99_ms": 25.348, + "max_ms": 25.348 + }, + "first_preparation_frame_ms": 42.33, + "first_interactive_frame_ms": 14.648, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 42.33, + "p95_ms": 42.33, + "p99_ms": 42.33, + "max_ms": 42.33 + }, + "time_until_first_interactive_ms": 57.022, + "preparation_tasks": [ + [ + "Preparando avião", + 0.006300004315562546 + ], + [ + "Aplicando pintura", + 0.0037999998312443495 + ], + [ + "Preparando piloto", + 0.02950000634882599 + ], + [ + "Montando visual do voo", + 0.006000002031214535 + ], + [ + "Preparando primeira vista", + 41.21950000990182 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.7417, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.03 + }, + "rules_update": { + "median_ms": 0.088, + "p95_ms": 0.163, + "p99_ms": 1.242, + "max_ms": 2.493 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.716, + "p99_ms": 2.654, + "max_ms": 3.048 + }, + "ground": { + "median_ms": 6.057, + "p95_ms": 9.01, + "p99_ms": 10.681, + "max_ms": 11.758 + }, + "route_and_banks": { + "median_ms": 8.562, + "p95_ms": 12.582, + "p99_ms": 14.803, + "max_ms": 18.039 + }, + "desaturate": { + "median_ms": 2.7, + "p95_ms": 4.493, + "p99_ms": 5.458, + "max_ms": 9.795 + }, + "background": { + "median_ms": 11.848, + "p95_ms": 17.05, + "p99_ms": 21.124, + "max_ms": 23.168 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.2, + "p99_ms": 0.243, + "max_ms": 0.607 + }, + "entities_and_effects": { + "median_ms": 13.213, + "p95_ms": 18.839, + "p99_ms": 23.842, + "max_ms": 26.661 + }, + "world": { + "median_ms": 13.97, + "p95_ms": 19.983, + "p99_ms": 24.95, + "max_ms": 27.949 + }, + "hud": { + "median_ms": 0.356, + "p95_ms": 0.573, + "p99_ms": 0.683, + "max_ms": 0.867 + }, + "scene": { + "median_ms": 14.691, + "p95_ms": 20.937, + "p99_ms": 25.908, + "max_ms": 28.896 + }, + "canvas": { + "median_ms": 14.815, + "p95_ms": 21.131, + "p99_ms": 26.813, + "max_ms": 29.111 + }, + "present": { + "median_ms": 0.269, + "p95_ms": 0.41, + "p99_ms": 0.532, + "max_ms": 0.611 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.03 + }, + "rules_update": { + "median_ms": 0.088, + "p95_ms": 0.163, + "p99_ms": 1.242, + "max_ms": 2.493 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.716, + "p99_ms": 2.654, + "max_ms": 3.048 + }, + "ground": { + "median_ms": 6.057, + "p95_ms": 9.01, + "p99_ms": 10.681, + "max_ms": 11.758 + }, + "route_and_banks": { + "median_ms": 2.409, + "p95_ms": 4.491, + "p99_ms": 5.458, + "max_ms": 6.716 + }, + "desaturate": { + "median_ms": 2.7, + "p95_ms": 4.493, + "p99_ms": 5.458, + "max_ms": 9.795 + }, + "background": { + "median_ms": 0.395, + "p95_ms": 0.631, + "p99_ms": 0.751, + "max_ms": 1.073 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.2, + "p99_ms": 0.243, + "max_ms": 0.607 + }, + "entities_and_effects": { + "median_ms": 1.174, + "p95_ms": 2.291, + "p99_ms": 3.192, + "max_ms": 3.974 + }, + "world": { + "median_ms": 0.757, + "p95_ms": 1.13, + "p99_ms": 1.326, + "max_ms": 1.418 + }, + "hud": { + "median_ms": 0.356, + "p95_ms": 0.573, + "p99_ms": 0.683, + "max_ms": 0.867 + }, + "scene": { + "median_ms": 0.316, + "p95_ms": 1.087, + "p99_ms": 1.509, + "max_ms": 1.959 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.048, + "p99_ms": 0.06, + "max_ms": 0.106 + }, + "present": { + "median_ms": 0.269, + "p95_ms": 0.41, + "p99_ms": 0.532, + "max_ms": 0.611 + } + }, + "rss_bytes": 283951104, + "renderer_caches": { + "unique_retained_surface_bytes": 178569916, + "surface_bytes_by_owner": { + "assets": 19966464, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 109719000, + "plane_skin": 27015716, + "paper_items": 14337192 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 86117272, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 154991, + "get_misses": 14334, + "evictions": 13401, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "caatinga_normal": { + "frame": { + "median_ms": 8.319, + "p95_ms": 13.518, + "p99_ms": 18.252, + "max_ms": 22.565 + }, + "scene_setup_ms": 7.262, + "warmup": { + "median_ms": 5.539, + "p95_ms": 8.084, + "p99_ms": 8.565, + "max_ms": 8.565 + }, + "first_preparation_frame_ms": 34.581, + "first_interactive_frame_ms": 5.219, + "preparation_frames": 18, + "preparation_frame_cost": { + "median_ms": 7.525, + "p95_ms": 70.518, + "p99_ms": 70.518, + "max_ms": 70.518 + }, + "time_until_first_interactive_ms": 254.836, + "preparation_tasks": [ + [ + "Preparando paisagem", + 23.133900001994334 + ], + [ + "Preparando paisagem", + 23.259699999471195 + ], + [ + "Preparando paisagem", + 27.015799991204403 + ], + [ + "Preparando textura do percurso", + 0.001200009137392044 + ], + [ + "Preparando margens", + 69.75969999621157 + ], + [ + "Preparando margens", + 0.258400003076531 + ], + [ + "Preparando margens", + 0.22479999461211264 + ], + [ + "Preparando margens", + 0.24649999977555126 + ], + [ + "Preparando margens", + 0.17949999892152846 + ], + [ + "Preparando margens", + 0.2744999947026372 + ], + [ + "Preparando margens", + 0.17010000010486692 + ], + [ + "Preparando margens", + 0.1365000061923638 + ], + [ + "Preparando margens", + 0.33290000283159316 + ], + [ + "Preparando margens", + 0.31350000062957406 + ], + [ + "Preparando margens", + 0.2862999972421676 + ], + [ + "Preparando margens", + 0.7634999928995967 + ], + [ + "Preparando detalhes industriais", + 6.517800007713959 + ], + [ + "Preparando detalhes industriais", + 6.2138999928720295 + ], + [ + "Preparando detalhes industriais", + 5.431400000816211 + ], + [ + "Preparando detalhes industriais", + 7.657800000743009 + ], + [ + "Preparando detalhes industriais", + 5.745699992985465 + ], + [ + "Suavizando textura do chão", + 1.242899990756996 + ], + [ + "Suavizando textura do chão", + 0.5820999940624461 + ], + [ + "Suavizando textura do chão", + 0.2894000062951818 + ], + [ + "Suavizando textura do chão", + 0.13699999544769526 + ], + [ + "Suavizando textura do chão", + 0.07049999840091914 + ], + [ + "Suavizando textura do chão", + 0.03770001058001071 + ], + [ + "Alocando faixas do chão", + 0.19940000493079424 + ], + [ + "Alocando faixas do chão", + 0.17889999435283244 + ], + [ + "Alocando faixas do chão", + 0.17759999900590628 + ], + [ + "Alocando faixas do chão", + 0.17520000983495265 + ], + [ + "Alocando faixas do chão", + 0.1976999919861555 + ], + [ + "Alocando faixas do chão", + 0.19749999046325684 + ], + [ + "Alocando faixas do chão", + 0.20729999232571572 + ], + [ + "Alocando faixas do chão", + 0.2128000051015988 + ], + [ + "Alocando faixas do chão", + 0.14789999113418162 + ], + [ + "Preparando fauna", + 0.0018999999156221747 + ], + [ + "Carregando elementos regionais", + 6.426699997973628 + ], + [ + "Carregando elementos regionais", + 6.95090000226628 + ], + [ + "Carregando elementos regionais", + 5.744000009144656 + ], + [ + "Preparando obstáculos regionais", + 8.177099996828474 + ], + [ + "Preparando avião", + 0.0026999914553016424 + ], + [ + "Aplicando pintura", + 0.0020000006770715117 + ], + [ + "Preparando piloto", + 0.021800005924887955 + ], + [ + "Montando visual do voo", + 0.0050000089686363935 + ], + [ + "Preparando primeira vista", + 16.44000000669621 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.9783, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.016 + }, + "rules_update": { + "median_ms": 0.091, + "p95_ms": 0.17, + "p99_ms": 1.234, + "max_ms": 3.15 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.862, + "p99_ms": 2.381, + "max_ms": 3.001 + }, + "ground": { + "median_ms": 2.559, + "p95_ms": 4.265, + "p99_ms": 5.5, + "max_ms": 6.49 + }, + "route_and_banks": { + "median_ms": 5.381, + "p95_ms": 9.699, + "p99_ms": 12.77, + "max_ms": 15.341 + }, + "background": { + "median_ms": 6.061, + "p95_ms": 10.389, + "p99_ms": 14.607, + "max_ms": 16.206 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.215, + "p99_ms": 0.427, + "max_ms": 1.027 + }, + "entities_and_effects": { + "median_ms": 7.003, + "p95_ms": 11.924, + "p99_ms": 16.754, + "max_ms": 19.246 + }, + "world": { + "median_ms": 7.009, + "p95_ms": 11.932, + "p99_ms": 16.762, + "max_ms": 19.259 + }, + "hud": { + "median_ms": 0.368, + "p95_ms": 0.617, + "p99_ms": 0.788, + "max_ms": 2.252 + }, + "scene": { + "median_ms": 7.877, + "p95_ms": 13.031, + "p99_ms": 17.447, + "max_ms": 20.375 + }, + "canvas": { + "median_ms": 8.014, + "p95_ms": 13.182, + "p99_ms": 17.648, + "max_ms": 22.163 + }, + "present": { + "median_ms": 0.289, + "p95_ms": 0.479, + "p99_ms": 0.662, + "max_ms": 1.195 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.016 + }, + "rules_update": { + "median_ms": 0.091, + "p95_ms": 0.17, + "p99_ms": 1.234, + "max_ms": 3.15 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.862, + "p99_ms": 2.381, + "max_ms": 3.001 + }, + "ground": { + "median_ms": 2.559, + "p95_ms": 4.265, + "p99_ms": 5.5, + "max_ms": 6.49 + }, + "route_and_banks": { + "median_ms": 2.709, + "p95_ms": 5.762, + "p99_ms": 8.073, + "max_ms": 10.177 + }, + "background": { + "median_ms": 0.412, + "p95_ms": 0.678, + "p99_ms": 1.171, + "max_ms": 3.096 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.215, + "p99_ms": 0.427, + "max_ms": 1.027 + }, + "entities_and_effects": { + "median_ms": 0.763, + "p95_ms": 1.51, + "p99_ms": 1.991, + "max_ms": 10.015 + }, + "world": { + "median_ms": 0.006, + "p95_ms": 0.011, + "p99_ms": 0.02, + "max_ms": 0.061 + }, + "hud": { + "median_ms": 0.368, + "p95_ms": 0.617, + "p99_ms": 0.788, + "max_ms": 2.252 + }, + "scene": { + "median_ms": 0.35, + "p95_ms": 1.454, + "p99_ms": 1.704, + "max_ms": 2.606 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.054, + "p99_ms": 0.064, + "max_ms": 0.098 + }, + "present": { + "median_ms": 0.289, + "p95_ms": 0.479, + "p99_ms": 0.662, + "max_ms": 1.195 + } + }, + "rss_bytes": 291594240, + "renderer_caches": { + "unique_retained_surface_bytes": 190633884, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 587260, + "world_transient": 4301432, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 17893272 + }, + "cache_items": { + "scaled": 2, + "mips": 1, + "outlines": 0, + "rotations": 7, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 87940580, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 127589, + "get_misses": 14370, + "evictions": 13341, + "live_caches": 19 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + }, + "caatinga_contrast": { + "frame": { + "median_ms": 11.887, + "p95_ms": 16.821, + "p99_ms": 20.296, + "max_ms": 23.143 + }, + "scene_setup_ms": 7.754, + "warmup": { + "median_ms": 10.335, + "p95_ms": 19.304, + "p99_ms": 21.747, + "max_ms": 21.747 + }, + "first_preparation_frame_ms": 22.22, + "first_interactive_frame_ms": 13.396, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 22.22, + "p95_ms": 22.22, + "p99_ms": 22.22, + "max_ms": 22.22 + }, + "time_until_first_interactive_ms": 35.652, + "preparation_tasks": [ + [ + "Preparando avião", + 0.003200009814463556 + ], + [ + "Aplicando pintura", + 0.0024000037228688598 + ], + [ + "Preparando piloto", + 0.02479999966453761 + ], + [ + "Montando visual do voo", + 0.005199995939619839 + ], + [ + "Preparando primeira vista", + 21.34339998883661 + ] + ], + "frames_measured": 600, + "within_60fps_budget_fraction": 0.945, + "components": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.014 + }, + "rules_update": { + "median_ms": 0.089, + "p95_ms": 0.162, + "p99_ms": 1.403, + "max_ms": 2.707 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.742, + "p99_ms": 2.542, + "max_ms": 3.305 + }, + "ground": { + "median_ms": 2.484, + "p95_ms": 3.864, + "p99_ms": 4.617, + "max_ms": 5.443 + }, + "route_and_banks": { + "median_ms": 5.11, + "p95_ms": 7.907, + "p99_ms": 9.482, + "max_ms": 11.647 + }, + "desaturate": { + "median_ms": 2.615, + "p95_ms": 4.144, + "p99_ms": 5.063, + "max_ms": 5.651 + }, + "background": { + "median_ms": 8.364, + "p95_ms": 12.364, + "p99_ms": 14.818, + "max_ms": 18.341 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.202, + "p99_ms": 0.296, + "max_ms": 0.596 + }, + "entities_and_effects": { + "median_ms": 9.759, + "p95_ms": 14.123, + "p99_ms": 17.149, + "max_ms": 19.86 + }, + "world": { + "median_ms": 10.529, + "p95_ms": 15.03, + "p99_ms": 18.204, + "max_ms": 20.766 + }, + "hud": { + "median_ms": 0.361, + "p95_ms": 0.586, + "p99_ms": 0.754, + "max_ms": 1.222 + }, + "scene": { + "median_ms": 11.462, + "p95_ms": 16.197, + "p99_ms": 19.256, + "max_ms": 22.515 + }, + "canvas": { + "median_ms": 11.588, + "p95_ms": 16.457, + "p99_ms": 20.024, + "max_ms": 22.771 + }, + "present": { + "median_ms": 0.277, + "p95_ms": 0.426, + "p99_ms": 0.529, + "max_ms": 1.331 + } + }, + "components_exclusive": { + "input": { + "median_ms": 0.001, + "p95_ms": 0.002, + "p99_ms": 0.002, + "max_ms": 0.014 + }, + "rules_update": { + "median_ms": 0.089, + "p95_ms": 0.162, + "p99_ms": 1.403, + "max_ms": 2.707 + }, + "horizon": { + "median_ms": 0.006, + "p95_ms": 1.742, + "p99_ms": 2.542, + "max_ms": 3.305 + }, + "ground": { + "median_ms": 2.484, + "p95_ms": 3.864, + "p99_ms": 4.617, + "max_ms": 5.443 + }, + "route_and_banks": { + "median_ms": 2.594, + "p95_ms": 4.853, + "p99_ms": 6.055, + "max_ms": 7.616 + }, + "desaturate": { + "median_ms": 2.615, + "p95_ms": 4.144, + "p99_ms": 5.063, + "max_ms": 5.651 + }, + "background": { + "median_ms": 0.403, + "p95_ms": 0.668, + "p99_ms": 0.871, + "max_ms": 0.951 + }, + "plane": { + "median_ms": 0.127, + "p95_ms": 0.202, + "p99_ms": 0.296, + "max_ms": 0.596 + }, + "entities_and_effects": { + "median_ms": 1.165, + "p95_ms": 2.328, + "p99_ms": 3.115, + "max_ms": 4.313 + }, + "world": { + "median_ms": 0.741, + "p95_ms": 1.08, + "p99_ms": 1.264, + "max_ms": 1.504 + }, + "hud": { + "median_ms": 0.361, + "p95_ms": 0.586, + "p99_ms": 0.754, + "max_ms": 1.222 + }, + "scene": { + "median_ms": 0.343, + "p95_ms": 1.367, + "p99_ms": 1.787, + "max_ms": 2.917 + }, + "canvas": { + "median_ms": 0.032, + "p95_ms": 0.05, + "p99_ms": 0.065, + "max_ms": 0.201 + }, + "present": { + "median_ms": 0.277, + "p95_ms": 0.426, + "p99_ms": 0.529, + "max_ms": 1.331 + } + }, + "rss_bytes": 302231552, + "renderer_caches": { + "unique_retained_surface_bytes": 193024508, + "surface_bytes_by_owner": { + "assets": 19692672, + "scene_sprites": 0, + "world_sprite_cache": 1245368, + "world_transient": 5368672, + "sky": 0, + "ground": 917504, + "watercolor": 120226028, + "plane_skin": 27015716, + "paper_items": 18558548 + }, + "cache_items": { + "scaled": 3, + "mips": 2, + "outlines": 1, + "rotations": 14, + "ground_groups": 0, + "asset_images": 42 + }, + "aggregate_cache_bytes": 90331204, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 208184, + "get_misses": 22276, + "evictions": 21237, + "live_caches": 20 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + } + } + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/sintese.json b/docs/validacao-v1.7/desempenho/sintese.json new file mode 100644 index 0000000..d99d956 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/sintese.json @@ -0,0 +1,407 @@ +{ + "code_commit": "c7369e76dfefc238c68131b4e97a2a945e293c36", + "runtime": { + "runtime-1": { + "amazonia_normal": { + "median_ms": 11.15, + "p95_ms": 15.089, + "p99_ms": 17.465, + "max_ms": 19.599 + }, + "amazonia_contrast": { + "median_ms": 15.189, + "p95_ms": 20.917, + "p99_ms": 25.132, + "max_ms": 29.055 + }, + "caatinga_normal": { + "median_ms": 7.849, + "p95_ms": 14.579, + "p99_ms": 24.948, + "max_ms": 39.558 + }, + "caatinga_contrast": { + "median_ms": 11.53, + "p95_ms": 17.481, + "p99_ms": 25.002, + "max_ms": 32.637 + } + }, + "runtime-2": { + "amazonia_normal": { + "median_ms": 14.465, + "p95_ms": 21.691, + "p99_ms": 26.103, + "max_ms": 36.097 + }, + "amazonia_contrast": { + "median_ms": 15.63, + "p95_ms": 21.795, + "p99_ms": 27.26, + "max_ms": 32.726 + }, + "caatinga_normal": { + "median_ms": 8.078, + "p95_ms": 11.243, + "p99_ms": 13.332, + "max_ms": 15.364 + }, + "caatinga_contrast": { + "median_ms": 11.76, + "p95_ms": 17.078, + "p99_ms": 21.837, + "max_ms": 23.648 + } + }, + "runtime-3": { + "amazonia_normal": { + "median_ms": 10.715, + "p95_ms": 14.484, + "p99_ms": 17.585, + "max_ms": 19.843 + }, + "amazonia_contrast": { + "median_ms": 15.077, + "p95_ms": 21.42, + "p99_ms": 27.148, + "max_ms": 29.448 + }, + "caatinga_normal": { + "median_ms": 8.319, + "p95_ms": 13.518, + "p99_ms": 18.252, + "max_ms": 22.565 + }, + "caatinga_contrast": { + "median_ms": 11.887, + "p95_ms": 16.821, + "p99_ms": 20.296, + "max_ms": 23.143 + } + }, + "camera-1": { + "amazonia_normal": { + "median_ms": 12.388, + "p95_ms": 66.005, + "p99_ms": 76.503, + "max_ms": 95.86 + }, + "amazonia_contrast": { + "median_ms": 16.648, + "p95_ms": 23.478, + "p99_ms": 27.972, + "max_ms": 34.959 + }, + "caatinga_normal": { + "median_ms": 8.489, + "p95_ms": 12.108, + "p99_ms": 14.718, + "max_ms": 16.975 + }, + "caatinga_contrast": { + "median_ms": 13.368, + "p95_ms": 21.393, + "p99_ms": 28.951, + "max_ms": 37.464 + } + }, + "camera-2": { + "amazonia_normal": { + "median_ms": 11.873, + "p95_ms": 16.942, + "p99_ms": 20.409, + "max_ms": 28.37 + }, + "amazonia_contrast": { + "median_ms": 17.257, + "p95_ms": 24.374, + "p99_ms": 28.807, + "max_ms": 32.675 + }, + "caatinga_normal": { + "median_ms": 8.472, + "p95_ms": 12.334, + "p99_ms": 14.844, + "max_ms": 19.343 + }, + "caatinga_contrast": { + "median_ms": 12.837, + "p95_ms": 19.288, + "p99_ms": 22.663, + "max_ms": 30.026 + } + }, + "camera-3": { + "amazonia_normal": { + "median_ms": 13.657, + "p95_ms": 22.142, + "p99_ms": 28.967, + "max_ms": 54.418 + }, + "amazonia_contrast": { + "median_ms": 20.289, + "p95_ms": 35.619, + "p99_ms": 43.943, + "max_ms": 67.191 + }, + "caatinga_normal": { + "median_ms": 9.255, + "p95_ms": 13.561, + "p99_ms": 16.48, + "max_ms": 20.091 + }, + "caatinga_contrast": { + "median_ms": 14.22, + "p95_ms": 19.863, + "p99_ms": 23.287, + "max_ms": 38.689 + } + } + }, + "cold": { + "amazonia": { + "first_p95_ms": 48.601, + "first_max_ms": 48.601, + "preparation_median_ms": 548.1765, + "max_task_ms": 87.6433000084944 + }, + "caatinga": { + "first_p95_ms": 38.382, + "first_max_ms": 38.382, + "preparation_median_ms": 505.5095, + "max_task_ms": 83.13440000347327 + } + }, + "source_hashes": { + "dobramundo/config.py": "0cc108fef75457feef9aaef9b77d139eb2030fa618d113ef4f5bbc8adcbeea3d", + "dobramundo/game/run.py": "fd5630a249fcd49eba126fae26c45ec85c66f13eecf6133605f12dfb317b2bf7", + "dobramundo/game/world.py": "b2b38221864900ef266ebc626c68a7b2e9d6a2a4bd4c109e6e1be7cec917591d", + "dobramundo/engine/painted_route.py": "357213bde537b905e2f65721928b132c25ebe39f2b8797d3825280f1a9a4e2ff", + "dobramundo/engine/watercolor.py": "7abbed1ca75d194f4afbd34104d7822f4935881e82bb3e06f21d03fb14b1241e", + "dobramundo/engine/world_view.py": "b84ffa65bb9d2495f7c701bd8895bfd4dfc1af9154a31c18501d3bfecb716a5e", + "dobramundo/scenes/flight.py": "49b775d2c55391a16a30daf6ac2054c9d16ed9e02ef6d54d70da8839f4c90bdf", + "tools/benchmark_runtime.py": "f47363e3d8dcd1329e9e6aadc79ae0938aa73eab898b61fe6cef4cf1c0df836f", + "tools/soak_runtime.py": "8e6e3f98d8f579ba67446e02dcd300094a3c310dc0b116770a6e1b7a11ac025b" + }, + "soak": { + "rss_final_mib": 571.7265625, + "rss_max_mib": 606.98828125, + "rss_last_ten_range_mib": [ + 558.25390625, + 606.98828125 + ], + "cache_max_mib": 191.89797973632812, + "active_seconds": 1200.0, + "wall_seconds": 832.694 + }, + "control": { + "amazonia_normal": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 32.0, + "p99_ms": 47.0, + "max_ms": 47.0 + }, + "consume_to_canvas": { + "median_ms": 16.0, + "p95_ms": 62.0, + "p99_ms": 79.0, + "max_ms": 94.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 47.0, + "p95_ms": 79.0, + "p99_ms": 110.0, + "max_ms": 125.0 + } + }, + "unique_sequences": 156, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "amazonia_contrast": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 47.0, + "p99_ms": 63.0, + "max_ms": 63.0 + }, + "consume_to_canvas": { + "median_ms": 31.0, + "p95_ms": 62.0, + "p99_ms": 78.0, + "max_ms": 78.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 54.5, + "p95_ms": 79.0, + "p99_ms": 94.0, + "max_ms": 110.0 + } + }, + "unique_sequences": 177, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "caatinga_normal": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 47.0, + "p99_ms": 47.0, + "max_ms": 47.0 + }, + "consume_to_canvas": { + "median_ms": 16.0, + "p95_ms": 47.0, + "p99_ms": 63.0, + "max_ms": 63.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 47.0, + "p95_ms": 78.0, + "p99_ms": 94.0, + "max_ms": 94.0 + } + }, + "unique_sequences": 153, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + }, + "caatinga_contrast": { + "timings": { + "capture_to_consume": { + "median_ms": 31.0, + "p95_ms": 47.0, + "p99_ms": 47.0, + "max_ms": 47.0 + }, + "consume_to_canvas": { + "median_ms": 16.0, + "p95_ms": 62.0, + "p99_ms": 78.0, + "max_ms": 94.0 + }, + "canvas_to_present": { + "median_ms": 0.0, + "p95_ms": 16.0, + "p99_ms": 16.0, + "max_ms": 16.0 + }, + "capture_to_present": { + "median_ms": 47.0, + "p95_ms": 93.0, + "p99_ms": 110.0, + "max_ms": 125.0 + } + }, + "unique_sequences": 160, + "usable_frames": 0, + "fraction_usable": 0.0, + "basis": "same consumed sequence through canvas and present call; excludes sensor and display delay" + } + }, + "native_window_camera": { + "native-camera-1": { + "amazonia_normal": { + "median_ms": 14.124, + "p95_ms": 19.117, + "p99_ms": 22.017, + "max_ms": 27.875 + }, + "amazonia_contrast": { + "median_ms": 18.884, + "p95_ms": 25.081, + "p99_ms": 27.624, + "max_ms": 28.824 + }, + "caatinga_normal": { + "median_ms": 11.643, + "p95_ms": 18.675, + "p99_ms": 20.647, + "max_ms": 24.894 + }, + "caatinga_contrast": { + "median_ms": 16.643, + "p95_ms": 23.418, + "p99_ms": 26.614, + "max_ms": 29.424 + } + }, + "native-camera-2": { + "amazonia_normal": { + "median_ms": 16.97, + "p95_ms": 22.677, + "p99_ms": 25.766, + "max_ms": 47.737 + }, + "amazonia_contrast": { + "median_ms": 19.855, + "p95_ms": 26.386, + "p99_ms": 30.126, + "max_ms": 32.295 + }, + "caatinga_normal": { + "median_ms": 11.136, + "p95_ms": 15.872, + "p99_ms": 18.709, + "max_ms": 20.261 + }, + "caatinga_contrast": { + "median_ms": 16.856, + "p95_ms": 24.531, + "p99_ms": 27.326, + "max_ms": 29.288 + } + }, + "native-camera-3": { + "amazonia_normal": { + "median_ms": 14.167, + "p95_ms": 19.399, + "p99_ms": 22.415, + "max_ms": 25.55 + }, + "amazonia_contrast": { + "median_ms": 19.268, + "p95_ms": 28.387, + "p99_ms": 34.409, + "max_ms": 47.571 + }, + "caatinga_normal": { + "median_ms": 10.342, + "p95_ms": 39.92, + "p99_ms": 52.708, + "max_ms": 64.441 + }, + "caatinga_contrast": { + "median_ms": 12.928, + "p95_ms": 18.256, + "p99_ms": 21.271, + "max_ms": 27.267 + } + } + } +} diff --git a/docs/validacao-v1.7/desempenho/soak.json b/docs/validacao-v1.7/desempenho/soak.json new file mode 100644 index 0000000..6e33ba3 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/soak.json @@ -0,0 +1,1602 @@ +{ + "version": "1.7.0", + "cycles": [ + { + "cycle": 0, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 524865536, + "loaded_surface_bytes": 44752248, + "loaded_images": 11, + "renderer_caches": { + "unique_retained_surface_bytes": 361206364, + "surface_bytes_by_owner": { + "assets": 83809864, + "scene_sprites": 27051220, + "world_sprite_cache": 43050048, + "world_transient": 23028872, + "sky": 10904400, + "ground": 3537584, + "watercolor": 111031300, + "plane_skin": 37416964, + "paper_items": 21376112 + }, + "cache_items": { + "scaled": 91, + "mips": 31, + "outlines": 0, + "rotations": 120, + "ground_groups": 16, + "asset_images": 11 + }, + "aggregate_cache_bytes": 195602712, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 234142, + "get_misses": 22905, + "evictions": 21788, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 24, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 14.439, + "p95_ms": 14.439, + "p99_ms": 14.439, + "max_ms": 14.439 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.401, + "p95_ms": 13.113, + "p99_ms": 15.849, + "max_ms": 23.344 + }, + { + "cycle": 1, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 498147328, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 304995348, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29745168, + "world_transient": 35995480, + "sky": 0, + "ground": 1097904, + "watercolor": 123240444, + "plane_skin": 42364672, + "paper_items": 25568240 + }, + "cache_items": { + "scaled": 95, + "mips": 1, + "outlines": 0, + "rotations": 208, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 196004028, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 318017, + "get_misses": 35407, + "evictions": 33927, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 18, + "preparation_frames": 19, + "preparation_frame_cost": { + "median_ms": 9.075, + "p95_ms": 69.752, + "p99_ms": 69.752, + "max_ms": 69.752 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.41, + "p95_ms": 9.291, + "p99_ms": 11.051, + "max_ms": 15.317 + }, + { + "cycle": 2, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 587128832, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 345251640, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 33821856, + "world_transient": 31914952, + "sky": 10904400, + "ground": 2947760, + "watercolor": 120112144, + "plane_skin": 47188552, + "paper_items": 25256148 + }, + "cache_items": { + "scaled": 106, + "mips": 9, + "outlines": 1, + "rotations": 132, + "ground_groups": 12, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201012156, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 414507, + "get_misses": 51574, + "evictions": 49882, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 20, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 25.466, + "p95_ms": 25.466, + "p99_ms": 25.466, + "max_ms": 25.466 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 13.709, + "p95_ms": 19.305, + "p99_ms": 24.387, + "max_ms": 35.843 + }, + { + "cycle": 3, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 567287808, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 302884460, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 28400224, + "world_transient": 32381192, + "sky": 0, + "ground": 2025648, + "watercolor": 125119984, + "plane_skin": 48977576, + "paper_items": 18996396 + }, + "cache_items": { + "scaled": 62, + "mips": 1, + "outlines": 1, + "rotations": 133, + "ground_groups": 6, + "asset_images": 114 + }, + "aggregate_cache_bytes": 192946856, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 497367, + "get_misses": 68825, + "evictions": 66828, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 24, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 7.264, + "p95_ms": 74.468, + "p99_ms": 74.468, + "max_ms": 74.468 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.194, + "p95_ms": 14.216, + "p99_ms": 17.236, + "max_ms": 20.636 + }, + { + "cycle": 4, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 623935488, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 342800812, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 42792088, + "world_transient": 25264760, + "sky": 7040000, + "ground": 13477040, + "watercolor": 116328624, + "plane_skin": 45538356, + "paper_items": 19254116 + }, + "cache_items": { + "scaled": 92, + "mips": 32, + "outlines": 0, + "rotations": 126, + "ground_groups": 70, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201182060, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 579103, + "get_misses": 80399, + "evictions": 78316, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 25, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 17.114, + "p95_ms": 17.114, + "p99_ms": 17.114, + "max_ms": 17.114 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.804, + "p95_ms": 17.389, + "p99_ms": 22.757, + "max_ms": 37.666 + }, + { + "cycle": 5, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 573542400, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 292558000, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 27174304, + "world_transient": 19237176, + "sky": 0, + "ground": 7360176, + "watercolor": 121927544, + "plane_skin": 44535124, + "paper_items": 25340236 + }, + "cache_items": { + "scaled": 56, + "mips": 1, + "outlines": 0, + "rotations": 74, + "ground_groups": 32, + "asset_images": 114 + }, + "aggregate_cache_bytes": 182411756, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 655818, + "get_misses": 92161, + "evictions": 89909, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 24, + "preparation_frames": 16, + "preparation_frame_cost": { + "median_ms": 10.219, + "p95_ms": 78.316, + "p99_ms": 78.316, + "max_ms": 78.316 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.255, + "p95_ms": 11.404, + "p99_ms": 15.384, + "max_ms": 20.806 + }, + { + "cycle": 6, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 612528128, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 337533140, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 43291596, + "world_transient": 36028696, + "sky": 8088400, + "ground": 8745648, + "watercolor": 119440944, + "plane_skin": 32663512, + "paper_items": 16168516 + }, + "cache_items": { + "scaled": 90, + "mips": 34, + "outlines": 1, + "rotations": 204, + "ground_groups": 48, + "asset_images": 114 + }, + "aggregate_cache_bytes": 196965956, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 741097, + "get_misses": 109548, + "evictions": 107039, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 20, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 23.815, + "p95_ms": 23.815, + "p99_ms": 23.815, + "max_ms": 23.815 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 13.227, + "p95_ms": 17.842, + "p99_ms": 20.714, + "max_ms": 26.765 + }, + { + "cycle": 7, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 572149760, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 306840384, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29672288, + "world_transient": 45025032, + "sky": 0, + "ground": 1097904, + "watercolor": 125124012, + "plane_skin": 41335116, + "paper_items": 17602592 + }, + "cache_items": { + "scaled": 90, + "mips": 1, + "outlines": 1, + "rotations": 254, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 196950812, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 833388, + "get_misses": 126269, + "evictions": 123366, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 19, + "preparation_frames": 16, + "preparation_frame_cost": { + "median_ms": 8.914, + "p95_ms": 64.499, + "p99_ms": 64.499, + "max_ms": 64.499 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.365, + "p95_ms": 15.809, + "p99_ms": 20.668, + "max_ms": 32.25 + }, + { + "cycle": 8, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 631947264, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 342579476, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 40189076, + "world_transient": 29006280, + "sky": 7040000, + "ground": 1097904, + "watercolor": 119824728, + "plane_skin": 46934548, + "paper_items": 25381112 + }, + "cache_items": { + "scaled": 91, + "mips": 27, + "outlines": 0, + "rotations": 152, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201117156, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 907511, + "get_misses": 137374, + "evictions": 134454, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 20, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 14.856, + "p95_ms": 14.856, + "p99_ms": 14.856, + "max_ms": 14.856 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.28, + "p95_ms": 13.273, + "p99_ms": 16.678, + "max_ms": 22.695 + }, + { + "cycle": 9, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 589459456, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 306964136, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29769248, + "world_transient": 30414088, + "sky": 0, + "ground": 1097904, + "watercolor": 125170860, + "plane_skin": 47829824, + "paper_items": 25698772 + }, + "cache_items": { + "scaled": 105, + "mips": 1, + "outlines": 0, + "rotations": 152, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 197016052, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 984397, + "get_misses": 149916, + "evictions": 146634, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 27, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 8.245, + "p95_ms": 61.838, + "p99_ms": 61.838, + "max_ms": 61.838 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.17, + "p95_ms": 8.637, + "p99_ms": 10.939, + "max_ms": 17.34 + }, + { + "cycle": 10, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 623009792, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 341554556, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 42616988, + "world_transient": 25748584, + "sky": 7040000, + "ground": 11267760, + "watercolor": 118120740, + "plane_skin": 45792360, + "paper_items": 17862296 + }, + "cache_items": { + "scaled": 88, + "mips": 33, + "outlines": 1, + "rotations": 125, + "ground_groups": 56, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201155628, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1070604, + "get_misses": 164397, + "evictions": 160944, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 24, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 27.039, + "p95_ms": 27.039, + "p99_ms": 27.039, + "max_ms": 27.039 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 13.14, + "p95_ms": 18.689, + "p99_ms": 23.704, + "max_ms": 41.854 + }, + { + "cycle": 11, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 590573568, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 302732744, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29639840, + "world_transient": 27306584, + "sky": 0, + "ground": 4878512, + "watercolor": 123827268, + "plane_skin": 44789128, + "paper_items": 25307972 + }, + "cache_items": { + "scaled": 88, + "mips": 1, + "outlines": 1, + "rotations": 127, + "ground_groups": 18, + "asset_images": 114 + }, + "aggregate_cache_bytes": 192761332, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1157303, + "get_misses": 181027, + "evictions": 177348, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 19, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 8.665, + "p95_ms": 78.325, + "p99_ms": 78.325, + "max_ms": 78.325 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.767, + "p95_ms": 13.902, + "p99_ms": 16.674, + "max_ms": 24.109 + }, + { + "cycle": 12, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 613081088, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 332848860, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 42267728, + "world_transient": 19237176, + "sky": 8088400, + "ground": 14409904, + "watercolor": 118204856, + "plane_skin": 32409508, + "paper_items": 25125460 + }, + "cache_items": { + "scaled": 127, + "mips": 33, + "outlines": 0, + "rotations": 74, + "ground_groups": 76, + "asset_images": 114 + }, + "aggregate_cache_bytes": 192226876, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1226164, + "get_misses": 191840, + "evictions": 188082, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 18, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 13.169, + "p95_ms": 13.169, + "p99_ms": 13.169, + "max_ms": 13.169 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.201, + "p95_ms": 12.55, + "p99_ms": 15.581, + "max_ms": 21.754 + }, + { + "cycle": 13, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 582127616, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 297685584, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29705632, + "world_transient": 24655304, + "sky": 0, + "ground": 6376624, + "watercolor": 124559248, + "plane_skin": 41081112, + "paper_items": 24324224 + }, + "cache_items": { + "scaled": 92, + "mips": 1, + "outlines": 0, + "rotations": 123, + "ground_groups": 26, + "asset_images": 114 + }, + "aggregate_cache_bytes": 189392424, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1302187, + "get_misses": 203605, + "evictions": 199537, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 18, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 8.733, + "p95_ms": 66.383, + "p99_ms": 66.383, + "max_ms": 66.383 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.74, + "p95_ms": 10.191, + "p99_ms": 12.469, + "max_ms": 16.9 + }, + { + "cycle": 14, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 635187200, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 345022104, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 34695032, + "world_transient": 38744472, + "sky": 7040000, + "ground": 1097904, + "watercolor": 117790136, + "plane_skin": 47188552, + "paper_items": 25360180 + }, + "cache_items": { + "scaled": 91, + "mips": 11, + "outlines": 1, + "rotations": 206, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 200867976, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1392041, + "get_misses": 218495, + "evictions": 214386, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 22, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 24.588, + "p95_ms": 24.588, + "p99_ms": 24.588, + "max_ms": 24.588 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 13.183, + "p95_ms": 17.551, + "p99_ms": 21.063, + "max_ms": 31.676 + }, + { + "cycle": 15, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 594780160, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 304985520, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29745824, + "world_transient": 35857096, + "sky": 0, + "ground": 1097904, + "watercolor": 123619780, + "plane_skin": 48083828, + "paper_items": 19597648 + }, + "cache_items": { + "scaled": 109, + "mips": 1, + "outlines": 1, + "rotations": 200, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 196498904, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1479708, + "get_misses": 234366, + "evictions": 229754, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 19, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 7.96, + "p95_ms": 61.443, + "p99_ms": 61.443, + "max_ms": 61.443 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.883, + "p95_ms": 15.554, + "p99_ms": 21.994, + "max_ms": 38.745 + }, + { + "cycle": 16, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 627134464, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 341236208, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 41984816, + "world_transient": 18976968, + "sky": 7040000, + "ground": 13852336, + "watercolor": 119620596, + "plane_skin": 45538356, + "paper_items": 21117308 + }, + "cache_items": { + "scaled": 123, + "mips": 33, + "outlines": 0, + "rotations": 73, + "ground_groups": 72, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201058688, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1545632, + "get_misses": 244048, + "evictions": 239340, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 18, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 16.295, + "p95_ms": 16.295, + "p99_ms": 16.295, + "max_ms": 16.295 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.966, + "p95_ms": 15.466, + "p99_ms": 21.02, + "max_ms": 37.73 + }, + { + "cycle": 17, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 589094912, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 305395212, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 27962656, + "world_transient": 30573992, + "sky": 0, + "ground": 3921072, + "watercolor": 125946684, + "plane_skin": 44535124, + "paper_items": 25472244 + }, + "cache_items": { + "scaled": 63, + "mips": 1, + "outlines": 0, + "rotations": 131, + "ground_groups": 14, + "asset_images": 114 + }, + "aggregate_cache_bytes": 197182132, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1621554, + "get_misses": 255859, + "evictions": 250966, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 23, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 7.546, + "p95_ms": 65.487, + "p99_ms": 65.487, + "max_ms": 65.487 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.186, + "p95_ms": 8.953, + "p99_ms": 10.666, + "max_ms": 16.286 + }, + { + "cycle": 18, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 625242112, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 341105120, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 42933080, + "world_transient": 27763832, + "sky": 7040000, + "ground": 8739504, + "watercolor": 119402184, + "plane_skin": 40022200, + "paper_items": 22098492 + }, + "cache_items": { + "scaled": 88, + "mips": 34, + "outlines": 1, + "rotations": 126, + "ground_groups": 40, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201029376, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1716345, + "get_misses": 275751, + "evictions": 270732, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 16, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 22.098, + "p95_ms": 22.098, + "p99_ms": 22.098, + "max_ms": 22.098 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 13.429, + "p95_ms": 22.286, + "p99_ms": 66.28, + "max_ms": 124.148 + }, + { + "cycle": 19, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 594665472, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 313592420, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29677920, + "world_transient": 45108360, + "sky": 0, + "ground": 1097904, + "watercolor": 120926532, + "plane_skin": 44948116, + "paper_items": 24850148 + }, + "cache_items": { + "scaled": 91, + "mips": 1, + "outlines": 1, + "rotations": 218, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201191468, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1800922, + "get_misses": 292609, + "evictions": 287498, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 18, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 7.148, + "p95_ms": 65.479, + "p99_ms": 65.479, + "max_ms": 65.479 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.691, + "p95_ms": 15.492, + "p99_ms": 18.683, + "max_ms": 35.822 + }, + { + "cycle": 20, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 630878208, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 341693184, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 33296388, + "world_transient": 36494632, + "sky": 7040000, + "ground": 1097904, + "watercolor": 121359960, + "plane_skin": 48928228, + "paper_items": 20370244 + }, + "cache_items": { + "scaled": 93, + "mips": 8, + "outlines": 0, + "rotations": 181, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 200997104, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1876241, + "get_misses": 303419, + "evictions": 297835, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 18, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 18.49, + "p95_ms": 18.49, + "p99_ms": 18.49, + "max_ms": 18.49 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.677, + "p95_ms": 16.178, + "p99_ms": 20.157, + "max_ms": 26.342 + }, + { + "cycle": 21, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 585371648, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 307891292, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29740768, + "world_transient": 43303336, + "sky": 0, + "ground": 1097904, + "watercolor": 121606108, + "plane_skin": 41950088, + "paper_items": 23209648 + }, + "cache_items": { + "scaled": 94, + "mips": 1, + "outlines": 0, + "rotations": 244, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 196101492, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 1950619, + "get_misses": 315779, + "evictions": 309960, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 20, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 8.558, + "p95_ms": 64.985, + "p99_ms": 64.985, + "max_ms": 64.985 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.615, + "p95_ms": 9.881, + "p99_ms": 13.031, + "max_ms": 20.572 + }, + { + "cycle": 22, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 636473344, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 339612816, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 39525192, + "world_transient": 26469640, + "sky": 7040000, + "ground": 1097904, + "watercolor": 121253992, + "plane_skin": 45792360, + "paper_items": 25327900 + }, + "cache_items": { + "scaled": 89, + "mips": 25, + "outlines": 1, + "rotations": 127, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201159152, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2037263, + "get_misses": 330313, + "evictions": 324313, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 21, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 36.425, + "p95_ms": 36.425, + "p99_ms": 36.425, + "max_ms": 36.425 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 13.027, + "p95_ms": 17.564, + "p99_ms": 20.675, + "max_ms": 26.251 + }, + { + "cycle": 23, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 593358848, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 283258272, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 27700256, + "world_transient": 19940952, + "sky": 0, + "ground": 1097904, + "watercolor": 126386840, + "plane_skin": 44789128, + "paper_items": 16359752 + }, + "cache_items": { + "scaled": 57, + "mips": 1, + "outlines": 1, + "rotations": 75, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 175178696, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2121917, + "get_misses": 348153, + "evictions": 341960, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 24, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 8.695, + "p95_ms": 78.055, + "p99_ms": 78.055, + "max_ms": 78.055 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.073, + "p95_ms": 38.196, + "p99_ms": 53.311, + "max_ms": 76.202 + }, + { + "cycle": 24, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 629895168, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 341887724, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 42909088, + "world_transient": 36701304, + "sky": 7040000, + "ground": 5610672, + "watercolor": 116606676, + "plane_skin": 39768196, + "paper_items": 20145960 + }, + "cache_items": { + "scaled": 92, + "mips": 33, + "outlines": 0, + "rotations": 183, + "ground_groups": 22, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201056828, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2200850, + "get_misses": 359885, + "evictions": 353526, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 21, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 22.9, + "p95_ms": 22.9, + "p99_ms": 22.9, + "max_ms": 22.9 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 9.58, + "p95_ms": 13.562, + "p99_ms": 16.138, + "max_ms": 27.162 + }, + { + "cycle": 25, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 586956800, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 296518148, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 29810720, + "world_transient": 36222376, + "sky": 0, + "ground": 1097904, + "watercolor": 123240756, + "plane_skin": 41771188, + "paper_items": 17391764 + }, + "cache_items": { + "scaled": 93, + "mips": 1, + "outlines": 0, + "rotations": 181, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 188163116, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2280968, + "get_misses": 372009, + "evictions": 365303, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 23, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 8.232, + "p95_ms": 63.146, + "p99_ms": 63.146, + "max_ms": 63.146 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 6.188, + "p95_ms": 9.121, + "p99_ms": 11.288, + "max_ms": 17.921 + }, + { + "cycle": 26, + "biome": "amazonia", + "contrast": true, + "rss_bytes": 631058432, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 343593536, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 43560428, + "world_transient": 27973736, + "sky": 10904400, + "ground": 2914992, + "watercolor": 119657796, + "plane_skin": 47188552, + "paper_items": 18287804 + }, + "cache_items": { + "scaled": 88, + "mips": 35, + "outlines": 1, + "rotations": 150, + "ground_groups": 12, + "asset_images": 114 + }, + "aggregate_cache_bytes": 201219616, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2366438, + "get_misses": 386970, + "evictions": 380152, + "live_caches": 24 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 19, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 30.288, + "p95_ms": 30.288, + "p99_ms": 30.288, + "max_ms": 30.288 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 16.357, + "p95_ms": 27.411, + "p99_ms": 34.656, + "max_ms": 59.564 + }, + { + "cycle": 27, + "biome": "caatinga", + "contrast": true, + "rss_bytes": 597680128, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 292888976, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 27694624, + "world_transient": 20484952, + "sky": 946000, + "ground": 2914992, + "watercolor": 126058656, + "plane_skin": 48977576, + "paper_items": 18828736 + }, + "cache_items": { + "scaled": 56, + "mips": 1, + "outlines": 1, + "rotations": 77, + "ground_groups": 12, + "asset_images": 114 + }, + "aggregate_cache_bytes": 184586392, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2454082, + "get_misses": 403494, + "evictions": 396468, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 22, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 9.01, + "p95_ms": 80.871, + "p99_ms": 80.871, + "max_ms": 80.871 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 11.311, + "p95_ms": 16.447, + "p99_ms": 19.248, + "max_ms": 27.41 + }, + { + "cycle": 28, + "biome": "amazonia", + "contrast": false, + "rss_bytes": 624242688, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 342507908, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 27051220, + "world_sprite_cache": 39850988, + "world_transient": 39105816, + "sky": 7040000, + "ground": 1097904, + "watercolor": 116255364, + "plane_skin": 45538356, + "paper_items": 20513652 + }, + "cache_items": { + "scaled": 93, + "mips": 26, + "outlines": 0, + "rotations": 194, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 200827028, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2540770, + "get_misses": 416399, + "evictions": 409210, + "live_caches": 23 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 27, + "preparation_frames": 1, + "preparation_frame_cost": { + "median_ms": 16.057, + "p95_ms": 16.057, + "p99_ms": 16.057, + "max_ms": 16.057 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 10.463, + "p95_ms": 15.43, + "p99_ms": 19.786, + "max_ms": 27.809 + }, + { + "cycle": 29, + "biome": "caatinga", + "contrast": false, + "rss_bytes": 599498752, + "loaded_surface_bytes": 46054608, + "loaded_images": 114, + "renderer_caches": { + "unique_retained_surface_bytes": 285268280, + "surface_bytes_by_owner": { + "assets": 46054608, + "scene_sprites": 928832, + "world_sprite_cache": 27173776, + "world_transient": 19237176, + "sky": 0, + "ground": 1097904, + "watercolor": 123083556, + "plane_skin": 44535124, + "paper_items": 23157304 + }, + "cache_items": { + "scaled": 56, + "mips": 1, + "outlines": 0, + "rotations": 74, + "ground_groups": 0, + "asset_images": 114 + }, + "aggregate_cache_bytes": 176994464, + "aggregate_cache_limit_bytes": 201326592, + "aggregate_cache_metrics": { + "get_hits": 2613630, + "get_misses": 427140, + "evictions": 419715, + "live_caches": 22 + }, + "estimate": "global cache budget deduplicates backing surfaces; owner estimates may count subsurfaces repeatedly" + }, + "entities": 22, + "preparation_frames": 15, + "preparation_frame_cost": { + "median_ms": 9.589, + "p95_ms": 84.566, + "p99_ms": 84.566, + "max_ms": 84.566 + }, + "interactive_frames": 2400, + "flight_simulated_seconds": 40.0, + "median_ms": 7.053, + "p95_ms": 10.963, + "p99_ms": 13.708, + "max_ms": 18.1 + } + ], + "camera": false, + "dt_s": 0.016666666666666666, + "scope": "synthetic rendering and scene lifecycle; not physical acceptance", + "wall_seconds": 832.694, + "flight_simulated_seconds": 1200.0, + "failures": [], + "status": "ok" +} diff --git a/docs/validacao-v1.7/desempenho/terreno-antes-da-otimizacao.json b/docs/validacao-v1.7/desempenho/terreno-antes-da-otimizacao.json new file mode 100644 index 0000000..031746d --- /dev/null +++ b/docs/validacao-v1.7/desempenho/terreno-antes-da-otimizacao.json @@ -0,0 +1,49 @@ +{ + "baseline_ref": "12dda71", + "camera": false, + "display": "SDL dummy software surface 1100x650", + "frames_per_case": 80, + "measurement": "painted_ground_only", + "results": { + "amazonia:baseline": { + "distinct_vertical_transitions": 326, + "first_frame_ms": 16.513, + "frames": 80, + "identical_adjacent_rows": 0.2471, + "max_ms": 16.513, + "median_ms": 7.915, + "p95_ms": 12.153, + "sampled_rows": 434 + }, + "amazonia:current": { + "distinct_vertical_transitions": 326, + "first_frame_ms": 17.114, + "frames": 80, + "identical_adjacent_rows": 0.2471, + "max_ms": 17.114, + "median_ms": 7.223, + "p95_ms": 11.175, + "sampled_rows": 434 + }, + "caatinga:baseline": { + "distinct_vertical_transitions": 326, + "first_frame_ms": 7.846, + "frames": 80, + "identical_adjacent_rows": 0.2471, + "max_ms": 7.846, + "median_ms": 2.587, + "p95_ms": 4.161, + "sampled_rows": 434 + }, + "caatinga:current": { + "distinct_vertical_transitions": 326, + "first_frame_ms": 7.934, + "frames": 80, + "identical_adjacent_rows": 0.2471, + "max_ms": 7.934, + "median_ms": 2.367, + "p95_ms": 3.56, + "sampled_rows": 434 + } + } +} diff --git a/docs/validacao-v1.7/desempenho/terreno-versao-1.6.json b/docs/validacao-v1.7/desempenho/terreno-versao-1.6.json new file mode 100644 index 0000000..b83d4d6 --- /dev/null +++ b/docs/validacao-v1.7/desempenho/terreno-versao-1.6.json @@ -0,0 +1,49 @@ +{ + "baseline_ref": "d442c6c", + "camera": false, + "display": "SDL dummy software surface 1100x650", + "frames_per_case": 80, + "measurement": "painted_ground_only", + "results": { + "amazonia:baseline": { + "distinct_vertical_transitions": 165, + "first_frame_ms": 9.277, + "frames": 80, + "identical_adjacent_rows": 0.6189, + "max_ms": 9.277, + "median_ms": 4.085, + "p95_ms": 6.067, + "sampled_rows": 434 + }, + "amazonia:current": { + "distinct_vertical_transitions": 326, + "first_frame_ms": 16.458, + "frames": 80, + "identical_adjacent_rows": 0.2471, + "max_ms": 16.458, + "median_ms": 5.659, + "p95_ms": 8.754, + "sampled_rows": 434 + }, + "caatinga:baseline": { + "distinct_vertical_transitions": 165, + "first_frame_ms": 4.046, + "frames": 80, + "identical_adjacent_rows": 0.6189, + "max_ms": 4.046, + "median_ms": 1.407, + "p95_ms": 1.974, + "sampled_rows": 434 + }, + "caatinga:current": { + "distinct_vertical_transitions": 326, + "first_frame_ms": 6.599, + "frames": 80, + "identical_adjacent_rows": 0.2471, + "max_ms": 6.599, + "median_ms": 2.296, + "p95_ms": 3.362, + "sampled_rows": 434 + } + } +} diff --git a/docs/validacao-v1.7/economia.md b/docs/validacao-v1.7/economia.md new file mode 100644 index 0000000..0c7a48e --- /dev/null +++ b/docs/validacao-v1.7/economia.md @@ -0,0 +1,40 @@ +# Progressão econômica — simulações registradas + +## Escopo + +Este resumo agrega os 18 relatórios JSON da subpasta `economia/`; não executa nem recalcula voos. Cada relatório contém três voos no modo Normal e três no Difícil. O conjunto cobre três configurações do mesmo agente sintético (`dynamic-position-agent-v1`), dois biomas (Amazônia e Caatinga) e três sementes iniciais (1, 101 e 201): 3 × 2 × 3 relatórios e 108 voos. As sementes seguintes e os resultados de cada voo estão nos JSONs. + +As configurações são **base** (assistência padrão e decisões/percepção intermediárias), **explorar-lento** (exploração, menor tentativa de coleta, mais erros deliberados e reação mais lenta) e **preciso-sem-apoio** (apoio desligado, maior tentativa de coleta, menos erros e reação mais rápida). As latências simuladas são 0,25 s na base, 0,35 s em explorar-lento e 0,10 s em preciso-sem-apoio. Cada voo tem limite de 45 s ativos, mas pode terminar antes por perda de vidas ou interrupção. Cada arquivo registra os parâmetros usados. + +Durante o voo ativo, a cidade recupera 1 ponto percentual por segundo, até 100%. Coletas aceleram essa transformação e trazem recursos e pontos; peças continuam exigindo sua compra no hangar. O progresso pelo tempo não gera esses itens nem acelera o avião. Pausas, menus e carregamento não contam como voo ativo. Ao chegar a 100%, a cidade permanece transformada, mas o voo seguinte continua normalmente. + +## Transformação e conclusão + +“Ganho por voo” é a diferença entre a transformação global final e inicial daquele voo. “Cidade ao fim” resume o valor final entre os 18 voos de cada configuração e modo; valores repetidos de 100% aparecem porque alcançar esse limite não encerra voos posteriores. Os números são pontos percentuais. “Concluiu” conta as seis sequências de três voos (uma por combinação de bioma e semente) que cruzaram 100% até o terceiro voo. + +| Configuração | Modo | Ganho por voo, mín. / mediana / máx. | Cidade ao fim, mín. / mediana / máx. | Sequências que cruzaram 100% até 3 voos | +|---|---|---:|---:|---:| +| Base | Normal | 0 / 8,5 / 91 | 88 / 100 / 100 | 6 de 6 | +| Base | Difícil | 0 / 0 / 95 | 100 / 100 / 100 | 6 de 6 | +| Explorar-lento | Normal | 0 / 23 / 76,5 | 73,5 / 100 / 100 | 6 de 6 | +| Explorar-lento | Difícil | 0 / 0 / 95 | 100 / 100 / 100 | 6 de 6 | +| Preciso-sem-apoio | Normal | 0 / 27,5 / 70,1 | 55,9 / 100 / 100 | 6 de 6 | +| Preciso-sem-apoio | Difícil | 0 / 26,8 / 95 | 65,9 / 100 / 100 | 6 de 6 | + +As 18 sequências Normal cruzaram 100% no segundo voo. No Difícil, 14 das 18 cruzaram no primeiro e quatro no segundo. O tempo ativo acumulado até 100% variou por configuração: Base, 0,87–0,93 min no Normal (mediana 0,87) e 0,52–0,64 min no Difícil (0,60); Explorar-lento, 1,02–1,03 min no Normal (1,02) e 0,58–0,70 min no Difícil (0,68); Preciso-sem-apoio, 0,89–1,06 min no Normal (0,95) e 0,56–0,77 min no Difícil (0,68). São tempos deste agente parametrizado, não uma previsão de duração para crianças. + +## Primeiras obras + +O **Ponto de troca** foi registrado nas seis sequências de cada configuração e modo até o terceiro voo. No Normal, surgiu entre o primeiro e o terceiro voo; no Difícil, entre o primeiro e o segundo. A **Horta** apareceu em 0/6 sequências Base Normal, 6/6 Base Difícil, 0/6 Explorar-lento Normal, 6/6 Explorar-lento Difícil, 0/6 Preciso-sem-apoio Normal e 1/6 Preciso-sem-apoio Difícil. Nessas trajetórias, chegar a 100% e reunir materiais para obras são resultados distintos: a recuperação contínua não fornece recursos. + +## Limites de interpretação + +Os 108 voos foram produzidos pelo mesmo modelo de controle sintético, com coleta, erro deliberado, reação, exploração e apoio configurados por cenário. O agente simplifica a aproximação a alvos de rota com um obstáculo; não é uma pessoa, não representa a variabilidade motora ou decisória infantil e não foi validado como modelo de usuário. Os relatórios também registram colisões, coletas e recursos, mas esses números não medem diversão, compreensão, alcance físico, acessibilidade ou esforço. A aceitação da economia requer ensaio com crianças e observação presencial; as simulações não substituem essa avaliação. + +## Dados-fonte + +- [Base — Amazônia](economia/base-amazonia-1.json), [Base — Caatinga](economia/base-caatinga-1.json); os sufixos `101` e `201` identificam as outras sementes iniciais. +- [Explorar-lento — Amazônia](economia/explorar-lento-amazonia-1.json), [Explorar-lento — Caatinga](economia/explorar-lento-caatinga-1.json). +- [Preciso-sem-apoio — Amazônia](economia/preciso-sem-apoio-amazonia-1.json), [Preciso-sem-apoio — Caatinga](economia/preciso-sem-apoio-caatinga-1.json). + +Os seis links ilustram os cruzamentos; para os demais dados, consulte os arquivos irmãos com sufixo `101` e `201`. diff --git a/docs/validacao-v1.7/economia/base-amazonia-1.json b/docs/validacao-v1.7/economia/base-amazonia-1.json new file mode 100644 index 0000000..82264d1 --- /dev/null +++ b/docs/validacao-v1.7/economia/base-amazonia-1.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.5, + "deliberate_decision_error_probability": 0.1, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.5, + "input_latency_seconds": 0.25, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 1 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 5.333333333333333, + "metal": 8.666666666666666, + "vidro": 8.666666666666666 + }, + "dificil": { + "papel": 14.666666666666666, + "plastico": 18.333333333333332, + "metal": 17.0, + "vidro": 15.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.87, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.64, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 2 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 1, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.039, + "stage_times_s": [ + 15.183, + 34.167 + ], + "restoration": 96.02, + "city_restoration_at_start": 5.0, + "local_restoration": 17.8, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 12, + "metal": 18, + "vidro": 14 + }, + "resource_total": 52, + "collected": 10, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 4, + "sem_rota_simplificada": 2, + "nao_tentadas": 12, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 2, + "seconds_active": 6.983, + "seconds_wall": 6.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 96.02, + "local_restoration": 6.18, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "resource_total": 4, + "collected": 1, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 0, + "alvos_de_coleta": 2 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 3, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.094, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 13.26, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 8, + "vidro": 12 + }, + "resource_total": 28, + "collected": 7, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 3, + "sem_rota_simplificada": 2, + "nao_tentadas": 11, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 1, + "seconds_active": 38.4, + "seconds_wall": 38.4, + "max_player_displacement": 218.943, + "stage_times_s": [ + 10.767, + 24.417 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.72, + "stars": 2, + "resources": { + "papel": 14, + "plastico": 13, + "metal": 16, + "vidro": 10 + }, + "resource_total": 53, + "collected": 41, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 7, + "nao_tentadas": 41, + "alvos_de_coleta": 28 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 2, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 209.907, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 14.48, + "stars": 2, + "resources": { + "papel": 18, + "plastico": 18, + "metal": 20, + "vidro": 27 + }, + "resource_total": 83, + "collected": 71, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 2, + "sem_rota_simplificada": 9, + "nao_tentadas": 17, + "alvos_de_coleta": 16 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 3, + "seconds_active": 30.5, + "seconds_wall": 30.5, + "max_player_displacement": 229.865, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 11.61, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 24, + "metal": 15, + "vidro": 9 + }, + "resource_total": 60, + "collected": 48, + "hits": 5, + "max_lives": 5, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 6, + "sem_rota_simplificada": 6, + "nao_tentadas": 18, + "alvos_de_coleta": 21 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/base-amazonia-101.json b/docs/validacao-v1.7/economia/base-amazonia-101.json new file mode 100644 index 0000000..83087c2 --- /dev/null +++ b/docs/validacao-v1.7/economia/base-amazonia-101.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.5, + "deliberate_decision_error_probability": 0.1, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.5, + "input_latency_seconds": 0.25, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 101 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 5.333333333333333, + "metal": 10.666666666666666, + "vidro": 6.666666666666667 + }, + "dificil": { + "papel": 13.666666666666666, + "plastico": 19.666666666666668, + "metal": 14.666666666666666, + "vidro": 14.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.93, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.6, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 101, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.088, + "stage_times_s": [ + 14.833, + 34.15 + ], + "restoration": 88.02, + "city_restoration_at_start": 5.0, + "local_restoration": 16.44, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 8, + "metal": 12, + "vidro": 8 + }, + "resource_total": 32, + "collected": 8, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 8, + "sem_rota_simplificada": 1, + "nao_tentadas": 8, + "alvos_de_coleta": 7 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 102, + "seconds_active": 10.483, + "seconds_wall": 10.483, + "max_player_displacement": 219.704, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 88.02, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 3 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.094, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 17.98, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 4, + "metal": 16, + "vidro": 12 + }, + "resource_total": 44, + "collected": 11, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 5, + "sem_rota_simplificada": 1, + "nao_tentadas": 8, + "alvos_de_coleta": 14 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 101, + "seconds_active": 35.8, + "seconds_wall": 35.8, + "max_player_displacement": 224.234, + "stage_times_s": [ + 13.1, + 27.033 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.99, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 20, + "metal": 11, + "vidro": 9 + }, + "resource_total": 52, + "collected": 46, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 10, + "sem_rota_simplificada": 3, + "nao_tentadas": 22, + "alvos_de_coleta": 22 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 102, + "seconds_active": 40.85, + "seconds_wall": 40.85, + "max_player_displacement": 221.484, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.5, + "stars": 2, + "resources": { + "papel": 14, + "plastico": 17, + "metal": 16, + "vidro": 22 + }, + "resource_total": 69, + "collected": 51, + "hits": 6, + "max_lives": 5, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 7, + "sem_rota_simplificada": 10, + "nao_tentadas": 23, + "alvos_de_coleta": 25 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 227.968, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.19, + "stars": 2, + "resources": { + "papel": 15, + "plastico": 22, + "metal": 17, + "vidro": 12 + }, + "resource_total": 66, + "collected": 48, + "hits": 3, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 12, + "sem_rota_simplificada": 6, + "nao_tentadas": 24, + "alvos_de_coleta": 34 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/base-amazonia-201.json b/docs/validacao-v1.7/economia/base-amazonia-201.json new file mode 100644 index 0000000..c7cf280 --- /dev/null +++ b/docs/validacao-v1.7/economia/base-amazonia-201.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.5, + "deliberate_decision_error_probability": 0.1, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.5, + "input_latency_seconds": 0.25, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 201 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 2.6666666666666665, + "metal": 8.666666666666666, + "vidro": 4.666666666666667 + }, + "dificil": { + "papel": 17.0, + "plastico": 19.333333333333332, + "metal": 20.333333333333332, + "vidro": 18.333333333333332 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.87, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.52, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 201, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 225.862, + "stage_times_s": [ + 15.083, + 34.667 + ], + "restoration": 91.52, + "city_restoration_at_start": 5.0, + "local_restoration": 16.62, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 4, + "metal": 22, + "vidro": 14 + }, + "resource_total": 48, + "collected": 9, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 1, + "nao_tentadas": 2, + "alvos_de_coleta": 9 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 202, + "seconds_active": 6.983, + "seconds_wall": 6.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 91.52, + "local_restoration": 6.18, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "resource_total": 4, + "collected": 1, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 1, + "alvos_de_coleta": 2 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.764, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 2, + "max_lives": 5, + "lives_left": 3, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 1, + "nao_tentadas": 9, + "alvos_de_coleta": 4 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 201, + "seconds_active": 31.2, + "seconds_wall": 31.2, + "max_player_displacement": 230.598, + "stage_times_s": [ + 13.333, + 18.917 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.88, + "stars": 2, + "resources": { + "papel": 9, + "plastico": 9, + "metal": 16, + "vidro": 17 + }, + "resource_total": 51, + "collected": 45, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 5, + "sem_rota_simplificada": 4, + "nao_tentadas": 11, + "alvos_de_coleta": 18 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 202, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 219.954, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.03, + "stars": 2, + "resources": { + "papel": 16, + "plastico": 15, + "metal": 6, + "vidro": 10 + }, + "resource_total": 47, + "collected": 35, + "hits": 6, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 6, + "sem_rota_simplificada": 9, + "nao_tentadas": 17, + "alvos_de_coleta": 20 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.665, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 19.75, + "stars": 2, + "resources": { + "papel": 26, + "plastico": 34, + "metal": 39, + "vidro": 28 + }, + "resource_total": 127, + "collected": 109, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 8, + "sem_rota_simplificada": 9, + "nao_tentadas": 32, + "alvos_de_coleta": 24 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/base-caatinga-1.json b/docs/validacao-v1.7/economia/base-caatinga-1.json new file mode 100644 index 0000000..3628042 --- /dev/null +++ b/docs/validacao-v1.7/economia/base-caatinga-1.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.5, + "deliberate_decision_error_probability": 0.1, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.5, + "input_latency_seconds": 0.25, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 1 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 5.333333333333333, + "metal": 8.666666666666666, + "vidro": 8.666666666666666 + }, + "dificil": { + "papel": 15.333333333333334, + "plastico": 19.0, + "metal": 17.666666666666668, + "vidro": 16.333333333333332 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.87, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.64, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 2 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 1, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.039, + "stage_times_s": [ + 15.183, + 34.167 + ], + "restoration": 96.02, + "city_restoration_at_start": 5.0, + "local_restoration": 17.8, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 12, + "metal": 18, + "vidro": 14 + }, + "resource_total": 52, + "collected": 10, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 4, + "sem_rota_simplificada": 2, + "nao_tentadas": 12, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 2, + "seconds_active": 6.983, + "seconds_wall": 6.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 96.02, + "local_restoration": 6.18, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "resource_total": 4, + "collected": 1, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 0, + "alvos_de_coleta": 2 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 3, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.094, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 13.26, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 8, + "vidro": 12 + }, + "resource_total": 28, + "collected": 7, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 3, + "sem_rota_simplificada": 2, + "nao_tentadas": 11, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 1, + "seconds_active": 38.4, + "seconds_wall": 38.4, + "max_player_displacement": 218.943, + "stage_times_s": [ + 10.767, + 24.417 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.72, + "stars": 2, + "resources": { + "papel": 14, + "plastico": 13, + "metal": 16, + "vidro": 10 + }, + "resource_total": 53, + "collected": 41, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 7, + "nao_tentadas": 41, + "alvos_de_coleta": 28 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 2, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 209.907, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 14.48, + "stars": 2, + "resources": { + "papel": 18, + "plastico": 18, + "metal": 20, + "vidro": 27 + }, + "resource_total": 83, + "collected": 71, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 2, + "sem_rota_simplificada": 9, + "nao_tentadas": 17, + "alvos_de_coleta": 16 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 3, + "seconds_active": 32.517, + "seconds_wall": 32.517, + "max_player_displacement": 229.865, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.65, + "stars": 2, + "resources": { + "papel": 14, + "plastico": 26, + "metal": 17, + "vidro": 12 + }, + "resource_total": 69, + "collected": 57, + "hits": 5, + "max_lives": 5, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 8, + "sem_rota_simplificada": 6, + "nao_tentadas": 23, + "alvos_de_coleta": 25 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/base-caatinga-101.json b/docs/validacao-v1.7/economia/base-caatinga-101.json new file mode 100644 index 0000000..dd80120 --- /dev/null +++ b/docs/validacao-v1.7/economia/base-caatinga-101.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.5, + "deliberate_decision_error_probability": 0.1, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.5, + "input_latency_seconds": 0.25, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 101 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 5.333333333333333, + "metal": 9.333333333333334, + "vidro": 4.0 + }, + "dificil": { + "papel": 11.333333333333334, + "plastico": 17.333333333333332, + "metal": 10.0, + "vidro": 9.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.93, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.6, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 101, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 234.088, + "stage_times_s": [ + 14.833, + 34.15 + ], + "restoration": 88.02, + "city_restoration_at_start": 5.0, + "local_restoration": 16.44, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 8, + "metal": 12, + "vidro": 8 + }, + "resource_total": 32, + "collected": 8, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 8, + "sem_rota_simplificada": 1, + "nao_tentadas": 8, + "alvos_de_coleta": 7 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 102, + "seconds_active": 10.483, + "seconds_wall": 10.483, + "max_player_displacement": 219.704, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 88.02, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 3 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 13.26, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 4, + "metal": 12, + "vidro": 4 + }, + "resource_total": 28, + "collected": 7, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 4, + "sem_rota_simplificada": 0, + "nao_tentadas": 7, + "alvos_de_coleta": 10 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 101, + "seconds_active": 35.8, + "seconds_wall": 35.8, + "max_player_displacement": 224.234, + "stage_times_s": [ + 13.1, + 27.033 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.99, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 20, + "metal": 11, + "vidro": 9 + }, + "resource_total": 52, + "collected": 46, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 10, + "sem_rota_simplificada": 3, + "nao_tentadas": 22, + "alvos_de_coleta": 22 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 102, + "seconds_active": 34.85, + "seconds_wall": 34.85, + "max_player_displacement": 230.514, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 7.8, + "stars": 2, + "resources": { + "papel": 7, + "plastico": 10, + "metal": 2, + "vidro": 7 + }, + "resource_total": 26, + "collected": 20, + "hits": 5, + "max_lives": 5, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 7, + "sem_rota_simplificada": 6, + "nao_tentadas": 13, + "alvos_de_coleta": 15 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 227.968, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.19, + "stars": 2, + "resources": { + "papel": 15, + "plastico": 22, + "metal": 17, + "vidro": 12 + }, + "resource_total": 66, + "collected": 48, + "hits": 3, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 12, + "sem_rota_simplificada": 6, + "nao_tentadas": 24, + "alvos_de_coleta": 34 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/base-caatinga-201.json b/docs/validacao-v1.7/economia/base-caatinga-201.json new file mode 100644 index 0000000..187738d --- /dev/null +++ b/docs/validacao-v1.7/economia/base-caatinga-201.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.5, + "deliberate_decision_error_probability": 0.1, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.5, + "input_latency_seconds": 0.25, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 201 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 2.6666666666666665, + "metal": 7.333333333333333, + "vidro": 4.666666666666667 + }, + "dificil": { + "papel": 16.666666666666668, + "plastico": 19.333333333333332, + "metal": 20.0, + "vidro": 17.666666666666668 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.87, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.52, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 201, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 225.862, + "stage_times_s": [ + 15.083, + 34.667 + ], + "restoration": 91.52, + "city_restoration_at_start": 5.0, + "local_restoration": 16.62, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 4, + "metal": 22, + "vidro": 14 + }, + "resource_total": 48, + "collected": 9, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 1, + "nao_tentadas": 2, + "alvos_de_coleta": 9 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 202, + "seconds_active": 6.983, + "seconds_wall": 6.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 91.52, + "local_restoration": 6.18, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "resource_total": 4, + "collected": 1, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 1, + "alvos_de_coleta": 2 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.764, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 6.18, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 4, + "metal": 0, + "vidro": 0 + }, + "resource_total": 4, + "collected": 1, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 1, + "nao_tentadas": 9, + "alvos_de_coleta": 4 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 201, + "seconds_active": 31.2, + "seconds_wall": 31.2, + "max_player_displacement": 230.598, + "stage_times_s": [ + 13.333, + 18.917 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.88, + "stars": 2, + "resources": { + "papel": 9, + "plastico": 9, + "metal": 16, + "vidro": 17 + }, + "resource_total": 51, + "collected": 45, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 5, + "sem_rota_simplificada": 4, + "nao_tentadas": 11, + "alvos_de_coleta": 18 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 202, + "seconds_active": 36.567, + "seconds_wall": 36.567, + "max_player_displacement": 202.971, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 8.61, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 13, + "metal": 4, + "vidro": 8 + }, + "resource_total": 33, + "collected": 27, + "hits": 6, + "max_lives": 5, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 3, + "sem_rota_simplificada": 7, + "nao_tentadas": 13, + "alvos_de_coleta": 17 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.666, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 20.75, + "stars": 2, + "resources": { + "papel": 33, + "plastico": 36, + "metal": 40, + "vidro": 28 + }, + "resource_total": 137, + "collected": 113, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 8, + "sem_rota_simplificada": 9, + "nao_tentadas": 32, + "alvos_de_coleta": 24 + }, + "exploration": false, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/explorar-lento-amazonia-1.json b/docs/validacao-v1.7/economia/explorar-lento-amazonia-1.json new file mode 100644 index 0000000..a0737f6 --- /dev/null +++ b/docs/validacao-v1.7/economia/explorar-lento-amazonia-1.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.35, + "deliberate_decision_error_probability": 0.25, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.8, + "input_latency_seconds": 0.35, + "exploration": true, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 1 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 4.0, + "metal": 7.333333333333333, + "vidro": 6.0 + }, + "dificil": { + "papel": 12.0, + "plastico": 21.0, + "metal": 11.666666666666666, + "vidro": 11.666666666666666 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.02, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.68, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 1, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.927, + "stage_times_s": [ + 19.333, + 41.15 + ], + "restoration": 73.52, + "city_restoration_at_start": 5.0, + "local_restoration": 11.9, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 4, + "metal": 10, + "vidro": 10 + }, + "resource_total": 32, + "collected": 5, + "hits": 4, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 1, + "nao_tentadas": 14, + "alvos_de_coleta": 7 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 2, + "seconds_active": 15.983, + "seconds_wall": 15.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 73.52, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 12, + "collected": 3, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 0, + "nao_tentadas": 5, + "alvos_de_coleta": 4 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 3, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 8, + "vidro": 8 + }, + "resource_total": 24, + "collected": 6, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 1, + "nao_tentadas": 12, + "alvos_de_coleta": 5 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 1, + "seconds_active": 40.567, + "seconds_wall": 40.567, + "max_player_displacement": 233.72, + "stage_times_s": [ + 11.067, + 25.167 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 11.18, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 22, + "metal": 16, + "vidro": 11 + }, + "resource_total": 57, + "collected": 45, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 16, + "sem_rota_simplificada": 6, + "nao_tentadas": 49, + "alvos_de_coleta": 33 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 2, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 231.007, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 11.62, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 17, + "metal": 11, + "vidro": 18 + }, + "resource_total": 58, + "collected": 52, + "hits": 4, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 17, + "sem_rota_simplificada": 8, + "nao_tentadas": 70, + "alvos_de_coleta": 27 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 3, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.933, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.83, + "stars": 2, + "resources": { + "papel": 16, + "plastico": 24, + "metal": 8, + "vidro": 6 + }, + "resource_total": 54, + "collected": 42, + "hits": 7, + "max_lives": 5, + "lives_left": 3, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 31, + "sem_rota_simplificada": 9, + "nao_tentadas": 66, + "alvos_de_coleta": 28 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/explorar-lento-amazonia-101.json b/docs/validacao-v1.7/economia/explorar-lento-amazonia-101.json new file mode 100644 index 0000000..5f1d229 --- /dev/null +++ b/docs/validacao-v1.7/economia/explorar-lento-amazonia-101.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.35, + "deliberate_decision_error_probability": 0.25, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.8, + "input_latency_seconds": 0.35, + "exploration": true, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 101 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 4.0, + "metal": 5.333333333333333, + "vidro": 5.333333333333333 + }, + "dificil": { + "papel": 15.0, + "plastico": 23.666666666666668, + "metal": 15.0, + "vidro": 12.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.02, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.58, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 101, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 230.466, + "stage_times_s": [ + 15.083, + 34.667 + ], + "restoration": 77.02, + "city_restoration_at_start": 5.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 12, + "vidro": 8 + }, + "resource_total": 24, + "collected": 6, + "hits": 1, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 10, + "sem_rota_simplificada": 1, + "nao_tentadas": 10, + "alvos_de_coleta": 6 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 102, + "seconds_active": 16.0, + "seconds_wall": 16.0, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 77.02, + "local_restoration": 9.72, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 8, + "metal": 4, + "vidro": 4 + }, + "resource_total": 16, + "collected": 4, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 2, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.9, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 4, + "metal": 0, + "vidro": 4 + }, + "resource_total": 20, + "collected": 5, + "hits": 2, + "max_lives": 5, + "lives_left": 3, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 0, + "nao_tentadas": 8, + "alvos_de_coleta": 6 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 101, + "seconds_active": 34.95, + "seconds_wall": 34.95, + "max_player_displacement": 230.506, + "stage_times_s": [ + 13.983, + 27.033 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 11.4, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 21, + "metal": 13, + "vidro": 9 + }, + "resource_total": 55, + "collected": 49, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 22, + "sem_rota_simplificada": 3, + "nao_tentadas": 49, + "alvos_de_coleta": 28 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 102, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.587, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 11.14, + "stars": 2, + "resources": { + "papel": 13, + "plastico": 23, + "metal": 10, + "vidro": 14 + }, + "resource_total": 60, + "collected": 36, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 24, + "sem_rota_simplificada": 11, + "nao_tentadas": 64, + "alvos_de_coleta": 33 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.893, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 14.11, + "stars": 2, + "resources": { + "papel": 20, + "plastico": 27, + "metal": 22, + "vidro": 14 + }, + "resource_total": 83, + "collected": 65, + "hits": 5, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 26, + "sem_rota_simplificada": 5, + "nao_tentadas": 53, + "alvos_de_coleta": 30 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/explorar-lento-amazonia-201.json b/docs/validacao-v1.7/economia/explorar-lento-amazonia-201.json new file mode 100644 index 0000000..6a99918 --- /dev/null +++ b/docs/validacao-v1.7/economia/explorar-lento-amazonia-201.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.35, + "deliberate_decision_error_probability": 0.25, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.8, + "input_latency_seconds": 0.35, + "exploration": true, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 201 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 2.6666666666666665, + "metal": 8.0, + "vidro": 1.3333333333333333 + }, + "dificil": { + "papel": 11.666666666666666, + "plastico": 15.333333333333334, + "metal": 16.333333333333332, + "vidro": 14.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.03, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.7, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 201, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.82, + "stage_times_s": [ + 19.333, + 38.8 + ], + "restoration": 81.52, + "city_restoration_at_start": 5.0, + "local_restoration": 13.26, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 16, + "vidro": 4 + }, + "resource_total": 28, + "collected": 7, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 3, + "sem_rota_simplificada": 1, + "nao_tentadas": 8, + "alvos_de_coleta": 7 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 202, + "seconds_active": 16.983, + "seconds_wall": 16.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 81.52, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 4, + "alvos_de_coleta": 4 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 12, + "collected": 3, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 4, + "sem_rota_simplificada": 1, + "nao_tentadas": 17, + "alvos_de_coleta": 2 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 201, + "seconds_active": 41.85, + "seconds_wall": 41.85, + "max_player_displacement": 233.903, + "stage_times_s": [ + 14.7, + 26.3 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.77, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 9, + "metal": 16, + "vidro": 14 + }, + "resource_total": 51, + "collected": 45, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 19, + "sem_rota_simplificada": 5, + "nao_tentadas": 52, + "alvos_de_coleta": 23 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 202, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 232.256, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 9.76, + "stars": 2, + "resources": { + "papel": 6, + "plastico": 17, + "metal": 7, + "vidro": 13 + }, + "resource_total": 43, + "collected": 37, + "hits": 7, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 20, + "sem_rota_simplificada": 6, + "nao_tentadas": 62, + "alvos_de_coleta": 25 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.774, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 13.92, + "stars": 2, + "resources": { + "papel": 17, + "plastico": 20, + "metal": 26, + "vidro": 16 + }, + "resource_total": 79, + "collected": 61, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 18, + "sem_rota_simplificada": 9, + "nao_tentadas": 52, + "alvos_de_coleta": 24 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/explorar-lento-caatinga-1.json b/docs/validacao-v1.7/economia/explorar-lento-caatinga-1.json new file mode 100644 index 0000000..65ac161 --- /dev/null +++ b/docs/validacao-v1.7/economia/explorar-lento-caatinga-1.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.35, + "deliberate_decision_error_probability": 0.25, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.8, + "input_latency_seconds": 0.35, + "exploration": true, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 1 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 4.0, + "metal": 7.333333333333333, + "vidro": 6.0 + }, + "dificil": { + "papel": 13.0, + "plastico": 21.666666666666668, + "metal": 14.666666666666666, + "vidro": 15.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.02, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.68, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 1, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.927, + "stage_times_s": [ + 19.333, + 41.15 + ], + "restoration": 73.52, + "city_restoration_at_start": 5.0, + "local_restoration": 11.9, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 4, + "metal": 10, + "vidro": 10 + }, + "resource_total": 32, + "collected": 5, + "hits": 4, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 1, + "nao_tentadas": 14, + "alvos_de_coleta": 7 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 2, + "seconds_active": 15.983, + "seconds_wall": 15.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 73.52, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 12, + "collected": 3, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 0, + "nao_tentadas": 5, + "alvos_de_coleta": 4 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 3, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 8, + "vidro": 8 + }, + "resource_total": 24, + "collected": 6, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 1, + "nao_tentadas": 12, + "alvos_de_coleta": 5 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 1, + "seconds_active": 40.567, + "seconds_wall": 40.567, + "max_player_displacement": 233.72, + "stage_times_s": [ + 11.067, + 25.167 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 11.18, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 22, + "metal": 16, + "vidro": 11 + }, + "resource_total": 57, + "collected": 45, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 16, + "sem_rota_simplificada": 6, + "nao_tentadas": 49, + "alvos_de_coleta": 33 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 2, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 231.007, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 11.62, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 17, + "metal": 11, + "vidro": 18 + }, + "resource_total": 58, + "collected": 52, + "hits": 4, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 17, + "sem_rota_simplificada": 8, + "nao_tentadas": 70, + "alvos_de_coleta": 27 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 3, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.878, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 13.72, + "stars": 2, + "resources": { + "papel": 19, + "plastico": 26, + "metal": 17, + "vidro": 17 + }, + "resource_total": 79, + "collected": 67, + "hits": 7, + "max_lives": 5, + "lives_left": 3, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 35, + "sem_rota_simplificada": 12, + "nao_tentadas": 76, + "alvos_de_coleta": 32 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/explorar-lento-caatinga-101.json b/docs/validacao-v1.7/economia/explorar-lento-caatinga-101.json new file mode 100644 index 0000000..d143e46 --- /dev/null +++ b/docs/validacao-v1.7/economia/explorar-lento-caatinga-101.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.35, + "deliberate_decision_error_probability": 0.25, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.8, + "input_latency_seconds": 0.35, + "exploration": true, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 101 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 4.0, + "metal": 5.333333333333333, + "vidro": 5.333333333333333 + }, + "dificil": { + "papel": 14.333333333333334, + "plastico": 23.0, + "metal": 15.333333333333334, + "vidro": 12.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.02, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.58, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 101, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 230.466, + "stage_times_s": [ + 15.083, + 34.667 + ], + "restoration": 77.02, + "city_restoration_at_start": 5.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 12, + "vidro": 8 + }, + "resource_total": 24, + "collected": 6, + "hits": 1, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 10, + "sem_rota_simplificada": 1, + "nao_tentadas": 10, + "alvos_de_coleta": 6 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 102, + "seconds_active": 16.0, + "seconds_wall": 16.0, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 77.02, + "local_restoration": 9.72, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 8, + "metal": 4, + "vidro": 4 + }, + "resource_total": 16, + "collected": 4, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 2, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.9, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 4, + "metal": 0, + "vidro": 4 + }, + "resource_total": 20, + "collected": 5, + "hits": 1, + "max_lives": 5, + "lives_left": 4, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 9, + "sem_rota_simplificada": 0, + "nao_tentadas": 8, + "alvos_de_coleta": 6 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 101, + "seconds_active": 34.95, + "seconds_wall": 34.95, + "max_player_displacement": 230.506, + "stage_times_s": [ + 13.983, + 27.033 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 11.4, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 21, + "metal": 13, + "vidro": 9 + }, + "resource_total": 55, + "collected": 49, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 22, + "sem_rota_simplificada": 3, + "nao_tentadas": 49, + "alvos_de_coleta": 28 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 102, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.587, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.8, + "stars": 2, + "resources": { + "papel": 11, + "plastico": 21, + "metal": 11, + "vidro": 14 + }, + "resource_total": 57, + "collected": 33, + "hits": 6, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 24, + "sem_rota_simplificada": 10, + "nao_tentadas": 62, + "alvos_de_coleta": 32 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.893, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 14.11, + "stars": 2, + "resources": { + "papel": 20, + "plastico": 27, + "metal": 22, + "vidro": 14 + }, + "resource_total": 83, + "collected": 65, + "hits": 5, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 26, + "sem_rota_simplificada": 5, + "nao_tentadas": 53, + "alvos_de_coleta": 30 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/explorar-lento-caatinga-201.json b/docs/validacao-v1.7/economia/explorar-lento-caatinga-201.json new file mode 100644 index 0000000..07f5ea3 --- /dev/null +++ b/docs/validacao-v1.7/economia/explorar-lento-caatinga-201.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.35, + "deliberate_decision_error_probability": 0.25, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.8, + "input_latency_seconds": 0.35, + "exploration": true, + "assistance": false, + "assistance_choice_already_made": false, + "flight_count_per_mode": 3, + "seed_start": 201 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 2.6666666666666665, + "metal": 8.0, + "vidro": 1.3333333333333333 + }, + "dificil": { + "papel": 14.0, + "plastico": 16.333333333333332, + "metal": 17.0, + "vidro": 14.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.03, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.7, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 201, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 233.82, + "stage_times_s": [ + 19.333, + 38.8 + ], + "restoration": 81.52, + "city_restoration_at_start": 5.0, + "local_restoration": 13.26, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 16, + "vidro": 4 + }, + "resource_total": 28, + "collected": 7, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 3, + "sem_rota_simplificada": 1, + "nao_tentadas": 8, + "alvos_de_coleta": 7 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 202, + "seconds_active": 16.983, + "seconds_wall": 16.983, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 81.52, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 0, + "max_lives": 5, + "lives_left": 5, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 4, + "alvos_de_coleta": 4 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 4, + "vidro": 0 + }, + "resource_total": 12, + "collected": 3, + "hits": 3, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 4, + "sem_rota_simplificada": 1, + "nao_tentadas": 17, + "alvos_de_coleta": 2 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 201, + "seconds_active": 41.85, + "seconds_wall": 41.85, + "max_player_displacement": 233.903, + "stage_times_s": [ + 14.7, + 26.3 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 10.77, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 9, + "metal": 16, + "vidro": 14 + }, + "resource_total": 51, + "collected": 45, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 19, + "sem_rota_simplificada": 5, + "nao_tentadas": 52, + "alvos_de_coleta": 23 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 1, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 202, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 232.256, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 9.87, + "stars": 2, + "resources": { + "papel": 7, + "plastico": 16, + "metal": 7, + "vidro": 14 + }, + "resource_total": 44, + "collected": 38, + "hits": 5, + "max_lives": 5, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 20, + "sem_rota_simplificada": 6, + "nao_tentadas": 62, + "alvos_de_coleta": 25 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 2, + "default_assistance": true + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.774, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 15.06, + "stars": 2, + "resources": { + "papel": 23, + "plastico": 24, + "metal": 28, + "vidro": 15 + }, + "resource_total": 90, + "collected": 66, + "hits": 4, + "max_lives": 5, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 18, + "sem_rota_simplificada": 9, + "nao_tentadas": 52, + "alvos_de_coleta": 24 + }, + "exploration": true, + "assistance": true, + "trajectory_index": 3, + "default_assistance": true + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-1.json b/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-1.json new file mode 100644 index 0000000..33b18d0 --- /dev/null +++ b/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-1.json @@ -0,0 +1,320 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.7, + "deliberate_decision_error_probability": 0.02, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.25, + "input_latency_seconds": 0.1, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": true, + "flight_count_per_mode": 3, + "seed_start": 1 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 9.333333333333334, + "metal": 6.666666666666667, + "vidro": 1.3333333333333333 + }, + "dificil": { + "papel": 4.0, + "plastico": 6.666666666666667, + "metal": 8.333333333333334, + "vidro": 6.666666666666667 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.89, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 2, + "active_minutes_until_complete": 0.68, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 1, + "seconds_active": 28.4, + "seconds_wall": 28.4, + "max_player_displacement": 221.775, + "stage_times_s": [ + 14.833 + ], + "restoration": 55.9, + "city_restoration_at_start": 5.0, + "local_restoration": 10.9, + "stars": 1, + "resources": { + "papel": 4, + "plastico": 12, + "metal": 4, + "vidro": 0 + }, + "resource_total": 20, + "collected": 5, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 2, + "nao_tentadas": 5, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 2, + "seconds_active": 25.067, + "seconds_wall": 25.067, + "max_player_displacement": 221.775, + "stage_times_s": [ + 6.267 + ], + "restoration": 100.0, + "city_restoration_at_start": 55.9, + "local_restoration": 10.9, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 8, + "metal": 8, + "vidro": 0 + }, + "resource_total": 20, + "collected": 5, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 3, + "alvos_de_coleta": 7 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 3, + "seconds_active": 43.767, + "seconds_wall": 43.767, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 8, + "metal": 8, + "vidro": 4 + }, + "resource_total": 24, + "collected": 6, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 2, + "nao_tentadas": 6, + "alvos_de_coleta": 6 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 1, + "seconds_active": 26.733, + "seconds_wall": 26.733, + "max_player_displacement": 186.052, + "stage_times_s": [ + 11.067, + 25.167 + ], + "restoration": 73.23, + "city_restoration_at_start": 5.0, + "local_restoration": 9.11, + "stars": 2, + "resources": { + "papel": 6, + "plastico": 12, + "metal": 15, + "vidro": 6 + }, + "resource_total": 39, + "collected": 27, + "hits": 4, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 6, + "nao_tentadas": 5, + "alvos_de_coleta": 16 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 2, + "seconds_active": 14.35, + "seconds_wall": 14.35, + "max_player_displacement": 184.176, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 73.23, + "local_restoration": 7.57, + "stars": 2, + "resources": { + "papel": 3, + "plastico": 5, + "metal": 4, + "vidro": 12 + }, + "resource_total": 24, + "collected": 18, + "hits": 1, + "max_lives": 3, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 3, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 3, + "seconds_active": 17.767, + "seconds_wall": 17.767, + "max_player_displacement": 227.565, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 6.61, + "stars": 2, + "resources": { + "papel": 3, + "plastico": 3, + "metal": 6, + "vidro": 2 + }, + "resource_total": 14, + "collected": 14, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 2, + "nao_tentadas": 11, + "alvos_de_coleta": 12 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-101.json b/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-101.json new file mode 100644 index 0000000..e20735b --- /dev/null +++ b/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-101.json @@ -0,0 +1,320 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.7, + "deliberate_decision_error_probability": 0.02, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.25, + "input_latency_seconds": 0.1, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": true, + "flight_count_per_mode": 3, + "seed_start": 101 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 5.333333333333333, + "plastico": 2.6666666666666665, + "metal": 9.333333333333334, + "vidro": 2.6666666666666665 + }, + "dificil": { + "papel": 7.666666666666667, + "plastico": 10.333333333333334, + "metal": 6.0, + "vidro": 5.333333333333333 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.06, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 2, + "active_minutes_until_complete": 0.77, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 101, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 230.756, + "stage_times_s": [ + 15.083, + 39.167 + ], + "restoration": 72.52, + "city_restoration_at_start": 5.0, + "local_restoration": 10.9, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 12, + "vidro": 4 + }, + "resource_total": 20, + "collected": 5, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 1, + "nao_tentadas": 3, + "alvos_de_coleta": 9 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 102, + "seconds_active": 18.667, + "seconds_wall": 18.667, + "max_player_displacement": 221.772, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 72.52, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 4, + "metal": 8, + "vidro": 0 + }, + "resource_total": 12, + "collected": 3, + "hits": 0, + "max_lives": 3, + "lives_left": 3, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 13.26, + "stars": 2, + "resources": { + "papel": 12, + "plastico": 4, + "metal": 8, + "vidro": 4 + }, + "resource_total": 28, + "collected": 7, + "hits": 1, + "max_lives": 3, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 11 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 101, + "seconds_active": 25.867, + "seconds_wall": 25.867, + "max_player_displacement": 212.925, + "stage_times_s": [ + 13.1 + ], + "restoration": 65.87, + "city_restoration_at_start": 5.0, + "local_restoration": 9.53, + "stars": 1, + "resources": { + "papel": 6, + "plastico": 7, + "metal": 4, + "vidro": 5 + }, + "resource_total": 22, + "collected": 22, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 4, + "nao_tentadas": 4, + "alvos_de_coleta": 14 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 102, + "seconds_active": 20.467, + "seconds_wall": 20.467, + "max_player_displacement": 193.933, + "stage_times_s": [ + 0.8 + ], + "restoration": 100.0, + "city_restoration_at_start": 65.87, + "local_restoration": 6.5, + "stars": 2, + "resources": { + "papel": 3, + "plastico": 2, + "metal": 3, + "vidro": 5 + }, + "resource_total": 13, + "collected": 13, + "hits": 2, + "max_lives": 3, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 3, + "nao_tentadas": 4, + "alvos_de_coleta": 7 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 103, + "seconds_active": 33.95, + "seconds_wall": 33.95, + "max_player_displacement": 208.769, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.34, + "stars": 2, + "resources": { + "papel": 14, + "plastico": 22, + "metal": 11, + "vidro": 6 + }, + "resource_total": 53, + "collected": 29, + "hits": 4, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 5, + "nao_tentadas": 7, + "alvos_de_coleta": 18 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-201.json b/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-201.json new file mode 100644 index 0000000..182466d --- /dev/null +++ b/docs/validacao-v1.7/economia/preciso-sem-apoio-amazonia-201.json @@ -0,0 +1,323 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "amazonia", + "collect_attempt_probability": 0.7, + "deliberate_decision_error_probability": 0.02, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.25, + "input_latency_seconds": 0.1, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": true, + "flight_count_per_mode": 3, + "seed_start": 201 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 2.6666666666666665, + "plastico": 4.0, + "metal": 6.666666666666667, + "vidro": 6.0 + }, + "dificil": { + "papel": 12.0, + "plastico": 14.666666666666666, + "metal": 19.666666666666668, + "vidro": 14.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.95, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.56, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + }, + { + "upgrade": "horta", + "flight_index": 3 + } + ] + }, + "runs": [ + { + "biome": "amazonia", + "mode": "normal", + "seed": 201, + "seconds_active": 38.083, + "seconds_wall": 38.083, + "max_player_displacement": 229.099, + "stage_times_s": [ + 19.333, + 34.667 + ], + "restoration": 75.08, + "city_restoration_at_start": 5.0, + "local_restoration": 13.76, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 12, + "vidro": 14 + }, + "resource_total": 34, + "collected": 7, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 1, + "nao_tentadas": 3, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 202, + "seconds_active": 18.933, + "seconds_wall": 18.933, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 75.08, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 0, + "max_lives": 3, + "lives_left": 3, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "normal", + "seed": 203, + "seconds_active": 44.433, + "seconds_wall": 44.433, + "max_player_displacement": 221.773, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 9.72, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 8, + "metal": 4, + "vidro": 4 + }, + "resource_total": 16, + "collected": 4, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 1, + "nao_tentadas": 5, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 201, + "seconds_active": 33.9, + "seconds_wall": 33.9, + "max_player_displacement": 211.086, + "stage_times_s": [ + 13.1, + 17.883 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 11.39, + "stars": 2, + "resources": { + "papel": 9, + "plastico": 13, + "metal": 21, + "vidro": 15 + }, + "resource_total": 58, + "collected": 46, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 2, + "sem_rota_simplificada": 5, + "nao_tentadas": 3, + "alvos_de_coleta": 11 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 202, + "seconds_active": 16.017, + "seconds_wall": 16.017, + "max_player_displacement": 155.738, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 5.69, + "stars": 2, + "resources": { + "papel": 1, + "plastico": 1, + "metal": 2, + "vidro": 2 + }, + "resource_total": 6, + "collected": 6, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 4, + "nao_tentadas": 5, + "alvos_de_coleta": 9 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "amazonia", + "mode": "dificil", + "seed": 203, + "seconds_active": 43.6, + "seconds_wall": 43.6, + "max_player_displacement": 206.525, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 18.55, + "stars": 2, + "resources": { + "papel": 26, + "plastico": 30, + "metal": 36, + "vidro": 26 + }, + "resource_total": 118, + "collected": 100, + "hits": 4, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 9, + "nao_tentadas": 7, + "alvos_de_coleta": 19 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-1.json b/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-1.json new file mode 100644 index 0000000..134d575 --- /dev/null +++ b/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-1.json @@ -0,0 +1,320 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.7, + "deliberate_decision_error_probability": 0.02, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.25, + "input_latency_seconds": 0.1, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": true, + "flight_count_per_mode": 3, + "seed_start": 1 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 9.333333333333334, + "metal": 6.666666666666667, + "vidro": 1.3333333333333333 + }, + "dificil": { + "papel": 5.0, + "plastico": 10.0, + "metal": 9.333333333333334, + "vidro": 8.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.89, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 2, + "active_minutes_until_complete": 0.68, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 1, + "seconds_active": 28.4, + "seconds_wall": 28.4, + "max_player_displacement": 221.775, + "stage_times_s": [ + 14.833 + ], + "restoration": 55.9, + "city_restoration_at_start": 5.0, + "local_restoration": 10.9, + "stars": 1, + "resources": { + "papel": 4, + "plastico": 12, + "metal": 4, + "vidro": 0 + }, + "resource_total": 20, + "collected": 5, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 2, + "nao_tentadas": 5, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 2, + "seconds_active": 25.067, + "seconds_wall": 25.067, + "max_player_displacement": 221.775, + "stage_times_s": [ + 6.267 + ], + "restoration": 100.0, + "city_restoration_at_start": 55.9, + "local_restoration": 10.9, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 8, + "metal": 8, + "vidro": 0 + }, + "resource_total": 20, + "collected": 5, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 3, + "alvos_de_coleta": 7 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 3, + "seconds_active": 43.75, + "seconds_wall": 43.75, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 8, + "metal": 8, + "vidro": 4 + }, + "resource_total": 24, + "collected": 6, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 2, + "nao_tentadas": 6, + "alvos_de_coleta": 6 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 1, + "seconds_active": 26.733, + "seconds_wall": 26.733, + "max_player_displacement": 186.052, + "stage_times_s": [ + 11.067, + 25.167 + ], + "restoration": 73.23, + "city_restoration_at_start": 5.0, + "local_restoration": 9.11, + "stars": 2, + "resources": { + "papel": 6, + "plastico": 12, + "metal": 15, + "vidro": 6 + }, + "resource_total": 39, + "collected": 27, + "hits": 4, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 6, + "nao_tentadas": 5, + "alvos_de_coleta": 16 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 2, + "seconds_active": 14.35, + "seconds_wall": 14.35, + "max_player_displacement": 184.176, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 73.23, + "local_restoration": 7.57, + "stars": 2, + "resources": { + "papel": 3, + "plastico": 5, + "metal": 4, + "vidro": 12 + }, + "resource_total": 24, + "collected": 18, + "hits": 1, + "max_lives": 3, + "lives_left": 2, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 3, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 3, + "seconds_active": 27.533, + "seconds_wall": 27.533, + "max_player_displacement": 227.565, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 8.85, + "stars": 2, + "resources": { + "papel": 6, + "plastico": 13, + "metal": 9, + "vidro": 7 + }, + "resource_total": 35, + "collected": 29, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 4, + "nao_tentadas": 14, + "alvos_de_coleta": 17 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-101.json b/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-101.json new file mode 100644 index 0000000..c7c85ac --- /dev/null +++ b/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-101.json @@ -0,0 +1,320 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.7, + "deliberate_decision_error_probability": 0.02, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.25, + "input_latency_seconds": 0.1, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": true, + "flight_count_per_mode": 3, + "seed_start": 101 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 4.0, + "plastico": 2.6666666666666665, + "metal": 9.333333333333334, + "vidro": 2.6666666666666665 + }, + "dificil": { + "papel": 7.666666666666667, + "plastico": 10.333333333333334, + "metal": 6.0, + "vidro": 5.333333333333333 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 1.06, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 2, + "active_minutes_until_complete": 0.77, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 2 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 101, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 230.756, + "stage_times_s": [ + 15.083, + 39.167 + ], + "restoration": 72.52, + "city_restoration_at_start": 5.0, + "local_restoration": 10.9, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 12, + "vidro": 4 + }, + "resource_total": 20, + "collected": 5, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 1, + "nao_tentadas": 3, + "alvos_de_coleta": 9 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 102, + "seconds_active": 18.667, + "seconds_wall": 18.667, + "max_player_displacement": 221.772, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 72.52, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 4, + "metal": 8, + "vidro": 0 + }, + "resource_total": 12, + "collected": 3, + "hits": 0, + "max_lives": 3, + "lives_left": 3, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 103, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 12.08, + "stars": 2, + "resources": { + "papel": 8, + "plastico": 4, + "metal": 8, + "vidro": 4 + }, + "resource_total": 24, + "collected": 6, + "hits": 1, + "max_lives": 3, + "lives_left": 2, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 11 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 101, + "seconds_active": 25.867, + "seconds_wall": 25.867, + "max_player_displacement": 212.925, + "stage_times_s": [ + 13.1 + ], + "restoration": 65.87, + "city_restoration_at_start": 5.0, + "local_restoration": 9.53, + "stars": 1, + "resources": { + "papel": 6, + "plastico": 7, + "metal": 4, + "vidro": 5 + }, + "resource_total": 22, + "collected": 22, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 4, + "nao_tentadas": 4, + "alvos_de_coleta": 14 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 102, + "seconds_active": 20.467, + "seconds_wall": 20.467, + "max_player_displacement": 193.933, + "stage_times_s": [ + 0.8 + ], + "restoration": 100.0, + "city_restoration_at_start": 65.87, + "local_restoration": 6.5, + "stars": 2, + "resources": { + "papel": 3, + "plastico": 2, + "metal": 3, + "vidro": 5 + }, + "resource_total": 13, + "collected": 13, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 3, + "nao_tentadas": 4, + "alvos_de_coleta": 7 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 103, + "seconds_active": 33.95, + "seconds_wall": 33.95, + "max_player_displacement": 208.769, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 10.34, + "stars": 2, + "resources": { + "papel": 14, + "plastico": 22, + "metal": 11, + "vidro": 6 + }, + "resource_total": 53, + "collected": 29, + "hits": 4, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 1, + "sem_rota_simplificada": 5, + "nao_tentadas": 7, + "alvos_de_coleta": 18 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-201.json b/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-201.json new file mode 100644 index 0000000..dd3c8c2 --- /dev/null +++ b/docs/validacao-v1.7/economia/preciso-sem-apoio-caatinga-201.json @@ -0,0 +1,319 @@ +{ + "model": "dynamic-position-agent-v1", + "limitations": [ + "synthetic controller, not a child or usability study", + "approach decisions use simplified one-obstacle route targets", + "results do not establish comfort, fairness, or physical reachability" + ], + "parameters": { + "biome": "caatinga", + "collect_attempt_probability": 0.7, + "deliberate_decision_error_probability": 0.02, + "pause_seconds_per_active_minute": 0.0, + "interrupt_after_active_seconds": 45.0, + "session_limit_seconds": 0, + "reaction_seconds": 0.25, + "input_latency_seconds": 0.1, + "exploration": false, + "assistance": false, + "assistance_choice_already_made": true, + "flight_count_per_mode": 3, + "seed_start": 201 + }, + "collection_costs": { + "papel": 656, + "plastico": 824, + "metal": 1224, + "vidro": 640 + }, + "mean_resources_by_mode": { + "normal": { + "papel": 2.6666666666666665, + "plastico": 4.0, + "metal": 5.333333333333333, + "vidro": 6.0 + }, + "dificil": { + "papel": 6.0, + "plastico": 7.0, + "metal": 11.666666666666666, + "vidro": 8.333333333333334 + } + }, + "city_completion_by_mode": { + "normal": { + "flight_index": 2, + "active_minutes_until_complete": 0.95, + "city_after_sequence": 100.0, + "sequence_flights": 3 + }, + "dificil": { + "flight_index": 1, + "active_minutes_until_complete": 0.56, + "city_after_sequence": 100.0, + "sequence_flights": 3 + } + }, + "first_builds_by_mode": { + "normal": [ + { + "upgrade": "ponto_troca", + "flight_index": 3 + } + ], + "dificil": [ + { + "upgrade": "ponto_troca", + "flight_index": 1 + } + ] + }, + "runs": [ + { + "biome": "caatinga", + "mode": "normal", + "seed": 201, + "seconds_active": 38.1, + "seconds_wall": 38.1, + "max_player_displacement": 229.099, + "stage_times_s": [ + 19.333, + 34.667 + ], + "restoration": 75.1, + "city_restoration_at_start": 5.0, + "local_restoration": 13.76, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 4, + "metal": 12, + "vidro": 14 + }, + "resource_total": 34, + "collected": 7, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 1, + "nao_tentadas": 3, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 202, + "seconds_active": 18.917, + "seconds_wall": 18.917, + "max_player_displacement": 221.775, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 75.1, + "local_restoration": 7.36, + "stars": 2, + "resources": { + "papel": 4, + "plastico": 0, + "metal": 4, + "vidro": 0 + }, + "resource_total": 8, + "collected": 2, + "hits": 0, + "max_lives": 3, + "lives_left": 3, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 0, + "nao_tentadas": 2, + "alvos_de_coleta": 5 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "normal", + "seed": 203, + "seconds_active": 45.017, + "seconds_wall": 45.017, + "max_player_displacement": 221.773, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 8.54, + "stars": 2, + "resources": { + "papel": 0, + "plastico": 8, + "metal": 0, + "vidro": 4 + }, + "resource_total": 12, + "collected": 3, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": false, + "game_over": false, + "interrupted": true, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 1, + "nao_tentadas": 5, + "alvos_de_coleta": 8 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 201, + "seconds_active": 33.9, + "seconds_wall": 33.9, + "max_player_displacement": 211.086, + "stage_times_s": [ + 13.1, + 17.883 + ], + "restoration": 100.0, + "city_restoration_at_start": 5.0, + "local_restoration": 11.39, + "stars": 2, + "resources": { + "papel": 9, + "plastico": 13, + "metal": 21, + "vidro": 15 + }, + "resource_total": 58, + "collected": 46, + "hits": 2, + "max_lives": 3, + "lives_left": 1, + "completed": true, + "game_over": false, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 2, + "sem_rota_simplificada": 5, + "nao_tentadas": 3, + "alvos_de_coleta": 11 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 1, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 202, + "seconds_active": 16.017, + "seconds_wall": 16.017, + "max_player_displacement": 155.738, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 5.81, + "stars": 2, + "resources": { + "papel": 2, + "plastico": 1, + "metal": 2, + "vidro": 2 + }, + "resource_total": 7, + "collected": 7, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 4, + "nao_tentadas": 5, + "alvos_de_coleta": 9 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 2, + "default_assistance": false + }, + { + "biome": "caatinga", + "mode": "dificil", + "seed": 203, + "seconds_active": 15.717, + "seconds_wall": 15.717, + "max_player_displacement": 206.525, + "stage_times_s": [], + "restoration": 100.0, + "city_restoration_at_start": 100.0, + "local_restoration": 8.73, + "stars": 2, + "resources": { + "papel": 7, + "plastico": 7, + "metal": 12, + "vidro": 8 + }, + "resource_total": 34, + "collected": 28, + "hits": 3, + "max_lives": 3, + "lives_left": 0, + "completed": false, + "game_over": true, + "interrupted": false, + "session_timeout": false, + "pause_count": 0, + "pause_seconds": 0.0, + "controller_counts": { + "decisoes_perdidas": 0, + "sem_rota_simplificada": 5, + "nao_tentadas": 4, + "alvos_de_coleta": 12 + }, + "exploration": false, + "assistance": false, + "trajectory_index": 3, + "default_assistance": false + } + ] +} \ No newline at end of file diff --git a/docs/validacao-v1.7/jornadas.json b/docs/validacao-v1.7/jornadas.json new file mode 100644 index 0000000..3988989 --- /dev/null +++ b/docs/validacao-v1.7/jornadas.json @@ -0,0 +1,10004 @@ +{ + "profile": "synthetic", + "renderer": "pygame real; GIFs downscaled to 550x325", + "frames_per_gif": 30, + "journeys": [ + { + "file": "amazonia-emenda-reduzir-0.gif", + "biome": "amazonia", + "reduced_motion": false, + "journey": "emenda", + "samples": [ + { + "frame": 0, + "distance": 2490.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 2497.59, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 2505.17, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 2512.76, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 4, + "distance": 2520.34, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 5, + "distance": 2527.93, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 6, + "distance": 2535.52, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 7, + "distance": 2543.1, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 8, + "distance": 2550.69, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 9, + "distance": 2558.28, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 10, + "distance": 2565.86, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 11, + "distance": 2573.45, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 12, + "distance": 2581.03, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 13, + "distance": 2588.62, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 14, + "distance": 2596.21, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 15, + "distance": 2603.79, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 16, + "distance": 2611.38, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 17, + "distance": 2618.97, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 18, + "distance": 2626.55, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 19, + "distance": 2634.14, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 20, + "distance": 2641.72, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 21, + "distance": 2649.31, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 22, + "distance": 2656.9, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 23, + "distance": 2664.48, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 24, + "distance": 2672.07, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 25, + "distance": 2679.66, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 26, + "distance": 2687.24, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 2694.83, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 2702.41, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 2710.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + } + ] + }, + { + "file": "amazonia-mudanca-estagio-1-reduzir-0.gif", + "biome": "amazonia", + "reduced_motion": false, + "journey": "mudanca-estagio-1", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 3.0, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 4.25, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 5.51, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 6.76, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.00016027108867946942 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 8.01, + "horizon_stage_mix": [ + 0, + 1, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.007697095727168951 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 9.26, + "horizon_stage_mix": [ + 0, + 1, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.0006765137058658583 + ], + "500": [ + 0, + 1, + 0.004253491370715602 + ], + "1500": [ + 0, + 1, + 0.02575640173223038 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 10.52, + "horizon_stage_mix": [ + 0, + 1, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.01013643130120724 + ], + "500": [ + 0, + 1, + 0.019232738488424488 + ], + "1500": [ + 0, + 1, + 0.0533006368717856 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 11.77, + "horizon_stage_mix": [ + 0, + 1, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.029936612702047862 + ], + "500": [ + 0, + 1, + 0.044011424582180166 + ], + "1500": [ + 0, + 1, + 0.08929224891375649 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 13.02, + "horizon_stage_mix": [ + 0, + 1, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.05903950567630966 + ], + "500": [ + 0, + 1, + 0.07755199741990454 + ], + "1500": [ + 0, + 1, + 0.13269368562606498 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 14.28, + "horizon_stage_mix": [ + 0, + 1, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.09640755799191433 + ], + "500": [ + 0, + 1, + 0.11881690476951941 + ], + "1500": [ + 0, + 1, + 0.18246739477663276 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 15.53, + "horizon_stage_mix": [ + 0, + 1, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.14100321741678395 + ], + "500": [ + 0, + 1, + 0.16676859439894665 + ], + "1500": [ + 0, + 1, + 0.23757582413338188 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 16.78, + "horizon_stage_mix": [ + 0, + 1, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.19178893171884018 + ], + "500": [ + 0, + 1, + 0.22036951407610814 + ], + "1500": [ + 0, + 1, + 0.29698142146423395 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 18.03, + "horizon_stage_mix": [ + 0, + 1, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.24772714866600487 + ], + "500": [ + 0, + 1, + 0.27858211156892565 + ], + "1500": [ + 0, + 1, + 0.3596466345371111 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 19.29, + "horizon_stage_mix": [ + 0, + 1, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.3077803160262 + ], + "500": [ + 0, + 1, + 0.34036883464532103 + ], + "1500": [ + 0, + 1, + 0.4245339111199349 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 20.54, + "horizon_stage_mix": [ + 0, + 1, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.37091088156734736 + ], + "500": [ + 0, + 1, + 0.40469213107321633 + ], + "1500": [ + 0, + 1, + 0.4906056989806274 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 21.79, + "horizon_stage_mix": [ + 0, + 1, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.43608129305736876 + ], + "500": [ + 0, + 1, + 0.4705144486205332 + ], + "1500": [ + 0, + 1, + 0.5568244458871104 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 23.05, + "horizon_stage_mix": [ + 0, + 1, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5022539982641864 + ], + "500": [ + 0, + 1, + 0.5367982350551938 + ], + "1500": [ + 0, + 1, + 0.6221525996073058 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 24.3, + "horizon_stage_mix": [ + 0, + 1, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5683914449557215 + ], + "500": [ + 0, + 1, + 0.6025059381451195 + ], + "1500": [ + 0, + 1, + 0.6855526079091356 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 25.55, + "horizon_stage_mix": [ + 0, + 1, + 26 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6334560808998966 + ], + "500": [ + 0, + 1, + 0.6666000056582325 + ], + "1500": [ + 0, + 1, + 0.7459869185605214 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 26.8, + "horizon_stage_mix": [ + 0, + 1, + 28 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6964103538646327 + ], + "500": [ + 0, + 1, + 0.7280428853624545 + ], + "1500": [ + 0, + 1, + 0.802417979329385 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 28.06, + "horizon_stage_mix": [ + 0, + 1, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.7562167116178528 + ], + "500": [ + 0, + 1, + 0.7857970250257076 + ], + "1500": [ + 0, + 1, + 0.8538082379836485 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 29.31, + "horizon_stage_mix": [ + 0, + 1, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8118376019274776 + ], + "500": [ + 0, + 1, + 0.8388248724159131 + ], + "1500": [ + 0, + 1, + 0.8991201422912334 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 30.56, + "horizon_stage_mix": [ + 0, + 1, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8622354725614298 + ], + "500": [ + 0, + 1, + 0.8860888753009937 + ], + "1500": [ + 0, + 1, + 0.937316140020062 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 31.82, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9063727712876309 + ], + "500": [ + 0, + 1, + 0.9265514814488706 + ], + "1500": [ + 0, + 1, + 0.9673586789380559 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 33.07, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9432119458740027 + ], + "500": [ + 0, + 1, + 0.9591751386274657 + ], + "1500": [ + 0, + 1, + 0.9882102068131372 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 34.32, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9717154440884671 + ], + "500": [ + 0, + 1, + 0.982922294604701 + ], + "1500": [ + 0, + 1, + 0.9988331714132274 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 35.57, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9908457136989463 + ], + "500": [ + 0, + 1, + 0.9967553971484985 + ], + "1500": [ + 1, + 2, + 0.0012690404354373742 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 36.83, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9995652024733617 + ], + "500": [ + 1, + 2, + 0.0002588230778546579 + ], + "1500": [ + 1, + 2, + 0.009799362653196596 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 38.08, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.002197050029180176 + ], + "500": [ + 1, + 2, + 0.0063934692010676345 + ], + "1500": [ + 1, + 2, + 0.025817732888588314 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 39.33, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.012088567994628074 + ], + "500": [ + 1, + 2, + 0.020209311698356963 + ], + "1500": [ + 1, + 2, + 0.048686964377087714 + ] + } + } + ] + }, + { + "file": "amazonia-mudanca-estagio-2-reduzir-0.gif", + "biome": "amazonia", + "reduced_motion": false, + "journey": "mudanca-estagio-2", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 31.33, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8901732757257255 + ], + "500": [ + 0, + 1, + 0.9118319693192191 + ], + "1500": [ + 0, + 1, + 0.9568143556911587 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 32.76, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9348231073991967 + ], + "500": [ + 0, + 1, + 0.9518809016859725 + ], + "1500": [ + 0, + 1, + 0.983957978899146 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 34.18, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9690177922425636 + ], + "500": [ + 0, + 1, + 0.9807747694903046 + ], + "1500": [ + 0, + 1, + 0.9981967432139187 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 35.61, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9912297799176224 + ], + "500": [ + 0, + 1, + 0.9969860223940114 + ], + "1500": [ + 1, + 2, + 0.0013980029308195178 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 37.03, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9999315200861694 + ], + "500": [ + 1, + 2, + 0.0007155268827616121 + ], + "1500": [ + 1, + 2, + 0.011945479064127273 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 38.46, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.004375154070662883 + ], + "500": [ + 1, + 2, + 0.009794727138494415 + ], + "1500": [ + 1, + 2, + 0.03204756421571945 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 39.89, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.018821470047531527 + ], + "500": [ + 1, + 2, + 0.0285650220044605 + ], + "1500": [ + 1, + 2, + 0.06076615153414662 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 41.31, + "horizon_stage_mix": [ + 1, + 2, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.04245061076054335 + ], + "500": [ + 1, + 2, + 0.05608830462921044 + ], + "1500": [ + 1, + 2, + 0.09716313416795937 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 42.74, + "horizon_stage_mix": [ + 1, + 2, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.07432446935824909 + ], + "500": [ + 1, + 2, + 0.09142646816129499 + ], + "1500": [ + 1, + 2, + 0.14030040526570847 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 44.16, + "horizon_stage_mix": [ + 1, + 2, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.11350493898919883 + ], + "500": [ + 1, + 2, + 0.1336414057492642 + ], + "1500": [ + 1, + 2, + 0.1892398579759439 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 45.59, + "horizon_stage_mix": [ + 1, + 2, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.1590539128019439 + ], + "500": [ + 1, + 2, + 0.1817950105416694 + ], + "1500": [ + 1, + 2, + 0.24304338544721704 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 47.01, + "horizon_stage_mix": [ + 1, + 2, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.21003328394503418 + ], + "500": [ + 1, + 2, + 0.23494917568706056 + ], + "1500": [ + 1, + 2, + 0.30077288082807796 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 48.44, + "horizon_stage_mix": [ + 1, + 2, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.26550494556702053 + ], + "500": [ + 1, + 2, + 0.29216579433398854 + ], + "1500": [ + 1, + 2, + 0.3614902372670771 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 49.86, + "horizon_stage_mix": [ + 1, + 2, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.32453079081645353 + ], + "500": [ + 1, + 2, + 0.35250675963100364 + ], + "1500": [ + 1, + 2, + 0.42425734791276554 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 51.29, + "horizon_stage_mix": [ + 1, + 2, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.3861727128418838 + ], + "500": [ + 1, + 2, + 0.4150339647266568 + ], + "1500": [ + 1, + 2, + 0.4881361059136934 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 52.71, + "horizon_stage_mix": [ + 1, + 2, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.4494926047918618 + ], + "500": [ + 1, + 2, + 0.47880930276949846 + ], + "1500": [ + 1, + 2, + 0.5521884044184114 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 54.14, + "horizon_stage_mix": [ + 1, + 2, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5135523598149382 + ], + "500": [ + 1, + 2, + 0.5428946669080791 + ], + "1500": [ + 1, + 2, + 0.6154761365754704 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 55.56, + "horizon_stage_mix": [ + 1, + 2, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5774138710596637 + ], + "500": [ + 1, + 2, + 0.6063519502909496 + ], + "1500": [ + 1, + 2, + 0.6770611955334208 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 56.99, + "horizon_stage_mix": [ + 1, + 2, + 25 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.6401390316745882 + ], + "500": [ + 1, + 2, + 0.6682430460666597 + ], + "1500": [ + 1, + 2, + 0.7360054744408125 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 58.41, + "horizon_stage_mix": [ + 1, + 2, + 27 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7007897348082633 + ], + "500": [ + 1, + 2, + 0.7276298473837612 + ], + "1500": [ + 1, + 2, + 0.7913708664461976 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 59.84, + "horizon_stage_mix": [ + 1, + 2, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7584278736092387 + ], + "500": [ + 1, + 2, + 0.7835742473908034 + ], + "1500": [ + 1, + 2, + 0.842219264698125 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 61.26, + "horizon_stage_mix": [ + 1, + 2, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8121153412260653 + ], + "500": [ + 1, + 2, + 0.835138139236338 + ], + "1500": [ + 1, + 2, + 0.8876125623451462 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 62.69, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8609140308072939 + ], + "500": [ + 1, + 2, + 0.881383416068915 + ], + "1500": [ + 1, + 2, + 0.9266126525358117 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 64.11, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9038858355014753 + ], + "500": [ + 1, + 2, + 0.9213719710370853 + ], + "1500": [ + 1, + 2, + 0.9582814284186723 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 65.54, + "horizon_stage_mix": [ + 1, + 2, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9400926484571591 + ], + "500": [ + 1, + 2, + 0.9541656972893988 + ], + "1500": [ + 1, + 2, + 0.9816807831422779 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 66.97, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9685963628228966 + ], + "500": [ + 1, + 2, + 0.978826487974407 + ], + "1500": [ + 1, + 2, + 0.9958726098551796 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 68.39, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9884588717472382 + ], + "500": [ + 1, + 2, + 0.9944162362406599 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 69.82, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9987420683787346 + ], + "500": [ + 1, + 2, + 0.999996835236708 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 71.24, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 72.67, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + } + ] + }, + { + "file": "amazonia-emenda-reduzir-1.gif", + "biome": "amazonia", + "reduced_motion": true, + "journey": "emenda", + "samples": [ + { + "frame": 0, + "distance": 2490.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 2497.59, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 2505.17, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 2512.76, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 4, + "distance": 2520.34, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 5, + "distance": 2527.93, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 6, + "distance": 2535.52, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 7, + "distance": 2543.1, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 8, + "distance": 2550.69, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 9, + "distance": 2558.28, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 10, + "distance": 2565.86, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 11, + "distance": 2573.45, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 12, + "distance": 2581.03, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 13, + "distance": 2588.62, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 14, + "distance": 2596.21, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 15, + "distance": 2603.79, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 16, + "distance": 2611.38, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 17, + "distance": 2618.97, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 18, + "distance": 2626.55, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 19, + "distance": 2634.14, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 20, + "distance": 2641.72, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 21, + "distance": 2649.31, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 22, + "distance": 2656.9, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 23, + "distance": 2664.48, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 24, + "distance": 2672.07, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 25, + "distance": 2679.66, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 26, + "distance": 2687.24, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 2694.83, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 2702.41, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 2710.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + } + ] + }, + { + "file": "amazonia-mudanca-estagio-1-reduzir-1.gif", + "biome": "amazonia", + "reduced_motion": true, + "journey": "mudanca-estagio-1", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 3.0, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 4.25, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 5.51, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 6.76, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.00016027108867946942 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 8.01, + "horizon_stage_mix": [ + 0, + 1, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.007697095727168951 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 9.26, + "horizon_stage_mix": [ + 0, + 1, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.0006765137058658583 + ], + "500": [ + 0, + 1, + 0.004253491370715602 + ], + "1500": [ + 0, + 1, + 0.02575640173223038 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 10.52, + "horizon_stage_mix": [ + 0, + 1, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.01013643130120724 + ], + "500": [ + 0, + 1, + 0.019232738488424488 + ], + "1500": [ + 0, + 1, + 0.0533006368717856 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 11.77, + "horizon_stage_mix": [ + 0, + 1, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.029936612702047862 + ], + "500": [ + 0, + 1, + 0.044011424582180166 + ], + "1500": [ + 0, + 1, + 0.08929224891375649 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 13.02, + "horizon_stage_mix": [ + 0, + 1, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.05903950567630966 + ], + "500": [ + 0, + 1, + 0.07755199741990454 + ], + "1500": [ + 0, + 1, + 0.13269368562606498 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 14.28, + "horizon_stage_mix": [ + 0, + 1, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.09640755799191433 + ], + "500": [ + 0, + 1, + 0.11881690476951941 + ], + "1500": [ + 0, + 1, + 0.18246739477663276 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 15.53, + "horizon_stage_mix": [ + 0, + 1, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.14100321741678395 + ], + "500": [ + 0, + 1, + 0.16676859439894665 + ], + "1500": [ + 0, + 1, + 0.23757582413338188 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 16.78, + "horizon_stage_mix": [ + 0, + 1, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.19178893171884018 + ], + "500": [ + 0, + 1, + 0.22036951407610814 + ], + "1500": [ + 0, + 1, + 0.29698142146423395 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 18.03, + "horizon_stage_mix": [ + 0, + 1, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.24772714866600487 + ], + "500": [ + 0, + 1, + 0.27858211156892565 + ], + "1500": [ + 0, + 1, + 0.3596466345371111 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 19.29, + "horizon_stage_mix": [ + 0, + 1, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.3077803160262 + ], + "500": [ + 0, + 1, + 0.34036883464532103 + ], + "1500": [ + 0, + 1, + 0.4245339111199349 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 20.54, + "horizon_stage_mix": [ + 0, + 1, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.37091088156734736 + ], + "500": [ + 0, + 1, + 0.40469213107321633 + ], + "1500": [ + 0, + 1, + 0.4906056989806274 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 21.79, + "horizon_stage_mix": [ + 0, + 1, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.43608129305736876 + ], + "500": [ + 0, + 1, + 0.4705144486205332 + ], + "1500": [ + 0, + 1, + 0.5568244458871104 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 23.05, + "horizon_stage_mix": [ + 0, + 1, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5022539982641864 + ], + "500": [ + 0, + 1, + 0.5367982350551938 + ], + "1500": [ + 0, + 1, + 0.6221525996073058 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 24.3, + "horizon_stage_mix": [ + 0, + 1, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5683914449557215 + ], + "500": [ + 0, + 1, + 0.6025059381451195 + ], + "1500": [ + 0, + 1, + 0.6855526079091356 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 25.55, + "horizon_stage_mix": [ + 0, + 1, + 26 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6334560808998966 + ], + "500": [ + 0, + 1, + 0.6666000056582325 + ], + "1500": [ + 0, + 1, + 0.7459869185605214 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 26.8, + "horizon_stage_mix": [ + 0, + 1, + 28 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6964103538646327 + ], + "500": [ + 0, + 1, + 0.7280428853624545 + ], + "1500": [ + 0, + 1, + 0.802417979329385 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 28.06, + "horizon_stage_mix": [ + 0, + 1, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.7562167116178528 + ], + "500": [ + 0, + 1, + 0.7857970250257076 + ], + "1500": [ + 0, + 1, + 0.8538082379836485 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 29.31, + "horizon_stage_mix": [ + 0, + 1, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8118376019274776 + ], + "500": [ + 0, + 1, + 0.8388248724159131 + ], + "1500": [ + 0, + 1, + 0.8991201422912334 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 30.56, + "horizon_stage_mix": [ + 0, + 1, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8622354725614298 + ], + "500": [ + 0, + 1, + 0.8860888753009937 + ], + "1500": [ + 0, + 1, + 0.937316140020062 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 31.82, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9063727712876309 + ], + "500": [ + 0, + 1, + 0.9265514814488706 + ], + "1500": [ + 0, + 1, + 0.9673586789380559 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 33.07, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9432119458740027 + ], + "500": [ + 0, + 1, + 0.9591751386274657 + ], + "1500": [ + 0, + 1, + 0.9882102068131372 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 34.32, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9717154440884671 + ], + "500": [ + 0, + 1, + 0.982922294604701 + ], + "1500": [ + 0, + 1, + 0.9988331714132274 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 35.57, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9908457136989463 + ], + "500": [ + 0, + 1, + 0.9967553971484985 + ], + "1500": [ + 1, + 2, + 0.0012690404354373742 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 36.83, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9995652024733617 + ], + "500": [ + 1, + 2, + 0.0002588230778546579 + ], + "1500": [ + 1, + 2, + 0.009799362653196596 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 38.08, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.002197050029180176 + ], + "500": [ + 1, + 2, + 0.0063934692010676345 + ], + "1500": [ + 1, + 2, + 0.025817732888588314 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 39.33, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.012088567994628074 + ], + "500": [ + 1, + 2, + 0.020209311698356963 + ], + "1500": [ + 1, + 2, + 0.048686964377087714 + ] + } + } + ] + }, + { + "file": "amazonia-mudanca-estagio-2-reduzir-1.gif", + "biome": "amazonia", + "reduced_motion": true, + "journey": "mudanca-estagio-2", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 31.33, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8901732757257255 + ], + "500": [ + 0, + 1, + 0.9118319693192191 + ], + "1500": [ + 0, + 1, + 0.9568143556911587 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 32.76, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9348231073991967 + ], + "500": [ + 0, + 1, + 0.9518809016859725 + ], + "1500": [ + 0, + 1, + 0.983957978899146 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 34.18, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9690177922425636 + ], + "500": [ + 0, + 1, + 0.9807747694903046 + ], + "1500": [ + 0, + 1, + 0.9981967432139187 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 35.61, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9912297799176224 + ], + "500": [ + 0, + 1, + 0.9969860223940114 + ], + "1500": [ + 1, + 2, + 0.0013980029308195178 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 37.03, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9999315200861694 + ], + "500": [ + 1, + 2, + 0.0007155268827616121 + ], + "1500": [ + 1, + 2, + 0.011945479064127273 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 38.46, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.004375154070662883 + ], + "500": [ + 1, + 2, + 0.009794727138494415 + ], + "1500": [ + 1, + 2, + 0.03204756421571945 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 39.89, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.018821470047531527 + ], + "500": [ + 1, + 2, + 0.0285650220044605 + ], + "1500": [ + 1, + 2, + 0.06076615153414662 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 41.31, + "horizon_stage_mix": [ + 1, + 2, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.04245061076054335 + ], + "500": [ + 1, + 2, + 0.05608830462921044 + ], + "1500": [ + 1, + 2, + 0.09716313416795937 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 42.74, + "horizon_stage_mix": [ + 1, + 2, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.07432446935824909 + ], + "500": [ + 1, + 2, + 0.09142646816129499 + ], + "1500": [ + 1, + 2, + 0.14030040526570847 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 44.16, + "horizon_stage_mix": [ + 1, + 2, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.11350493898919883 + ], + "500": [ + 1, + 2, + 0.1336414057492642 + ], + "1500": [ + 1, + 2, + 0.1892398579759439 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 45.59, + "horizon_stage_mix": [ + 1, + 2, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.1590539128019439 + ], + "500": [ + 1, + 2, + 0.1817950105416694 + ], + "1500": [ + 1, + 2, + 0.24304338544721704 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 47.01, + "horizon_stage_mix": [ + 1, + 2, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.21003328394503418 + ], + "500": [ + 1, + 2, + 0.23494917568706056 + ], + "1500": [ + 1, + 2, + 0.30077288082807796 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 48.44, + "horizon_stage_mix": [ + 1, + 2, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.26550494556702053 + ], + "500": [ + 1, + 2, + 0.29216579433398854 + ], + "1500": [ + 1, + 2, + 0.3614902372670771 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 49.86, + "horizon_stage_mix": [ + 1, + 2, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.32453079081645353 + ], + "500": [ + 1, + 2, + 0.35250675963100364 + ], + "1500": [ + 1, + 2, + 0.42425734791276554 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 51.29, + "horizon_stage_mix": [ + 1, + 2, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.3861727128418838 + ], + "500": [ + 1, + 2, + 0.4150339647266568 + ], + "1500": [ + 1, + 2, + 0.4881361059136934 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 52.71, + "horizon_stage_mix": [ + 1, + 2, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.4494926047918618 + ], + "500": [ + 1, + 2, + 0.47880930276949846 + ], + "1500": [ + 1, + 2, + 0.5521884044184114 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 54.14, + "horizon_stage_mix": [ + 1, + 2, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5135523598149382 + ], + "500": [ + 1, + 2, + 0.5428946669080791 + ], + "1500": [ + 1, + 2, + 0.6154761365754704 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 55.56, + "horizon_stage_mix": [ + 1, + 2, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5774138710596637 + ], + "500": [ + 1, + 2, + 0.6063519502909496 + ], + "1500": [ + 1, + 2, + 0.6770611955334208 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 56.99, + "horizon_stage_mix": [ + 1, + 2, + 25 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.6401390316745882 + ], + "500": [ + 1, + 2, + 0.6682430460666597 + ], + "1500": [ + 1, + 2, + 0.7360054744408125 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 58.41, + "horizon_stage_mix": [ + 1, + 2, + 27 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7007897348082633 + ], + "500": [ + 1, + 2, + 0.7276298473837612 + ], + "1500": [ + 1, + 2, + 0.7913708664461976 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 59.84, + "horizon_stage_mix": [ + 1, + 2, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7584278736092387 + ], + "500": [ + 1, + 2, + 0.7835742473908034 + ], + "1500": [ + 1, + 2, + 0.842219264698125 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 61.26, + "horizon_stage_mix": [ + 1, + 2, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8121153412260653 + ], + "500": [ + 1, + 2, + 0.835138139236338 + ], + "1500": [ + 1, + 2, + 0.8876125623451462 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 62.69, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8609140308072939 + ], + "500": [ + 1, + 2, + 0.881383416068915 + ], + "1500": [ + 1, + 2, + 0.9266126525358117 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 64.11, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9038858355014753 + ], + "500": [ + 1, + 2, + 0.9213719710370853 + ], + "1500": [ + 1, + 2, + 0.9582814284186723 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 65.54, + "horizon_stage_mix": [ + 1, + 2, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9400926484571591 + ], + "500": [ + 1, + 2, + 0.9541656972893988 + ], + "1500": [ + 1, + 2, + 0.9816807831422779 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 66.97, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9685963628228966 + ], + "500": [ + 1, + 2, + 0.978826487974407 + ], + "1500": [ + 1, + 2, + 0.9958726098551796 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 68.39, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9884588717472382 + ], + "500": [ + 1, + 2, + 0.9944162362406599 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 69.82, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9987420683787346 + ], + "500": [ + 1, + 2, + 0.999996835236708 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 71.24, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 72.67, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + } + ] + }, + { + "file": "caatinga-emenda-reduzir-0.gif", + "biome": "caatinga", + "reduced_motion": false, + "journey": "emenda", + "samples": [ + { + "frame": 0, + "distance": 2490.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 2497.59, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 2505.17, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 2512.76, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 4, + "distance": 2520.34, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 5, + "distance": 2527.93, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 6, + "distance": 2535.52, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 7, + "distance": 2543.1, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 8, + "distance": 2550.69, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 9, + "distance": 2558.28, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 10, + "distance": 2565.86, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 11, + "distance": 2573.45, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 12, + "distance": 2581.03, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 13, + "distance": 2588.62, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 14, + "distance": 2596.21, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 15, + "distance": 2603.79, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 16, + "distance": 2611.38, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 17, + "distance": 2618.97, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 18, + "distance": 2626.55, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 19, + "distance": 2634.14, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 20, + "distance": 2641.72, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 21, + "distance": 2649.31, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 22, + "distance": 2656.9, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 23, + "distance": 2664.48, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 24, + "distance": 2672.07, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 25, + "distance": 2679.66, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 26, + "distance": 2687.24, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 2694.83, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 2702.41, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 2710.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + } + ] + }, + { + "file": "caatinga-mudanca-estagio-1-reduzir-0.gif", + "biome": "caatinga", + "reduced_motion": false, + "journey": "mudanca-estagio-1", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 3.0, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 4.25, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 5.51, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 6.76, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.00016027108867946942 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 8.01, + "horizon_stage_mix": [ + 0, + 1, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.007697095727168951 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 9.26, + "horizon_stage_mix": [ + 0, + 1, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.0006765137058658583 + ], + "500": [ + 0, + 1, + 0.004253491370715602 + ], + "1500": [ + 0, + 1, + 0.02575640173223038 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 10.52, + "horizon_stage_mix": [ + 0, + 1, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.01013643130120724 + ], + "500": [ + 0, + 1, + 0.019232738488424488 + ], + "1500": [ + 0, + 1, + 0.0533006368717856 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 11.77, + "horizon_stage_mix": [ + 0, + 1, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.029936612702047862 + ], + "500": [ + 0, + 1, + 0.044011424582180166 + ], + "1500": [ + 0, + 1, + 0.08929224891375649 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 13.02, + "horizon_stage_mix": [ + 0, + 1, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.05903950567630966 + ], + "500": [ + 0, + 1, + 0.07755199741990454 + ], + "1500": [ + 0, + 1, + 0.13269368562606498 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 14.28, + "horizon_stage_mix": [ + 0, + 1, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.09640755799191433 + ], + "500": [ + 0, + 1, + 0.11881690476951941 + ], + "1500": [ + 0, + 1, + 0.18246739477663276 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 15.53, + "horizon_stage_mix": [ + 0, + 1, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.14100321741678395 + ], + "500": [ + 0, + 1, + 0.16676859439894665 + ], + "1500": [ + 0, + 1, + 0.23757582413338188 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 16.78, + "horizon_stage_mix": [ + 0, + 1, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.19178893171884018 + ], + "500": [ + 0, + 1, + 0.22036951407610814 + ], + "1500": [ + 0, + 1, + 0.29698142146423395 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 18.03, + "horizon_stage_mix": [ + 0, + 1, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.24772714866600487 + ], + "500": [ + 0, + 1, + 0.27858211156892565 + ], + "1500": [ + 0, + 1, + 0.3596466345371111 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 19.29, + "horizon_stage_mix": [ + 0, + 1, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.3077803160262 + ], + "500": [ + 0, + 1, + 0.34036883464532103 + ], + "1500": [ + 0, + 1, + 0.4245339111199349 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 20.54, + "horizon_stage_mix": [ + 0, + 1, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.37091088156734736 + ], + "500": [ + 0, + 1, + 0.40469213107321633 + ], + "1500": [ + 0, + 1, + 0.4906056989806274 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 21.79, + "horizon_stage_mix": [ + 0, + 1, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.43608129305736876 + ], + "500": [ + 0, + 1, + 0.4705144486205332 + ], + "1500": [ + 0, + 1, + 0.5568244458871104 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 23.05, + "horizon_stage_mix": [ + 0, + 1, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5022539982641864 + ], + "500": [ + 0, + 1, + 0.5367982350551938 + ], + "1500": [ + 0, + 1, + 0.6221525996073058 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 24.3, + "horizon_stage_mix": [ + 0, + 1, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5683914449557215 + ], + "500": [ + 0, + 1, + 0.6025059381451195 + ], + "1500": [ + 0, + 1, + 0.6855526079091356 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 25.55, + "horizon_stage_mix": [ + 0, + 1, + 26 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6334560808998966 + ], + "500": [ + 0, + 1, + 0.6666000056582325 + ], + "1500": [ + 0, + 1, + 0.7459869185605214 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 26.8, + "horizon_stage_mix": [ + 0, + 1, + 28 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6964103538646327 + ], + "500": [ + 0, + 1, + 0.7280428853624545 + ], + "1500": [ + 0, + 1, + 0.802417979329385 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 28.06, + "horizon_stage_mix": [ + 0, + 1, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.7562167116178528 + ], + "500": [ + 0, + 1, + 0.7857970250257076 + ], + "1500": [ + 0, + 1, + 0.8538082379836485 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 29.31, + "horizon_stage_mix": [ + 0, + 1, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8118376019274776 + ], + "500": [ + 0, + 1, + 0.8388248724159131 + ], + "1500": [ + 0, + 1, + 0.8991201422912334 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 30.56, + "horizon_stage_mix": [ + 0, + 1, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8622354725614298 + ], + "500": [ + 0, + 1, + 0.8860888753009937 + ], + "1500": [ + 0, + 1, + 0.937316140020062 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 31.82, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9063727712876309 + ], + "500": [ + 0, + 1, + 0.9265514814488706 + ], + "1500": [ + 0, + 1, + 0.9673586789380559 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 33.07, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9432119458740027 + ], + "500": [ + 0, + 1, + 0.9591751386274657 + ], + "1500": [ + 0, + 1, + 0.9882102068131372 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 34.32, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9717154440884671 + ], + "500": [ + 0, + 1, + 0.982922294604701 + ], + "1500": [ + 0, + 1, + 0.9988331714132274 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 35.57, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9908457136989463 + ], + "500": [ + 0, + 1, + 0.9967553971484985 + ], + "1500": [ + 1, + 2, + 0.0012690404354373742 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 36.83, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9995652024733617 + ], + "500": [ + 1, + 2, + 0.0002588230778546579 + ], + "1500": [ + 1, + 2, + 0.009799362653196596 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 38.08, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.002197050029180176 + ], + "500": [ + 1, + 2, + 0.0063934692010676345 + ], + "1500": [ + 1, + 2, + 0.025817732888588314 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 39.33, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.012088567994628074 + ], + "500": [ + 1, + 2, + 0.020209311698356963 + ], + "1500": [ + 1, + 2, + 0.048686964377087714 + ] + } + } + ] + }, + { + "file": "caatinga-mudanca-estagio-2-reduzir-0.gif", + "biome": "caatinga", + "reduced_motion": false, + "journey": "mudanca-estagio-2", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 31.33, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8901732757257255 + ], + "500": [ + 0, + 1, + 0.9118319693192191 + ], + "1500": [ + 0, + 1, + 0.9568143556911587 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 32.76, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9348231073991967 + ], + "500": [ + 0, + 1, + 0.9518809016859725 + ], + "1500": [ + 0, + 1, + 0.983957978899146 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 34.18, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9690177922425636 + ], + "500": [ + 0, + 1, + 0.9807747694903046 + ], + "1500": [ + 0, + 1, + 0.9981967432139187 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 35.61, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9912297799176224 + ], + "500": [ + 0, + 1, + 0.9969860223940114 + ], + "1500": [ + 1, + 2, + 0.0013980029308195178 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 37.03, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9999315200861694 + ], + "500": [ + 1, + 2, + 0.0007155268827616121 + ], + "1500": [ + 1, + 2, + 0.011945479064127273 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 38.46, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.004375154070662883 + ], + "500": [ + 1, + 2, + 0.009794727138494415 + ], + "1500": [ + 1, + 2, + 0.03204756421571945 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 39.89, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.018821470047531527 + ], + "500": [ + 1, + 2, + 0.0285650220044605 + ], + "1500": [ + 1, + 2, + 0.06076615153414662 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 41.31, + "horizon_stage_mix": [ + 1, + 2, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.04245061076054335 + ], + "500": [ + 1, + 2, + 0.05608830462921044 + ], + "1500": [ + 1, + 2, + 0.09716313416795937 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 42.74, + "horizon_stage_mix": [ + 1, + 2, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.07432446935824909 + ], + "500": [ + 1, + 2, + 0.09142646816129499 + ], + "1500": [ + 1, + 2, + 0.14030040526570847 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 44.16, + "horizon_stage_mix": [ + 1, + 2, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.11350493898919883 + ], + "500": [ + 1, + 2, + 0.1336414057492642 + ], + "1500": [ + 1, + 2, + 0.1892398579759439 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 45.59, + "horizon_stage_mix": [ + 1, + 2, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.1590539128019439 + ], + "500": [ + 1, + 2, + 0.1817950105416694 + ], + "1500": [ + 1, + 2, + 0.24304338544721704 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 47.01, + "horizon_stage_mix": [ + 1, + 2, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.21003328394503418 + ], + "500": [ + 1, + 2, + 0.23494917568706056 + ], + "1500": [ + 1, + 2, + 0.30077288082807796 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 48.44, + "horizon_stage_mix": [ + 1, + 2, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.26550494556702053 + ], + "500": [ + 1, + 2, + 0.29216579433398854 + ], + "1500": [ + 1, + 2, + 0.3614902372670771 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 49.86, + "horizon_stage_mix": [ + 1, + 2, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.32453079081645353 + ], + "500": [ + 1, + 2, + 0.35250675963100364 + ], + "1500": [ + 1, + 2, + 0.42425734791276554 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 51.29, + "horizon_stage_mix": [ + 1, + 2, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.3861727128418838 + ], + "500": [ + 1, + 2, + 0.4150339647266568 + ], + "1500": [ + 1, + 2, + 0.4881361059136934 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 52.71, + "horizon_stage_mix": [ + 1, + 2, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.4494926047918618 + ], + "500": [ + 1, + 2, + 0.47880930276949846 + ], + "1500": [ + 1, + 2, + 0.5521884044184114 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 54.14, + "horizon_stage_mix": [ + 1, + 2, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5135523598149382 + ], + "500": [ + 1, + 2, + 0.5428946669080791 + ], + "1500": [ + 1, + 2, + 0.6154761365754704 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 55.56, + "horizon_stage_mix": [ + 1, + 2, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5774138710596637 + ], + "500": [ + 1, + 2, + 0.6063519502909496 + ], + "1500": [ + 1, + 2, + 0.6770611955334208 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 56.99, + "horizon_stage_mix": [ + 1, + 2, + 25 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.6401390316745882 + ], + "500": [ + 1, + 2, + 0.6682430460666597 + ], + "1500": [ + 1, + 2, + 0.7360054744408125 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 58.41, + "horizon_stage_mix": [ + 1, + 2, + 27 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7007897348082633 + ], + "500": [ + 1, + 2, + 0.7276298473837612 + ], + "1500": [ + 1, + 2, + 0.7913708664461976 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 59.84, + "horizon_stage_mix": [ + 1, + 2, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7584278736092387 + ], + "500": [ + 1, + 2, + 0.7835742473908034 + ], + "1500": [ + 1, + 2, + 0.842219264698125 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 61.26, + "horizon_stage_mix": [ + 1, + 2, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8121153412260653 + ], + "500": [ + 1, + 2, + 0.835138139236338 + ], + "1500": [ + 1, + 2, + 0.8876125623451462 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 62.69, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8609140308072939 + ], + "500": [ + 1, + 2, + 0.881383416068915 + ], + "1500": [ + 1, + 2, + 0.9266126525358117 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 64.11, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9038858355014753 + ], + "500": [ + 1, + 2, + 0.9213719710370853 + ], + "1500": [ + 1, + 2, + 0.9582814284186723 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 65.54, + "horizon_stage_mix": [ + 1, + 2, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9400926484571591 + ], + "500": [ + 1, + 2, + 0.9541656972893988 + ], + "1500": [ + 1, + 2, + 0.9816807831422779 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 66.97, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9685963628228966 + ], + "500": [ + 1, + 2, + 0.978826487974407 + ], + "1500": [ + 1, + 2, + 0.9958726098551796 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 68.39, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9884588717472382 + ], + "500": [ + 1, + 2, + 0.9944162362406599 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 69.82, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9987420683787346 + ], + "500": [ + 1, + 2, + 0.999996835236708 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 71.24, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 72.67, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + } + ] + }, + { + "file": "caatinga-emenda-reduzir-1.gif", + "biome": "caatinga", + "reduced_motion": true, + "journey": "emenda", + "samples": [ + { + "frame": 0, + "distance": 2490.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 2497.59, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 2505.17, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 2512.76, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 4, + "distance": 2520.34, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 5, + "distance": 2527.93, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 6, + "distance": 2535.52, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 7, + "distance": 2543.1, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 8, + "distance": 2550.69, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 9, + "distance": 2558.28, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 10, + "distance": 2565.86, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 11, + "distance": 2573.45, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 12, + "distance": 2581.03, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 13, + "distance": 2588.62, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 14, + "distance": 2596.21, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 15, + "distance": 2603.79, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 16, + "distance": 2611.38, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 17, + "distance": 2618.97, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 18, + "distance": 2626.55, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 19, + "distance": 2634.14, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 20, + "distance": 2641.72, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 21, + "distance": 2649.31, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 22, + "distance": 2656.9, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 23, + "distance": 2664.48, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 24, + "distance": 2672.07, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 25, + "distance": 2679.66, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 26, + "distance": 2687.24, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 2694.83, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 2702.41, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 2710.0, + "visual_restoration": 5.0, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + } + ] + }, + { + "file": "caatinga-mudanca-estagio-1-reduzir-1.gif", + "biome": "caatinga", + "reduced_motion": true, + "journey": "mudanca-estagio-1", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 3.0, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 4.25, + "horizon_stage_mix": [ + 0, + 0, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 5.51, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 0, + 0.0 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 6.76, + "horizon_stage_mix": [ + 0, + 1, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.00016027108867946942 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 8.01, + "horizon_stage_mix": [ + 0, + 1, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 0, + 0.0 + ], + "500": [ + 0, + 0, + 0.0 + ], + "1500": [ + 0, + 1, + 0.007697095727168951 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 9.26, + "horizon_stage_mix": [ + 0, + 1, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.0006765137058658583 + ], + "500": [ + 0, + 1, + 0.004253491370715602 + ], + "1500": [ + 0, + 1, + 0.02575640173223038 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 10.52, + "horizon_stage_mix": [ + 0, + 1, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.01013643130120724 + ], + "500": [ + 0, + 1, + 0.019232738488424488 + ], + "1500": [ + 0, + 1, + 0.0533006368717856 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 11.77, + "horizon_stage_mix": [ + 0, + 1, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.029936612702047862 + ], + "500": [ + 0, + 1, + 0.044011424582180166 + ], + "1500": [ + 0, + 1, + 0.08929224891375649 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 13.02, + "horizon_stage_mix": [ + 0, + 1, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.05903950567630966 + ], + "500": [ + 0, + 1, + 0.07755199741990454 + ], + "1500": [ + 0, + 1, + 0.13269368562606498 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 14.28, + "horizon_stage_mix": [ + 0, + 1, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.09640755799191433 + ], + "500": [ + 0, + 1, + 0.11881690476951941 + ], + "1500": [ + 0, + 1, + 0.18246739477663276 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 15.53, + "horizon_stage_mix": [ + 0, + 1, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.14100321741678395 + ], + "500": [ + 0, + 1, + 0.16676859439894665 + ], + "1500": [ + 0, + 1, + 0.23757582413338188 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 16.78, + "horizon_stage_mix": [ + 0, + 1, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.19178893171884018 + ], + "500": [ + 0, + 1, + 0.22036951407610814 + ], + "1500": [ + 0, + 1, + 0.29698142146423395 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 18.03, + "horizon_stage_mix": [ + 0, + 1, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.24772714866600487 + ], + "500": [ + 0, + 1, + 0.27858211156892565 + ], + "1500": [ + 0, + 1, + 0.3596466345371111 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 19.29, + "horizon_stage_mix": [ + 0, + 1, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.3077803160262 + ], + "500": [ + 0, + 1, + 0.34036883464532103 + ], + "1500": [ + 0, + 1, + 0.4245339111199349 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 20.54, + "horizon_stage_mix": [ + 0, + 1, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.37091088156734736 + ], + "500": [ + 0, + 1, + 0.40469213107321633 + ], + "1500": [ + 0, + 1, + 0.4906056989806274 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 21.79, + "horizon_stage_mix": [ + 0, + 1, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.43608129305736876 + ], + "500": [ + 0, + 1, + 0.4705144486205332 + ], + "1500": [ + 0, + 1, + 0.5568244458871104 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 23.05, + "horizon_stage_mix": [ + 0, + 1, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5022539982641864 + ], + "500": [ + 0, + 1, + 0.5367982350551938 + ], + "1500": [ + 0, + 1, + 0.6221525996073058 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 24.3, + "horizon_stage_mix": [ + 0, + 1, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.5683914449557215 + ], + "500": [ + 0, + 1, + 0.6025059381451195 + ], + "1500": [ + 0, + 1, + 0.6855526079091356 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 25.55, + "horizon_stage_mix": [ + 0, + 1, + 26 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6334560808998966 + ], + "500": [ + 0, + 1, + 0.6666000056582325 + ], + "1500": [ + 0, + 1, + 0.7459869185605214 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 26.8, + "horizon_stage_mix": [ + 0, + 1, + 28 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.6964103538646327 + ], + "500": [ + 0, + 1, + 0.7280428853624545 + ], + "1500": [ + 0, + 1, + 0.802417979329385 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 28.06, + "horizon_stage_mix": [ + 0, + 1, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.7562167116178528 + ], + "500": [ + 0, + 1, + 0.7857970250257076 + ], + "1500": [ + 0, + 1, + 0.8538082379836485 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 29.31, + "horizon_stage_mix": [ + 0, + 1, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8118376019274776 + ], + "500": [ + 0, + 1, + 0.8388248724159131 + ], + "1500": [ + 0, + 1, + 0.8991201422912334 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 30.56, + "horizon_stage_mix": [ + 0, + 1, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8622354725614298 + ], + "500": [ + 0, + 1, + 0.8860888753009937 + ], + "1500": [ + 0, + 1, + 0.937316140020062 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 31.82, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9063727712876309 + ], + "500": [ + 0, + 1, + 0.9265514814488706 + ], + "1500": [ + 0, + 1, + 0.9673586789380559 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 33.07, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9432119458740027 + ], + "500": [ + 0, + 1, + 0.9591751386274657 + ], + "1500": [ + 0, + 1, + 0.9882102068131372 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 34.32, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9717154440884671 + ], + "500": [ + 0, + 1, + 0.982922294604701 + ], + "1500": [ + 0, + 1, + 0.9988331714132274 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 35.57, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9908457136989463 + ], + "500": [ + 0, + 1, + 0.9967553971484985 + ], + "1500": [ + 1, + 2, + 0.0012690404354373742 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 36.83, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9995652024733617 + ], + "500": [ + 1, + 2, + 0.0002588230778546579 + ], + "1500": [ + 1, + 2, + 0.009799362653196596 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 38.08, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.002197050029180176 + ], + "500": [ + 1, + 2, + 0.0063934692010676345 + ], + "1500": [ + 1, + 2, + 0.025817732888588314 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 39.33, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.012088567994628074 + ], + "500": [ + 1, + 2, + 0.020209311698356963 + ], + "1500": [ + 1, + 2, + 0.048686964377087714 + ] + } + } + ] + }, + { + "file": "caatinga-mudanca-estagio-2-reduzir-1.gif", + "biome": "caatinga", + "reduced_motion": true, + "journey": "mudanca-estagio-2", + "samples": [ + { + "frame": 0, + "distance": 900.0, + "visual_restoration": 31.33, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.8901732757257255 + ], + "500": [ + 0, + 1, + 0.9118319693192191 + ], + "1500": [ + 0, + 1, + 0.9568143556911587 + ] + } + }, + { + "frame": 1, + "distance": 908.0, + "visual_restoration": 32.76, + "horizon_stage_mix": [ + 0, + 1, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9348231073991967 + ], + "500": [ + 0, + 1, + 0.9518809016859725 + ], + "1500": [ + 0, + 1, + 0.983957978899146 + ] + } + }, + { + "frame": 2, + "distance": 916.0, + "visual_restoration": 34.18, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9690177922425636 + ], + "500": [ + 0, + 1, + 0.9807747694903046 + ], + "1500": [ + 0, + 1, + 0.9981967432139187 + ] + } + }, + { + "frame": 3, + "distance": 924.0, + "visual_restoration": 35.61, + "horizon_stage_mix": [ + 1, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9912297799176224 + ], + "500": [ + 0, + 1, + 0.9969860223940114 + ], + "1500": [ + 1, + 2, + 0.0013980029308195178 + ] + } + }, + { + "frame": 4, + "distance": 932.0, + "visual_restoration": 37.03, + "horizon_stage_mix": [ + 1, + 2, + 1 + ], + "bank_stage_mix_by_depth": { + "100": [ + 0, + 1, + 0.9999315200861694 + ], + "500": [ + 1, + 2, + 0.0007155268827616121 + ], + "1500": [ + 1, + 2, + 0.011945479064127273 + ] + } + }, + { + "frame": 5, + "distance": 940.0, + "visual_restoration": 38.46, + "horizon_stage_mix": [ + 1, + 2, + 2 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.004375154070662883 + ], + "500": [ + 1, + 2, + 0.009794727138494415 + ], + "1500": [ + 1, + 2, + 0.03204756421571945 + ] + } + }, + { + "frame": 6, + "distance": 948.0, + "visual_restoration": 39.89, + "horizon_stage_mix": [ + 1, + 2, + 3 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.018821470047531527 + ], + "500": [ + 1, + 2, + 0.0285650220044605 + ], + "1500": [ + 1, + 2, + 0.06076615153414662 + ] + } + }, + { + "frame": 7, + "distance": 956.0, + "visual_restoration": 41.31, + "horizon_stage_mix": [ + 1, + 2, + 5 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.04245061076054335 + ], + "500": [ + 1, + 2, + 0.05608830462921044 + ], + "1500": [ + 1, + 2, + 0.09716313416795937 + ] + } + }, + { + "frame": 8, + "distance": 964.0, + "visual_restoration": 42.74, + "horizon_stage_mix": [ + 1, + 2, + 6 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.07432446935824909 + ], + "500": [ + 1, + 2, + 0.09142646816129499 + ], + "1500": [ + 1, + 2, + 0.14030040526570847 + ] + } + }, + { + "frame": 9, + "distance": 972.0, + "visual_restoration": 44.16, + "horizon_stage_mix": [ + 1, + 2, + 8 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.11350493898919883 + ], + "500": [ + 1, + 2, + 0.1336414057492642 + ], + "1500": [ + 1, + 2, + 0.1892398579759439 + ] + } + }, + { + "frame": 10, + "distance": 980.0, + "visual_restoration": 45.59, + "horizon_stage_mix": [ + 1, + 2, + 10 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.1590539128019439 + ], + "500": [ + 1, + 2, + 0.1817950105416694 + ], + "1500": [ + 1, + 2, + 0.24304338544721704 + ] + } + }, + { + "frame": 11, + "distance": 988.0, + "visual_restoration": 47.01, + "horizon_stage_mix": [ + 1, + 2, + 12 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.21003328394503418 + ], + "500": [ + 1, + 2, + 0.23494917568706056 + ], + "1500": [ + 1, + 2, + 0.30077288082807796 + ] + } + }, + { + "frame": 12, + "distance": 996.0, + "visual_restoration": 48.44, + "horizon_stage_mix": [ + 1, + 2, + 14 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.26550494556702053 + ], + "500": [ + 1, + 2, + 0.29216579433398854 + ], + "1500": [ + 1, + 2, + 0.3614902372670771 + ] + } + }, + { + "frame": 13, + "distance": 1004.0, + "visual_restoration": 49.86, + "horizon_stage_mix": [ + 1, + 2, + 16 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.32453079081645353 + ], + "500": [ + 1, + 2, + 0.35250675963100364 + ], + "1500": [ + 1, + 2, + 0.42425734791276554 + ] + } + }, + { + "frame": 14, + "distance": 1012.0, + "visual_restoration": 51.29, + "horizon_stage_mix": [ + 1, + 2, + 18 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.3861727128418838 + ], + "500": [ + 1, + 2, + 0.4150339647266568 + ], + "1500": [ + 1, + 2, + 0.4881361059136934 + ] + } + }, + { + "frame": 15, + "distance": 1020.0, + "visual_restoration": 52.71, + "horizon_stage_mix": [ + 1, + 2, + 20 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.4494926047918618 + ], + "500": [ + 1, + 2, + 0.47880930276949846 + ], + "1500": [ + 1, + 2, + 0.5521884044184114 + ] + } + }, + { + "frame": 16, + "distance": 1028.0, + "visual_restoration": 54.14, + "horizon_stage_mix": [ + 1, + 2, + 22 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5135523598149382 + ], + "500": [ + 1, + 2, + 0.5428946669080791 + ], + "1500": [ + 1, + 2, + 0.6154761365754704 + ] + } + }, + { + "frame": 17, + "distance": 1036.0, + "visual_restoration": 55.56, + "horizon_stage_mix": [ + 1, + 2, + 24 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.5774138710596637 + ], + "500": [ + 1, + 2, + 0.6063519502909496 + ], + "1500": [ + 1, + 2, + 0.6770611955334208 + ] + } + }, + { + "frame": 18, + "distance": 1044.0, + "visual_restoration": 56.99, + "horizon_stage_mix": [ + 1, + 2, + 25 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.6401390316745882 + ], + "500": [ + 1, + 2, + 0.6682430460666597 + ], + "1500": [ + 1, + 2, + 0.7360054744408125 + ] + } + }, + { + "frame": 19, + "distance": 1052.0, + "visual_restoration": 58.41, + "horizon_stage_mix": [ + 1, + 2, + 27 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7007897348082633 + ], + "500": [ + 1, + 2, + 0.7276298473837612 + ], + "1500": [ + 1, + 2, + 0.7913708664461976 + ] + } + }, + { + "frame": 20, + "distance": 1060.0, + "visual_restoration": 59.84, + "horizon_stage_mix": [ + 1, + 2, + 29 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.7584278736092387 + ], + "500": [ + 1, + 2, + 0.7835742473908034 + ], + "1500": [ + 1, + 2, + 0.842219264698125 + ] + } + }, + { + "frame": 21, + "distance": 1068.0, + "visual_restoration": 61.26, + "horizon_stage_mix": [ + 1, + 2, + 30 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8121153412260653 + ], + "500": [ + 1, + 2, + 0.835138139236338 + ], + "1500": [ + 1, + 2, + 0.8876125623451462 + ] + } + }, + { + "frame": 22, + "distance": 1076.0, + "visual_restoration": 62.69, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.8609140308072939 + ], + "500": [ + 1, + 2, + 0.881383416068915 + ], + "1500": [ + 1, + 2, + 0.9266126525358117 + ] + } + }, + { + "frame": 23, + "distance": 1084.0, + "visual_restoration": 64.11, + "horizon_stage_mix": [ + 1, + 2, + 31 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9038858355014753 + ], + "500": [ + 1, + 2, + 0.9213719710370853 + ], + "1500": [ + 1, + 2, + 0.9582814284186723 + ] + } + }, + { + "frame": 24, + "distance": 1092.0, + "visual_restoration": 65.54, + "horizon_stage_mix": [ + 1, + 2, + 32 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9400926484571591 + ], + "500": [ + 1, + 2, + 0.9541656972893988 + ], + "1500": [ + 1, + 2, + 0.9816807831422779 + ] + } + }, + { + "frame": 25, + "distance": 1100.0, + "visual_restoration": 66.97, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9685963628228966 + ], + "500": [ + 1, + 2, + 0.978826487974407 + ], + "1500": [ + 1, + 2, + 0.9958726098551796 + ] + } + }, + { + "frame": 26, + "distance": 1108.0, + "visual_restoration": 68.39, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9884588717472382 + ], + "500": [ + 1, + 2, + 0.9944162362406599 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 27, + "distance": 1116.0, + "visual_restoration": 69.82, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 1, + 2, + 0.9987420683787346 + ], + "500": [ + 1, + 2, + 0.999996835236708 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 28, + "distance": 1124.0, + "visual_restoration": 71.24, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + }, + { + "frame": 29, + "distance": 1132.0, + "visual_restoration": 72.67, + "horizon_stage_mix": [ + 2, + 2, + 0 + ], + "bank_stage_mix_by_depth": { + "100": [ + 2, + 2, + 0.0 + ], + "500": [ + 2, + 2, + 0.0 + ], + "1500": [ + 2, + 2, + 0.0 + ] + } + } + ] + } + ], + "works": [ + { + "file": "obra-01-ponto_troca-antes.png", + "upgrade": "ponto_troca", + "state": "antes", + "owned_before_capture": [] + }, + { + "file": "obra-01-ponto_troca-depois.png", + "upgrade": "ponto_troca", + "state": "depois", + "owned_before_capture": [ + "ponto_troca" + ] + }, + { + "file": "obra-02-horta-antes.png", + "upgrade": "horta", + "state": "antes", + "owned_before_capture": [ + "ponto_troca" + ] + }, + { + "file": "obra-02-horta-depois.png", + "upgrade": "horta", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta" + ] + }, + { + "file": "obra-03-paineis-antes.png", + "upgrade": "paineis", + "state": "antes", + "owned_before_capture": [ + "ponto_troca", + "horta" + ] + }, + { + "file": "obra-03-paineis-depois.png", + "upgrade": "paineis", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis" + ] + }, + { + "file": "obra-04-compostor-antes.png", + "upgrade": "compostor", + "state": "antes", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis" + ] + }, + { + "file": "obra-04-compostor-depois.png", + "upgrade": "compostor", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor" + ] + }, + { + "file": "obra-05-cisterna-antes.png", + "upgrade": "cisterna", + "state": "antes", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor" + ] + }, + { + "file": "obra-05-cisterna-depois.png", + "upgrade": "cisterna", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna" + ] + }, + { + "file": "obra-06-bicicletario-antes.png", + "upgrade": "bicicletario", + "state": "antes", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna" + ] + }, + { + "file": "obra-06-bicicletario-depois.png", + "upgrade": "bicicletario", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna", + "bicicletario" + ] + }, + { + "file": "obra-07-telhado_verde-antes.png", + "upgrade": "telhado_verde", + "state": "antes", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna", + "bicicletario" + ] + }, + { + "file": "obra-07-telhado_verde-depois.png", + "upgrade": "telhado_verde", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna", + "bicicletario", + "telhado_verde" + ] + }, + { + "file": "obra-08-turbina-antes.png", + "upgrade": "turbina", + "state": "antes", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna", + "bicicletario", + "telhado_verde" + ] + }, + { + "file": "obra-08-turbina-depois.png", + "upgrade": "turbina", + "state": "depois", + "owned_before_capture": [ + "ponto_troca", + "horta", + "paineis", + "compostor", + "cisterna", + "bicicletario", + "telhado_verde", + "turbina" + ] + } + ], + "limitations": [ + "amostragem visual deterministica; nao representa controles ou fisica de um voo", + "reduzir movimento afeta efeitos do renderer; distancia de mundo ainda avanca entre quadros" + ] +} diff --git a/docs/validacao-v1.7/primeiro-minuto.json b/docs/validacao-v1.7/primeiro-minuto.json new file mode 100644 index 0000000..78944f4 --- /dev/null +++ b/docs/validacao-v1.7/primeiro-minuto.json @@ -0,0 +1,151 @@ +{ + "profile": "synthetic", + "conditions": "60 seconds of real FlightRun updates; entities removed before each update to isolate recovery without collections/collisions; renderer used only at sampled times; no user data", + "flights": { + "amazonia": [ + { + "seconds": 0, + "restoration": 5.0, + "visual": 5.0, + "stars": 0, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "amazonia-00s-sem-coletas.png" + }, + { + "seconds": 15, + "restoration": 20.0, + "visual": 17.221, + "stars": 0, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "amazonia-15s-sem-coletas.png" + }, + { + "seconds": 30, + "restoration": 35.0, + "visual": 32.208, + "stars": 1, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "amazonia-30s-sem-coletas.png" + }, + { + "seconds": 45, + "restoration": 50.0, + "visual": 47.208, + "stars": 1, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "amazonia-45s-sem-coletas.png" + }, + { + "seconds": 60, + "restoration": 65.0, + "visual": 62.208, + "stars": 1, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "amazonia-60s-sem-coletas.png" + } + ], + "caatinga": [ + { + "seconds": 0, + "restoration": 5.0, + "visual": 5.0, + "stars": 0, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "caatinga-00s-sem-coletas.png" + }, + { + "seconds": 15, + "restoration": 20.0, + "visual": 17.221, + "stars": 0, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "caatinga-15s-sem-coletas.png" + }, + { + "seconds": 30, + "restoration": 35.0, + "visual": 32.208, + "stars": 1, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "caatinga-30s-sem-coletas.png" + }, + { + "seconds": 45, + "restoration": 50.0, + "visual": 47.208, + "stars": 1, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "caatinga-45s-sem-coletas.png" + }, + { + "seconds": 60, + "restoration": 65.0, + "visual": 62.208, + "stars": 1, + "resources": { + "papel": 0, + "plastico": 0, + "metal": 0, + "vidro": 0 + }, + "collected": 0, + "file": "caatinga-60s-sem-coletas.png" + } + ] + }, + "status": "ok" +} diff --git a/docs/validacao-v1.7/regressao-visual.json b/docs/validacao-v1.7/regressao-visual.json new file mode 100644 index 0000000..c7e401c --- /dev/null +++ b/docs/validacao-v1.7/regressao-visual.json @@ -0,0 +1,22 @@ +{ + "opcoes-acessibilidade.png": { + "ok": true, + "mean_absolute_channel_error": 0.0, + "fraction_pixels_difference_over_32": 0.0 + }, + "opcoes-controle.png": { + "ok": true, + "mean_absolute_channel_error": 0.0, + "fraction_pixels_difference_over_32": 0.0 + }, + "opcoes-som.png": { + "ok": true, + "mean_absolute_channel_error": 0.0, + "fraction_pixels_difference_over_32": 0.0 + }, + "opcoes-superficie.png": { + "ok": true, + "mean_absolute_channel_error": 0.0, + "fraction_pixels_difference_over_32": 0.0 + } +} diff --git a/docs/validacao-v1.7/self-test.json b/docs/validacao-v1.7/self-test.json new file mode 100644 index 0000000..f516569 --- /dev/null +++ b/docs/validacao-v1.7/self-test.json @@ -0,0 +1,122 @@ +{ + "versao": "1.7.0", + "frozen": false, + "pygame": "2.6.1", + "sprites": { + "biome_sprites": 48, + "era_final_sprites": 26, + "dieselpunk_sprites": 8, + "scenario_sprites": 27, + "waste_sprites": 4, + "powerup_sprites": 3, + "plane_sprites": 22, + "plane_menu": 22, + "pilot_layers": 106, + "ui": 2, + "ground": 6 + }, + "telas": { + "abertura": { + "media_ms": 1.24, + "p95_ms": 1.23 + }, + "vila": { + "media_ms": 27.65, + "p95_ms": 15.66 + }, + "mapa": { + "media_ms": 54.43, + "p95_ms": 82.56 + }, + "hangar": { + "media_ms": 11.05, + "p95_ms": 12.92 + }, + "hangar_padrao": { + "media_ms": 20.12, + "p95_ms": 15.97 + }, + "piloto": { + "media_ms": 10.7, + "p95_ms": 11.78 + }, + "selecao": { + "media_ms": 11.52, + "p95_ms": 11.46 + }, + "preparar": { + "media_ms": 11.02, + "p95_ms": 11.48 + }, + "melhorias": { + "media_ms": 13.85, + "p95_ms": 13.93 + }, + "melhorias_aviao": { + "media_ms": 15.25, + "p95_ms": 14.9 + }, + "opcoes": { + "media_ms": 9.68, + "p95_ms": 10.09 + }, + "projecao": { + "media_ms": 8.41, + "p95_ms": 8.67 + }, + "sobre": { + "media_ms": 96.53, + "p95_ms": 94.94 + }, + "ods": { + "media_ms": 86.0, + "p95_ms": 86.89 + } + }, + "voos": { + "amazonia": { + "quadros": 1200, + "quadros_preparo": 15, + "segundos_ativos": 20.0, + "distancia": 3530.956, + "carga_sintetica": "invencivel; encerramento por conclusao desativado", + "transformacao": 100.0, + "estrelas": 2, + "estagio": 2, + "recursos": { + "papel": 0, + "plastico": 8, + "metal": 0, + "vidro": 0 + }, + "pontos": 130, + "media_ms": 11.81, + "p95_ms": 18.53 + }, + "caatinga": { + "quadros": 1200, + "quadros_preparo": 18, + "segundos_ativos": 20.0, + "distancia": 3530.826, + "carga_sintetica": "invencivel; encerramento por conclusao desativado", + "transformacao": 100.0, + "estrelas": 2, + "estagio": 2, + "recursos": { + "papel": 4, + "plastico": 0, + "metal": 0, + "vidro": 4 + }, + "pontos": 130, + "media_ms": 8.19, + "p95_ms": 13.06 + } + }, + "camera": { + "modelo": "pose_landmarker_lite.task", + "detector": "ok" + }, + "falhas": [], + "status": "ok" +} diff --git a/docs/visual-reference/v170/README.md b/docs/visual-reference/v170/README.md new file mode 100644 index 0000000..c4e6148 --- /dev/null +++ b/docs/visual-reference/v170/README.md @@ -0,0 +1,9 @@ +# Referências visuais 1.7 + +Quatro páginas de Opções, revisadas em 25/10/2026. Captura em 1100 × 650, pygame 2.6.1, fontes embutidas, `SDL_VIDEODRIVER=dummy` e perfil sintético, com `tools/capture_release.py --reference`. Redução de movimento elimina variação de câmera decorativa. + +Referências revistas após a antecipação da mistura da paisagem: o céu decorativo dos menus muda de forma intencional. As quatro capturas foram inspecionadas; textos, botões e sua geometria permanecem iguais. Os limites da comparação não foram relaxados. + +`tools/visual_regression.py` exige dimensões iguais, erro médio absoluto por canal até 1 e no máximo 1% dos pixels com diferença acima de 32. Isso detecta perda de botões/layout e tolera pequenas diferenças de rasterização. Atualizar estes PNGs exige inspeção visual; não regenere a referência apenas para silenciar uma falha do CI. + +Voos e transições são conferidos separadamente pela galeria temporal, testes geométricos e métricas. Estes quatro menus não validam conforto de controle ou leitura no projetor. diff --git a/docs/visual-reference/v170/opcoes-acessibilidade.png b/docs/visual-reference/v170/opcoes-acessibilidade.png new file mode 100644 index 0000000..e594c04 Binary files /dev/null and b/docs/visual-reference/v170/opcoes-acessibilidade.png differ diff --git a/docs/visual-reference/v170/opcoes-controle.png b/docs/visual-reference/v170/opcoes-controle.png new file mode 100644 index 0000000..6f29255 Binary files /dev/null and b/docs/visual-reference/v170/opcoes-controle.png differ diff --git a/docs/visual-reference/v170/opcoes-som.png b/docs/visual-reference/v170/opcoes-som.png new file mode 100644 index 0000000..b471b18 Binary files /dev/null and b/docs/visual-reference/v170/opcoes-som.png differ diff --git a/docs/visual-reference/v170/opcoes-superficie.png b/docs/visual-reference/v170/opcoes-superficie.png new file mode 100644 index 0000000..f448f31 Binary files /dev/null and b/docs/visual-reference/v170/opcoes-superficie.png differ diff --git a/pyproject.toml b/pyproject.toml index 2322e3c..2bc0a44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,3 +36,12 @@ ignore = ["UP006", "UP007", "UP035", "UP045", "B008"] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "-p no:cacheprovider" + +[tool.mypy] +python_version = "3.8" +files = ["dobramundo/profile_model.py", "dobramundo/input/telemetry.py", "dobramundo/engine/contracts.py"] +follow_imports = "skip" +ignore_missing_imports = true +check_untyped_defs = true +disallow_untyped_defs = true +no_implicit_optional = true diff --git a/requirements-ci-py312.txt b/requirements-ci-py312.txt index 9e8dbc6..421406e 100644 --- a/requirements-ci-py312.txt +++ b/requirements-ci-py312.txt @@ -6,6 +6,8 @@ pytest==9.1.1 pytest-cov==5.0.0 coverage==7.6.1 ruff==0.17.2 +mypy==1.14.1 +mypy_extensions==1.0.0 iniconfig==2.3.1 packaging==26.3 pluggy==1.7.0 diff --git a/requirements-ci-py38.txt b/requirements-ci-py38.txt index 81b0767..87109f7 100644 --- a/requirements-ci-py38.txt +++ b/requirements-ci-py38.txt @@ -6,6 +6,8 @@ pytest==8.3.5 pytest-cov==5.0.0 coverage==7.6.1 ruff==0.17.2 +mypy==1.14.1 +mypy_extensions==1.0.0 iniconfig==2.1.0 packaging==25.0 pluggy==1.5.0 diff --git a/tests/test_active_recovery.py b/tests/test_active_recovery.py new file mode 100644 index 0000000..3bf710d --- /dev/null +++ b/tests/test_active_recovery.py @@ -0,0 +1,119 @@ +"""Recuperação ambiental pelo voo, sem recursos nem aceleração passiva.""" + +from __future__ import annotations + +import random + +from dobramundo import config as C +from dobramundo.content.biomes import BIOMES +from dobramundo.content.items import WASTE_KEYS +from dobramundo.game.entities import Entity +from dobramundo.game.run import FlightRun +from dobramundo.game.settlement import apply_run +from dobramundo.game.world import World +from dobramundo.profile_model import Profile +from dobramundo.scenes.flight import FlightScene + + +def test_active_recovery_moves_shared_progress_but_not_speed_or_spawn_progress(): + run = FlightRun(BIOMES["amazonia"], rng=random.Random(11), city_restoration=12.0) + before_speed = run.speed + before_spawn = run.world.spawn_restoration + before_resources = dict(run.resources) + before_score = run.score + + run.add_active_recovery(15.0) + + assert run.restoration == 27.0 + assert run.world.visual == 12.0 # render catches up through ease_visual() + assert run.world.spawn_restoration == before_spawn + assert run.speed == before_speed + assert run.resources == before_resources and run.score == before_score + + +def test_collection_accelerates_recovery_and_keeps_speed_gain_separate(): + run = FlightRun(BIOMES["amazonia"], "normal", rng=random.Random(12)) + run.add_active_recovery(10.0) + after_passive = run.restoration + passive_speed = run.speed + entity = Entity(800.0, 0.0, "waste", 20.0, WASTE_KEYS[0]) + + run.collect_waste(entity) + + assert run.restoration == after_passive + C.NORMAL_RESTORATION_PER_TRASH + assert run.world.spawn_restoration == C.START_RESTORATION + C.NORMAL_RESTORATION_PER_TRASH + assert run.speed > passive_speed # only the earned local ramp accelerates the airplane + assert run.resources[WASTE_KEYS[0]] > 0 and run.score > 0 + + +def test_tutorial_or_nonspawn_run_does_not_gain_active_recovery(): + run = FlightRun(BIOMES["amazonia"], spawn_enabled=False) + before = run.restoration + run.add_active_recovery(60.0) + assert run.restoration == before + + +def test_recovery_changes_visual_landscape_without_changing_spawn_threat_share(): + world = World(BIOMES["amazonia"], rng=random.Random(13), restoration=C.START_RESTORATION) + world.add_restoration(70.0, earned=False) + world.ease_visual(60.0) + + assert world.solar_share() > 0.0 # the city's visible transformation continues + assert world.spawn_solar_share() == 0.0 + assert not world.spawn_is_solar(1000.0) # passive recovery never selects solar threats + + +def test_passive_recovery_is_persisted_as_city_progress_only(): + profile = Profile() + run = FlightRun(BIOMES["amazonia"], rng=random.Random(14)) + run.add_active_recovery(20.0) + before_resources = dict(run.resources) + before_points = run.score + + apply_run(profile, run) + + assert profile.transformacao_cidades["amazonia"] == run.restoration + assert profile.recursos == before_resources + assert profile.pontos == before_points == 0 + + +def test_passive_recovery_at_complete_city_does_not_award_third_star(): + parts = {part: 1 for part in BIOMES["amazonia"].required_parts} + run = FlightRun( + BIOMES["amazonia"], + "normal", + parts=parts, + city_restoration=100.0, + starting_stars=2, + ) + + run.add_active_recovery(30.0) + + assert run.restoration == 100.0 + assert run.stars == 2 + assert not run.complete + assert not any(name in ("star", "complete") for name, _ in run.take_events()) + + run.collect_waste(Entity(800.0, 0.0, "waste", 20.0, WASTE_KEYS[0])) + assert run.stars == 3 + assert ("star", 3) in run.take_events() + + +def test_flight_scene_does_not_recover_during_warmup_or_pause(app): + scene = FlightScene(app, "amazonia") + starting = scene.run.restoration + app.view.warm_queue = [("teste", lambda: None)] + app.view._warmup_index = 0 + scene.update(1.0) + assert scene.run.restoration == starting + + app.view._warmup_index = 1 + scene.paused = True + scene.update(1.0) + assert scene.run.restoration == starting + + scene.paused = False + scene.run.world.entities.clear() + scene.run.world.advance = lambda dt, dz: None + scene.update(0.04) + assert scene.run.restoration > starting diff --git a/tests/test_avioes_pintados.py b/tests/test_avioes_pintados.py index e25729a..fb38daa 100644 --- a/tests/test_avioes_pintados.py +++ b/tests/test_avioes_pintados.py @@ -104,4 +104,6 @@ def test_piloto_em_voo_fica_no_cockpit_sem_pernas_penduradas(app): if plane.get_at((x, y)) != mounted.get_at((x, y)) ] assert changed - assert max(y for _x, y in changed) < plane.get_height() * 0.40 + # A pose sentada maior continua dentro do cockpit, sem pernas fora da fuselagem. + assert max(y for _x, y in changed) < plane.get_height() * 0.55 + assert max(y for _x, y in changed) - min(y for _x, y in changed) > plane.get_height() * 0.20 diff --git a/tests/test_cenas.py b/tests/test_cenas.py index f45a210..35beda6 100644 --- a/tests/test_cenas.py +++ b/tests/test_cenas.py @@ -85,24 +85,23 @@ def test_inicio_passa_pelo_aviso_na_primeira_vez(app): app.profile.piloto_montado = True consent = first_scene(app) assert isinstance(consent, ConsentScene) - assert isinstance(consent.next_scene, VillageScene) + assert isinstance(consent.next_scene, IntroScene) + assert isinstance(consent.next_scene.next_scene, VillageScene) -def test_a_primeira_tela_e_montar_o_piloto(app): - """Aviso e treino de permanência precedem a primeira personalização.""" +def test_primeiro_uso_segue_piloto_historia_e_vila(app): + """Consentimento, piloto, abertura pulável e vila compõem a primeira cadeia.""" from dobramundo.scenes.pilot import PilotScene - from dobramundo.scenes.tutorial import DwellPracticeScene app.profile.consentimento = False app.profile.piloto_montado = False app.profile.abertura_vista = False first = first_scene(app) assert isinstance(first, ConsentScene) - practice = first.next_scene - assert isinstance(practice, DwellPracticeScene) - pilot = practice.next_scene + pilot = first.next_scene assert isinstance(pilot, PilotScene) and pilot.first_time - assert isinstance(pilot.return_to, VillageScene) + assert isinstance(pilot.return_to, IntroScene) + assert isinstance(pilot.return_to.next_scene, VillageScene) pilot.finish() assert app.profile.piloto_montado assert app.next_scene is pilot.return_to @@ -112,7 +111,9 @@ def test_historia_nao_bloqueia_primeiro_uso(app): app.profile.piloto_montado = True app.profile.consentimento = True app.profile.abertura_vista = False - assert isinstance(first_scene(app), VillageScene) + scene = first_scene(app) + assert isinstance(scene, IntroScene) + assert isinstance(scene.next_scene, VillageScene) def test_comprar_melhoria_da_vila_desconta_recursos(app): @@ -141,13 +142,10 @@ def test_comprar_padrao_usa_pontos(app): assert "galaxia" not in app.profile.owned_patterns -def test_mapa_bloqueia_a_caatinga_sem_estrela(app): +def test_mapa_disponibiliza_a_caatinga_sem_estrela(app): scene = show(app, MapScene(app)) caatinga = next(b for b in scene.menu.buttons if b.key == "caatinga") - assert not caatinga.enabled - app.profile.estrelas["amazonia"] = 1 - scene.build() - assert next(b for b in scene.menu.buttons if b.key == "caatinga").enabled + assert caatinga.enabled def test_pausa_do_supervisor(app): @@ -237,6 +235,9 @@ def test_controle_corporal_sem_calibrar_pede_calibracao(app): def test_fim_do_voo_vai_para_o_resultado(app): scene = show(app, FlightScene(app, "caatinga")) + while app.view.warmup_pending: + app.view.step_warm_up(100.0) + app.step(1 / 60, []) scene.run.add_restoration(100.0) for _ in range(60 * 4): app.step(1 / 60, []) diff --git a/tests/test_city_flight_progress.py b/tests/test_city_flight_progress.py new file mode 100644 index 0000000..1c31257 --- /dev/null +++ b/tests/test_city_flight_progress.py @@ -0,0 +1,148 @@ +"""Regressões da progressão entre voos e de recompensas sem duplicação.""" + +from __future__ import annotations + +import random + +from conftest import make_run + +from dobramundo import config as C +from dobramundo.content.biomes import BIOMES +from dobramundo.content.items import WASTE_KEYS +from dobramundo.game.entities import Entity +from dobramundo.game.run import FlightRun +from dobramundo.game.settlement import apply_run +from dobramundo.scenes.flight import FlightScene +from dobramundo.scenes.preparation import PreparationScene + + +def test_city_progress_is_persisted_and_the_next_flight_keeps_local_speed_ramp(app): + run = make_run() + run.add_restoration(24) + saved_speed = run.speed + apply_run(app.profile, run) + + next_flight = FlightScene(app, "amazonia") + assert app.profile.transformacao_cidades["amazonia"] == run.restoration + assert next_flight.run.restoration == run.restoration + assert next_flight.run.local_restoration == C.START_RESTORATION + assert next_flight.run.speed < saved_speed + + +def test_legacy_stars_seed_a_compatible_city_visual(app): + app.profile.estrelas["amazonia"] = 2 + app.profile.transformacao_cidades.pop("amazonia", None) + flight = FlightScene(app, "amazonia") + assert flight.run.restoration == 2 * C.ERA_SPAN + assert flight.run.stars == 2 + + +def test_partial_settlement_keeps_city_progress_and_is_idempotent(app): + run = make_run() + run.interrupted = True + run.resources["papel"] = 3 + run.add_restoration(12) + before_flights = app.profile.voos + + first = apply_run(app.profile, run) + again = apply_run(app.profile, run) + + assert first == again + assert app.profile.transformacao_cidades["amazonia"] == run.restoration + assert app.profile.voos == before_flights + 1 + assert app.profile.recursos["papel"] == 3 + assert app.profile.estrelas.get("amazonia", 0) == run.stars + assert app.profile.historico[-1]["interrompida"] == 1 + + +def test_city_at_100_does_not_end_replay_or_repeat_existing_stars(): + run = FlightRun( + BIOMES["amazonia"], + "normal", + {}, + rng=random.Random(4), + city_restoration=100, + starting_stars=2, + ) + run.player.maneuver = None + run.world.entities.clear() + run.world.spawn_pattern = lambda z: None + + assert run.restoration == 100 + assert run.stars == 2 + assert not run.complete and not run.finished + run.add_restoration(1) + assert run.stars == 2 + assert not run.complete and not any(event[0] in ("star", "complete") for event in run.take_events()) + + +def test_city_at_100_can_award_new_part_star_without_recompleting(): + parts = {part: 1 for part in BIOMES["amazonia"].required_parts} + run = FlightRun( + BIOMES["amazonia"], + parts=parts, + city_restoration=100, + starting_stars=2, + seed=1, + ) + run.add_restoration(1) + events = run.take_events() + assert run.stars == 3 + assert ("star", 3) in events + assert not run.complete and not any(name == "complete" for name, _ in events) + + +def test_city_bonus_does_not_accelerate_the_local_speed_ramp(): + normal = make_run(mode="normal") + normal.collect_waste(Entity(800, 0, "waste", 20, WASTE_KEYS[0])) + assert normal.local_restoration == C.START_RESTORATION + C.NORMAL_SPEED_RESTORATION_PER_TRASH + assert normal.restoration == C.START_RESTORATION + C.NORMAL_RESTORATION_PER_TRASH + + difficult = make_run(mode="dificil") + difficult.collect_waste(Entity(800, 0, "waste", 20, WASTE_KEYS[0])) + assert difficult.local_restoration == C.START_RESTORATION + C.DIFFICULT_SPEED_RESTORATION_PER_TRASH + assert difficult.restoration == C.START_RESTORATION + C.RESTORATION_PER_TRASH + + +def test_replay_keeps_seed_and_uses_current_city_state(app): + app.profile.transformacao_cidades["amazonia"] = 68.0 + run = FlightRun(BIOMES["amazonia"], seed=71, city_restoration=24.0) + result = app.create_scene("resultado", run) + result.build() + replay = result.menu.buttons[0] + assert replay.label == "Voar de novo" + assert replay.sublabel == "Nova decolagem · progresso mantido" + + result.again() + assert app.next_scene.run.seed == 71 + assert app.next_scene.run.restoration == 68.0 + + +def test_first_three_flights_get_default_assistance_until_explicit_choice(app): + app.profile.apoio_escolhido = False + app.profile.voos = 0 + app.options.assistencia_previsivel = False + assert FlightScene(app, "amazonia").run.predictable_assistance + app.profile.voos = 2 + assert FlightScene(app, "amazonia").run.predictable_assistance + app.profile.voos = 3 + assert not FlightScene(app, "amazonia").run.predictable_assistance + + app.profile.voos = 0 + app.profile.apoio_escolhido = True + assert not FlightScene(app, "amazonia").run.predictable_assistance + scene = PreparationScene(app) + scene.set_option("assistencia_previsivel", True) + assert app.profile.apoio_escolhido + assert FlightScene(app, "amazonia").run.predictable_assistance + + +def test_spawn_disabled_policy_keeps_a_backdrop_world_empty(): + import random + + from dobramundo.game.world import World + + world = World(BIOMES["amazonia"], rng=random.Random(7), intro=True, spawn_enabled=False) + assert not world.entities + world.advance(10.0, 1000.0) + assert not world.entities diff --git a/tests/test_cobertura.py b/tests/test_cobertura.py index 7d1cfc3..4fc2ffa 100644 --- a/tests/test_cobertura.py +++ b/tests/test_cobertura.py @@ -288,7 +288,7 @@ def relatorio(sprites=None, estagio: int = 2, detector: str = "ok") -> dict: sprites = {nome: 3 for nome in REQUIRED_SPRITES} return { "sprites": sprites, - "voos": {"amazonia": {"estagio": estagio}}, + "voos": {"amazonia": {"estagio": estagio, "segundos_ativos": 20, "distancia": 3400}}, "camera": {"detector": detector}, } diff --git a/tests/test_console_e_chao.py b/tests/test_console_e_chao.py index 764bf4e..a7a7c9e 100644 --- a/tests/test_console_e_chao.py +++ b/tests/test_console_e_chao.py @@ -17,12 +17,13 @@ from dobramundo import __version__ from dobramundo import config as C from dobramundo.engine.orientation import game_to_screen, orient, rotate_point, screen_to_game, unrotate_point -from dobramundo.input.console import TrackingSource, body_points -from dobramundo.input.floor import TARGETS, FloorMap, apply, feet_point, homography +from dobramundo.input.console import TrackingSource, body_points, floor_indicator_position, floor_position +from dobramundo.input.floor import TARGETS, FloorMap, apply, expand_reach, feet_point, homography from dobramundo.input.hub import RECENTER_S, InputHub from dobramundo.input.pose import SEGMENTS, AxisMapper, BodyControl, FloorControl from dobramundo.persistence import Profile from dobramundo.scenes.projection import SHOW_TARGETS_S, ProjectionScene +from dobramundo.ui.widgets import Button, Menu ROOT = Path(__file__).resolve().parent.parent ROTACOES = (0, 90, 180, 270) @@ -115,6 +116,177 @@ def test_locator_com_alvos_iguais_a_camera(): ) +@pytest.mark.parametrize( + "point, expected", + [ + ((0.15, 0.15), (0.0, 0.0)), + ((0.85, 0.15), (1.0, 0.0)), + ((0.85, 0.85), (1.0, 1.0)), + ((0.15, 0.85), (0.0, 1.0)), + ((0.5, 0.5), (0.5, 0.5)), + ], +) +def test_alcance_expandido_mantem_centro_e_leva_marcadores_aos_cantos(point, expected): + assert expand_reach(point) == pytest.approx(expected) + locate = FloorMap(TARGETS).locator(0, False, 0.0) + landmarks_at_point = _pontos_corpo({29: point, 31: point, 30: point, 32: point}) + assert locate(landmarks_at_point) == pytest.approx(expected) + + +@pytest.mark.parametrize("rotation", ROTACOES) +@pytest.mark.parametrize("mirrored", (False, True)) +def test_quatro_cantos_com_offset_maximo_preservam_o_alcance(rotation, mirrored): + locate = FloorMap(TARGETS).locator(rotation, mirrored, 0.35) + corners = ((0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0)) + for marker, corner in zip(TARGETS, corners): + camera_point = rotate_point(*marker, rotation, mirrored) + points = _pontos_corpo({29: camera_point, 31: camera_point, 30: camera_point, 32: camera_point}) + assert locate(points) == pytest.approx(corner) + + +def test_alcance_do_console_admite_um_pe_na_borda_sem_perder_o_centro(): + left = type("Foot", (), {"x": 0.75, "y": 0.5, "visibility": 0.9})() + right = type("Foot", (), {"x": 1.0, "y": 0.5, "visibility": 0.9})() + tracking = type( + "Frame", + (), + { + "missing": False, + "stale": False, + "feet": {"left": left, "right": right}, + "out_of_area": {"left": False, "right": True}, + "control_target": None, + "control_target_active": False, + }, + )() + assert floor_position(tracking) == pytest.approx((1.0, 0.5)) + tracking.feet = { + "left": type("Foot", (), {"x": 0.49, "y": 0.49, "visibility": 0.9})(), + "right": type("Foot", (), {"x": 0.51, "y": 0.51, "visibility": 0.9})(), + } + tracking.out_of_area = {"left": False, "right": False} + assert floor_position(tracking) == pytest.approx((0.5, 0.5)) + + +def test_alcance_do_console_preserva_alvo_offset_e_recusa_dois_pes_fora(): + foot = type("Foot", (), {"x": 0.5, "y": 0.5, "visibility": 0.9})() + target = type("Target", (), {"x": 0.5, "y": 0.38})() + tracking = type( + "Frame", + (), + { + "missing": False, + "stale": False, + "feet": {"left": foot, "right": foot}, + "out_of_area": {"left": False, "right": False}, + "control_target": target, + "control_target_active": True, + }, + )() + assert floor_position(tracking) == pytest.approx((0.5, 0.38)) + foot.y = 0.85 + target.y = 0.73 + assert floor_position(tracking) == pytest.approx((0.5, 1.0)) + tracking.control_target = None + assert floor_position(tracking) is None # target inválido não reutiliza a média bruta + tracking.out_of_area = {"left": True, "right": True} + assert floor_position(tracking) is None + + +def test_alcance_do_console_tem_fallback_para_tracking_frame_antigo(): + foot = type("Foot", (), {"x": 0.5, "y": 0.5, "visibility": 0.9})() + legacy = type( + "LegacyFrame", + (), + { + "missing": False, + "stale": False, + "feet": {"left": foot, "right": foot}, + "out_of_area": {"left": False, "right": False}, + }, + )() + assert floor_position(legacy) == pytest.approx((0.5, 0.5)) + + +def test_floorcontrol_filtra_jitter_e_reverte_da_borda_oposta(): + control = FloorControl(FakeSource(), lambda _landmarks: None) + edge = expand_reach((0.875, 0.5)) + for _ in range(16): + control.feed(edge, 1 / 30) + assert control.position()[0] > 0.99 + for point in ((0.49, 0.5), (0.51, 0.5)) * 8: + control.feed(point, 1 / 30) + assert control.position()[0] == pytest.approx(0.5, abs=0.03) + for _ in range(16): + control.feed(expand_reach((0.125, 0.5)), 1 / 30) + assert control.axes()[0] < -0.99 + + +@pytest.mark.parametrize( + "x, expected_x, key", + [(0.0, 0, "left"), (1.0, C.WIDTH - 1, "right")], +) +def test_cursor_de_pes_alcanca_e_aciona_botoes_nas_duas_bordas(x, expected_x, key): + source = FakeSource() + hub = InputHub() + hub.source_factory = lambda: source + point = [x, 0.5] + hub.set_floor(lambda _landmarks: tuple(point), "edge") + hub.set_segment("pes") + for _ in range(3): + source.show(_pontos_corpo(PES)) + hub.update(1 / 30) + pointer = hub.body_pointer() + assert pointer is not None and pointer[0] == expected_x + + hits = [] + menu = Menu( + [ + Button(pygame.Rect(0, 0, 150, C.HEIGHT), "left", lambda: hits.append("left"), key="left"), + Button( + pygame.Rect(C.WIDTH - 150, 0, 150, C.HEIGHT), + "right", + lambda: hits.append("right"), + key="right", + ), + ] + ) + assert menu.update(0.1, pointer, 0.1) + assert hits == [key] + + +def test_perda_dos_pes_nao_completa_permanencia_do_cursor(): + source = FakeSource() + hub = InputHub() + hub.source_factory = lambda: source + hub.set_floor(lambda points: (0.5, 0.5) if points is not None else None, "loss") + hub.set_segment("pes") + hits = [] + menu = Menu([Button(pygame.Rect(0, 0, C.WIDTH, C.HEIGHT), "alvo", lambda: hits.append("alvo"))]) + + source.show(_pontos_corpo(PES)) + hub.update(1 / 30) + pointer = hub.body_pointer() + assert pointer is not None + menu.update(0.2, pointer, 0.5) + + source.show(None) + hub.update(1 / 30) + assert hub.body_pointer() is None + menu.update(0.4, hub.body_pointer(), 0.5) + assert hits == [] + + +def test_marcador_de_voo_some_quando_os_dois_pes_estao_fora(): + body = FloorControl(FakeSource(), lambda _points: None) + body.point = (0.92, 0.5) # posição anterior continua guardada no controle + body.visible = False # o quadro atual informou ambos os pés fora da área + assert floor_indicator_position(body) is None + + body.visible = True + assert floor_indicator_position(body) == pytest.approx((0.92, 0.5)) + + def test_locator_sobe_com_o_cursor_a_frente(): locate = FloorMap(TARGETS).locator(0, False, 0.1) pes = {29: (0.5, 0.5), 31: (0.5, 0.5), 30: (0.5, 0.5), 32: (0.5, 0.5)} @@ -132,7 +304,7 @@ def test_locator_devolve_none_fora_da_projecao(): def test_locator_com_rotacao_180_inverte_a_posicao(): locate = FloorMap(TARGETS).locator(180, False, 0.0) pes = {29: (0.3, 0.4), 31: (0.3, 0.4), 30: (0.3, 0.4), 32: (0.3, 0.4)} - assert locate(_pontos_corpo(pes)) == pytest.approx((0.7, 0.6)) + assert locate(_pontos_corpo(pes)) == pytest.approx((0.7857142857, 0.6428571429)) # ------------------------------------------------------------------ pose diff --git a/tests/test_engine_cache_budget.py b/tests/test_engine_cache_budget.py new file mode 100644 index 0000000..7a36cff --- /dev/null +++ b/tests/test_engine_cache_budget.py @@ -0,0 +1,34 @@ +from dobramundo.engine.cache import BoundedCache, CacheBudget + + +def test_global_budget_counts_subsurface_backing_once_and_forgets_on_clear(display): + budget = CacheBudget(1024 * 1024) + first = BoundedCache(4, budget=budget) + second = BoundedCache(4, budget=budget) + source = display.subsurface((0, 0, 48, 32)).copy() + view = source.subsurface((2, 2, 16, 12)) + + first["source"] = source + retained = source.get_pitch() * source.get_height() + second["view"] = view + assert budget.retained_bytes() == retained + + del first["source"] + assert budget.retained_bytes() == retained + second.clear() + assert budget.retained_bytes() == 0 + + +def test_global_budget_trims_oldest_entry_across_cache_owners(display): + one = display.subsurface((0, 0, 4, 4)).copy() + two = display.subsurface((4, 0, 4, 4)).copy() + budget = CacheBudget(one.get_pitch() * one.get_height()) + older = BoundedCache(8, budget=budget) + newer = BoundedCache(8, budget=budget) + + older["old"] = one + newer["new"] = two + + assert "old" not in older + assert newer.get("new") is two + assert budget.retained_bytes() == two.get_pitch() * two.get_height() diff --git a/tests/test_engine_edge_threats.py b/tests/test_engine_edge_threats.py new file mode 100644 index 0000000..a5c11c9 --- /dev/null +++ b/tests/test_engine_edge_threats.py @@ -0,0 +1,74 @@ +import pygame +import pytest + +from dobramundo import config as C +from dobramundo.content.biomes import BIOMES +from dobramundo.engine.accessible_view import viewport +from dobramundo.engine.assets import Assets +from dobramundo.engine.world_view import WorldView +from dobramundo.game.entities import Entity +from dobramundo.game.world import World + + +@pytest.mark.parametrize("scale", [1.0, 1.3, 1.6]) +@pytest.mark.parametrize("lane", [-8, 8]) +def test_magnified_view_marks_clipped_threats_without_changing_hitbox(display, scale, lane): + view = WorldView(Assets()) + view.cam = 0.0 + obstacle = Entity(C.PLAYER_Z + 300, lane, "gate") + world = World(BIOMES["amazonia"]) + world.entities = [obstacle] + before = obstacle.hitbox() + crop = viewport(scale, (C.WIDTH / 2, C.HORIZON_Y + 190), (150, 120)) + display.fill((0, 0, 0)) + + marked = view.draw_edge_threats(display, world, crop) + + assert marked == (0 if scale == 1.0 else 1) + after = obstacle.hitbox() + assert (before.x_min, before.x_max, before.y_min, before.y_max, before.z_min, before.z_max) == ( + after.x_min, + after.x_max, + after.y_min, + after.y_max, + after.z_min, + after.z_max, + ) + if scale > 1.0: + assert any(pygame.image.tobytes(display, "RGB")) + + +@pytest.mark.parametrize( + ("kind", "z", "crop", "edge"), + [ + ("gate", 600.0, pygame.Rect(250, 180, 600, 220), "top"), + ("low", 300.0, pygame.Rect(250, 0, 600, 350), "bottom"), + ], +) +def test_edge_indicators_cover_vertical_crop_boundaries(display, kind, z, crop, edge): + view = WorldView(Assets()) + view.cam = 0.0 + world = World(BIOMES["amazonia"]) + spec = BIOMES["amazonia"].industrial_obstacles[kind][0] + world.entities = [Entity(z, 0, kind, spec=spec)] + display.fill((0, 0, 0)) + + assert view.draw_edge_threats(display, world, crop) == 1 + if edge == "top": + region = display.subsurface((crop.left, crop.top, crop.width, 40)) + else: + region = display.subsurface((crop.left, crop.bottom - 40, crop.width, 40)) + assert any(pygame.image.tobytes(region, "RGB")) + + +def test_edge_indicators_skip_hit_passed_and_behind_obstacles(display): + view = WorldView(Assets()) + view.cam = 0.0 + world = World(BIOMES["amazonia"]) + hit = Entity(C.PLAYER_Z + 300, 8, "gate", hit=True) + passed = Entity(C.PLAYER_Z + 300, -8, "low", passed=True) + behind = Entity(C.PLAYER_Z - 1, 8, "tower") + world.entities = [hit, passed, behind] + crop = viewport(1.6, (C.WIDTH / 2, C.HORIZON_Y + 190), (150, 120)) + + assert view.draw_edge_threats(display, world, crop) == 0 diff --git a/tests/test_engine_warmup.py b/tests/test_engine_warmup.py new file mode 100644 index 0000000..41918c8 --- /dev/null +++ b/tests/test_engine_warmup.py @@ -0,0 +1,136 @@ +from pathlib import Path + +import pygame + +from dobramundo.content.biomes import BIOMES +from dobramundo.engine.assets import Assets +from dobramundo.engine.contracts import PlaneLook +from dobramundo.engine.paper_items import PaperItems +from dobramundo.engine.world_view import WorldView + + +def test_biome_warmup_queue_is_side_effect_free_until_a_step(display): + assets = Assets() + view = WorldView(assets) + before = {Path(path).stem for path in assets._loaded} + + view.set_biome(BIOMES["amazonia"]) + + after = {Path(path).stem for path in assets._loaded} + assert not {"amazonia_0", "banks_amazonia", "fauna_sprint3"} & (after - before) + assert view.warmup_pending + assert view.warmup_progress == 0.0 + assert len(view.warm_queue) > 20 + assert view.warmup_status == "Preparando paisagem" + + view.step_warm_up(0.01) + + assert view.warmup_progress == 1 / len(view.warm_queue) + assert view.warmup_last_task_ms >= 0.0 + assert view.warmup_timings and view.warmup_timings[-1][0] == "Preparando paisagem" + assert view.watercolor.backdrops["amazonia"][0] is not None + + +def test_only_selected_flight_look_is_queued_and_prepared_incrementally(display, monkeypatch): + view = WorldView(Assets()) + view.set_biome(BIOMES["amazonia"]) + selected = PlaneLook("bis14", "azul", "jornal", {"pele": "clara"}) + calls = [] + monkeypatch.setattr(view.skin, "base", lambda plane, mode: calls.append(("base", plane, mode))) + monkeypatch.setattr( + view.skin, + "painted", + lambda plane, mode, color, pattern: calls.append(("paint", plane, color, pattern)), + ) + monkeypatch.setattr( + view.skin.pilots, + "compose", + lambda mode, pilot, pose=None: calls.append(("pilot", mode, pose)), + ) + monkeypatch.setattr( + view.skin, + "surface", + lambda plane, mode, color, pattern, pilot: calls.append(("surface", plane, mode)), + ) + + initial_total = len(view.warm_queue) + view.prepare_look(selected) + assert len(view.warm_queue) == initial_total + 4 + assert not calls + view.prepare_look(selected) + assert len(view.warm_queue) == initial_total + 4 + + while view.warmup_pending: + view.step_warm_up(0.01) + + assert calls == [ + ("base", "bis14", "flight"), + ("paint", "bis14", "azul", "jornal"), + ("pilot", "flight", "back_seated"), + ("surface", "bis14", "flight"), + ] + # Entering again must revisit the look: a cache eviction can happen between flights. + view.prepare_look(selected) + assert view.warmup_pending + assert len(view.warm_queue) == 4 # completed jobs must not accumulate on repeat flights + assert view.warmup_timings == [] + while view.warmup_pending: + view.step_warm_up(0.01) + assert calls[:4] == calls[4:] + assert len(view.warmup_timings) == 4 + + +def test_warmup_keeps_every_task_timing_in_current_bounded_queue(display): + view = WorldView(Assets()) + view.warm_queue = [(str(index), lambda: None) for index in range(80)] + while view.warmup_pending: + view.step_warm_up(1) + assert len(view.warmup_timings) == 80 + assert view.warmup_timings[0][0] == "0" + + +def test_first_view_is_prepared_offscreen_without_advancing_rules(display, monkeypatch): + from dobramundo.game.run import FlightRun + + view = WorldView(Assets()) + run = FlightRun(BIOMES["amazonia"], "normal", {}, seed=7, intro=False) + look = PlaneLook("bis14", "azul", "liso", {}) + frames = [] + monkeypatch.setattr(view, "draw_run", lambda canvas, r, appearance: frames.append((canvas, r, appearance))) + before = run.flight_time, run.world.distance + view.prepare_first_frame(run, look) + assert not frames + view.step_warm_up(1) + assert len(frames) == 1 and frames[0][0] is not display + assert frames[0][1:] == (run, look) + assert (run.flight_time, run.world.distance) == before + assert view.warm_queue[0][1] == view._prepared_task + + +def test_painted_ground_samples_every_pixel_inside_each_batched_band(display): + from dobramundo.engine.assets import Assets + from dobramundo.engine.ground import compute_ground_rows + from dobramundo.engine.painted_route import PaintedGround, PaintedRoute + + painter = PaintedRoute(Assets()) + painter.prepare_ground() + assert painter.ground is not None + assert PaintedGround.ROW_HEIGHT == 3 + assert painter.ground.rows == compute_ground_rows()[:: PaintedGround.ROW_HEIGHT] + + +def test_regional_obstacle_details_use_existing_assets_without_changing_silhouette(display): + assets = Assets() + items = PaperItems() + names = items.regional_art_names("amazonia") + scenery = assets.scenery_for(names) + assert set(names) <= set(scenery) + generic = {kind: items.canonical[("obstacle", kind, False)].copy() for kind in ("low", "gate", "tower")} + + items.set_region_scenery("amazonia", scenery) + + for kind in ("low", "gate", "tower"): + regional = items.canonical[("obstacle-regional", "amazonia", kind, False)] + assert pygame.image.tobytes(regional, "RGBA") != pygame.image.tobytes(generic[kind], "RGBA") + assert regional.get_bounding_rect(min_alpha=1) == generic[kind].get_bounding_rect(min_alpha=1) + assert items.canonical[("obstacle", kind, False)] is not regional diff --git a/tests/test_flight_settlement.py b/tests/test_flight_settlement.py index 69e6d61..ce03684 100644 --- a/tests/test_flight_settlement.py +++ b/tests/test_flight_settlement.py @@ -13,8 +13,18 @@ from dobramundo.scenes.result import ResultScene, apply_run +def _start_interactive_flight(app, scene): + app.go(scene) + app.step(1 / 60, []) + while app.view.warmup_pending: + app.view.step_warm_up(100.0) + app.step(1 / 60, []) + assert scene.started + + def test_interromper_voo_credita_parcial_uma_vez_e_abre_resultado(app): scene = FlightScene(app, "amazonia") + scene.started = True scene.run.resources["papel"] = 3 scene.run.score = 120 scene.run.add_restoration(2 * ERA_SPAN) @@ -23,6 +33,7 @@ def test_interromper_voo_credita_parcial_uma_vez_e_abre_resultado(app): assert isinstance(app.next_scene, ResultScene) assert scene.run.interrupted and scene.run.finished + app.step(1 / 60, []) assert app.profile.recursos["papel"] == 3 assert app.profile.pontos == 120 assert app.profile.estrelas["amazonia"] == 2 # parcial não concede a terceira estrela @@ -62,6 +73,7 @@ def test_repetir_settlement_e_notificacao_nao_duplica(app, monkeypatch): run.resources["vidro"] = 4 scene = FlightScene(app, "amazonia") scene.run = run + scene.started = True scene.settle_on_close() apply_run(app.profile, run) @@ -75,8 +87,7 @@ def test_repetir_settlement_e_notificacao_nao_duplica(app, monkeypatch): def test_fechamento_normal_liquida_voo_em_andamento(app): scene = FlightScene(app, "amazonia") - app.go(scene) - app.step(1 / 60, []) + _start_interactive_flight(app, scene) scene.run.resources["vidro"] = 2 scene.run.score = 80 @@ -101,9 +112,23 @@ def test_fechamento_com_voo_pendente_antes_de_entrar_nao_registra_partida(app): assert app.profile.recursos["papel"] == 0 +def test_fechamento_durante_warmup_nao_registra_voo_ou_recursos(app): + scene = FlightScene(app, "amazonia") + scene.run.resources["papel"] = 3 + app.go(scene) + app.step(1 / 60, []) # cena entrou, mas ainda não processou quadro interativo + assert not scene.started + + app.shutdown() + + assert app.profile.voos == 0 + assert app.profile.historico == [] + assert app.profile.recursos["papel"] == 0 + + def test_recalibrar_trocar_segmento_para_opcoes_liquida_parcial_uma_vez(app): flight = FlightScene(app, "amazonia") - flight.enter() + _start_interactive_flight(app, flight) flight.run.resources["papel"] = 2 flight.run.score = 40 calibration = CalibrationScene(app, return_to=flight) @@ -124,7 +149,7 @@ def test_recalibrar_trocar_segmento_para_opcoes_liquida_parcial_uma_vez(app): def test_fechar_jogo_enquanto_calibra_liquida_voo_de_retorno(app): flight = FlightScene(app, "amazonia") - flight.enter() + _start_interactive_flight(app, flight) flight.run.resources["vidro"] = 3 flight.run.score = 75 app.scene = CalibrationScene(app, return_to=flight) @@ -145,7 +170,7 @@ def test_resultado_oferece_retry_quando_save_falha(app, monkeypatch): run = make_run() run.resources["papel"] = 5 result = ResultScene(app, run) - result.build() + result.enter() assert app.save_failed assert any(button.key == "retry_save" for button in result.menu.buttons) for index, button in enumerate(result.menu.buttons): @@ -158,6 +183,42 @@ def test_resultado_oferece_retry_quando_save_falha(app, monkeypatch): assert app.profile.voos == 1 +def test_result_preview_is_read_only_until_enter(app, monkeypatch): + notices = [] + monkeypatch.setattr(app, "on_flight", notices.append) + run = make_run() + run.resources["papel"] = 4 + run.score = 75 + result = ResultScene(app, run) + + result.build() + result.draw(app.canvas) + + assert app.profile.recursos["papel"] == 0 + assert app.profile.pontos == 0 and app.profile.voos == 0 + assert app.profile.historico == [] + assert run.settlement is None + assert notices == [] + + +def test_result_pending_on_close_settles_once(app, monkeypatch): + notices = [] + monkeypatch.setattr(app, "on_flight", notices.append) + run = make_run() + run.finished = True + run.interrupted = True + run.resources["vidro"] = 2 + result = ResultScene(app, run) + app.go(result) + + app.shutdown() + + assert app.profile.recursos["vidro"] == 2 + assert app.profile.voos == 1 and len(app.profile.historico) == 1 + assert app.profile.historico[0]["interrompida"] == 1 + assert len(notices) == 1 + + def test_historico_antigo_sem_marcador_de_interrupcao_continua_valido(app, data_dir): from dobramundo.persistence import load_profile, profile_path diff --git a/tests/test_gameplay.py b/tests/test_gameplay.py index 201aa9d..017a75e 100644 --- a/tests/test_gameplay.py +++ b/tests/test_gameplay.py @@ -225,8 +225,8 @@ def test_fase_termina_depois_do_voo_final(run): @pytest.mark.parametrize("mode", ["normal", "dificil"]) -def test_fase_dura_alguns_minutos(mode): - """Equilíbrio: pegando 4 de cada 10 resíduos, a fase leva de 2,5 a 6 minutos.""" +def test_controlador_ideal_ve_transformacao_em_voo_curto(mode): + """Controlador com teleporte não prevê crianças; protege contra progresso ínfimo ou instantâneo.""" import random run = make_run(mode=mode, clear=False) @@ -241,4 +241,5 @@ def test_fase_dura_alguns_minutos(mode): run.player.x, run.player.y = entity.x, min(C.MAX_ALTITUDE, entity.y) run.update(1 / 30) t += 1 / 30 - assert 150 <= t <= 360, f"{mode}: {t / 60:.1f} min" + assert 10 <= t <= 120, f"{mode}: {t / 60:.1f} min" + assert run.complete and run.restoration == 100 diff --git a/tests/test_ground_render_equivalence.py b/tests/test_ground_render_equivalence.py new file mode 100644 index 0000000..a0794f4 --- /dev/null +++ b/tests/test_ground_render_equivalence.py @@ -0,0 +1,81 @@ +"""Pixel regression against PaintedGround.queue_line from commit 12dda71.""" + +import pygame + +from dobramundo import config as C +from dobramundo.engine.assets import Assets +from dobramundo.engine.painted_route import PaintedGround + + +class _ReferenceGround(PaintedGround): + """The pre-optimization queue_line implementation from 12dda71.""" + + def queue_line(self, jobs, name, y, z, left, right, distance, cam): + depths = tuple(C.CAMERA_HEIGHT * C.FOV / (row_y + 0.5 - C.HORIZON_Y) for row_y in range(y, y + self.ROW_HEIGHT)) + z = depths[self.ROW_HEIGHT // 2] + width = max(8, round(self.TILE_X * C.FOV / z)) + raw_vs = tuple((row_z + distance) / self.TILE_Z * 1024 for row_z in depths) + step = max(abs(raw_vs[0] - raw_vs[1]), abs(raw_vs[1] - raw_vs[2])) + mip_level = 0 + while step / (2**mip_level) > 1.25 and mip_level < len(self.vertical_mips[name]) - 1: + mip_level += 1 + texture = self.vertical_mips[name][mip_level] + mip_factor = 2**mip_level + indices = tuple(int(value / mip_factor) % texture.get_height() for value in raw_vs) + signature = mip_level, indices + key = name, y + buffer = self.line_buffers.get(key) + if buffer is None: + self.prepare_line_buffers(name, ((y, z, 0),)) + buffer = self.line_buffers[key] + line = buffer[0] + band = buffer[2] + if buffer[1] != signature: + if indices[0] - indices[1] == 1 and indices[1] - indices[2] == 1: + source_band = texture.subsurface((0, indices[2], texture.get_width(), self.ROW_HEIGHT)) + source_band = pygame.transform.flip(source_band, False, True) + pygame.transform.scale(source_band, (width, self.ROW_HEIGHT), line) + else: + for row, value in enumerate(indices): + band.blit(texture, (0, row), (0, value, texture.get_width(), 1)) + pygame.transform.scale(band, (width, self.ROW_HEIGHT), line) + buffer[1] = signature + origin = cam * width / self.TILE_X - C.WIDTH / 2 + x, src = left, int(origin + left) % width + while x < right: + piece = min(width - src, right - x) + jobs.append((line, (x, y), (src, 0, piece, self.ROW_HEIGHT))) + x += piece + src = 0 + + +def _fully_prepared_ground(cls, atlas): + ground = cls(atlas) + for name in ground.textures: + for _ in range(6): + ground.prepare_vertical_mip(name) + return ground + + +def test_ground_pixels_match_12dda71(display): + atlas = Assets().sprite("watercolor", "terrain_tiles_v3") + if atlas is None: + atlas = Assets().sprite("watercolor", "terrain_tiles") + assert atlas is not None + optimized = _fully_prepared_ground(PaintedGround, atlas) + reference = _fully_prepared_ground(_ReferenceGround, atlas) + actual = pygame.Surface(display.get_size()).convert() + expected = pygame.Surface(display.get_size()).convert() + for biome in ("amazonia", "caatinga"): + for distance in (0.0, 0.5, 123.4, 1300.0, 5240.0, 18000.0): + for cam in (-420.0, -17.25, 0.0, 163.5, 510.0): + actual.fill((8, 12, 16)) + expected.fill((8, 12, 16)) + fog = (226, 220, 191) if biome == "amazonia" else (240, 222, 185) + optimized.paint(actual, biome, distance, cam, fog) + reference.paint(expected, biome, distance, cam, fog) + assert pygame.image.tobytes(actual, "RGB") == pygame.image.tobytes(expected, "RGB"), ( + biome, + distance, + cam, + ) diff --git a/tests/test_industrial_visual_start.py b/tests/test_industrial_visual_start.py new file mode 100644 index 0000000..a213e54 --- /dev/null +++ b/tests/test_industrial_visual_start.py @@ -0,0 +1,58 @@ +"""A abertura da pista deve parecer industrial antes de clarear gradualmente.""" + +from __future__ import annotations + +from dobramundo import config as C +from dobramundo.content.biomes import BIOMES +from dobramundo.engine.painted_route import PaintedRoute +from dobramundo.engine.watercolor import WatercolorWorld +from dobramundo.engine.world_view import WorldView + + +def test_horizon_blend_preserves_industrial_start_and_reaches_both_stages(): + assert WatercolorWorld.stage_mix(4.99) == (0, 0, 0) + + first_at_nine = WatercolorWorld.stage_mix(9) + assert first_at_nine[:2] == (0, 1) + assert 0 < first_at_nine[2] <= 2 # só um começo discreto da mistura + + at_first_threshold = WatercolorWorld.stage_mix(C.ERA_SPAN) + assert at_first_threshold == (1, 2, 0) + assert WatercolorWorld.stage_mix(2 * C.ERA_SPAN) == (2, 2, 0) + + +def test_bank_blend_has_distance_delay_without_a_visual_jump(): + near_z, far_z = 100.0, C.FOG_END + assert PaintedRoute.stage_blend(5.0, near_z) == (0, 0, 0.0) + assert PaintedRoute.stage_blend(5.0, far_z) == (0, 1, 0.0) + + for z in (near_z, 500.0, far_z): + delay = 4.0 * (1.0 - max(0.0, min(1.0, z / C.FOG_END))) + first_start = 5.0 + delay + first_end = C.ERA_SPAN + delay + assert PaintedRoute.stage_blend(first_start, z) == (0, 1, 0.0) + before = PaintedRoute.stage_blend(first_end - 0.001, z) + after = PaintedRoute.stage_blend(first_end, z) + assert before[0:2] == (0, 1) + assert before[2] > 0.999 + assert after == (1, 2, 0.0) + + second_end = 2 * C.ERA_SPAN + delay + assert PaintedRoute.stage_blend(second_end - 0.001, z)[2] > 0.999 + assert PaintedRoute.stage_blend(second_end, z) == (2, 2, 0.0) + + +def test_industrial_bank_composition_favors_settlement_and_port_over_foliage(): + indices = [PaintedRoute.scenery_index(slot, -1, 0) for slot in range(8)] + assert indices == [0, 2, 0, 1, 0, 1, 2, 1] + assert sum(index in (0, 1) for index in indices) == 6 + assert all(PaintedRoute.scenery_index(slot, -1, 1) != 0 for slot in range(8)) + + +def test_legacy_fallback_resolves_stage_indices_for_all_progress_regions(): + biome = BIOMES["amazonia"] + for visual in (5, 20, 48, 80): + first, second, blend = WorldView.fallback_stage_looks(biome, visual) + assert first in biome.stages + assert second in biome.stages + assert 0.0 <= blend <= 1.0 diff --git a/tests/test_input_frame_profiler.py b/tests/test_input_frame_profiler.py new file mode 100644 index 0000000..00d7d81 --- /dev/null +++ b/tests/test_input_frame_profiler.py @@ -0,0 +1,61 @@ +"""A apresentação é atribuída à leitura usada, não à última leitura publicada.""" + +import pytest + +from dobramundo.input.pose import SEGMENTS, BodyControl +from tools.frame_profiler import FrameProfiler + + +class Source: + error = None + seq = 1 + captured_at = 10.0 + + def snapshot_with_metadata(self): + return self.seq, [(0.5, 0.5, 1.0)] * 33, None, self.captured_at, self.captured_at + 0.01, 10.0 + + +def test_present_keeps_consumed_sequence_even_when_source_advances(monkeypatch): + clock = [10.02] + monkeypatch.setattr("dobramundo.input.pose.time.monotonic", lambda: clock[0]) + source = Source() + body = BodyControl(source, SEGMENTS["cabeca"]) + body.poll(1 / 60) + clock[0] = 10.04 + body.note_rendered() + source.seq, source.captured_at = 2, 10.05 + clock[0] = 10.06 + stamp = body.note_presented() + assert stamp.sequence == 1 + assert stamp.milliseconds()["capture_to_present"] == pytest.approx(60) + assert stamp.milliseconds()["consume_to_canvas"] == pytest.approx(20) + assert stamp.milliseconds()["canvas_to_present"] == pytest.approx(20) + assert set(vars(stamp)) == {"sequence", "captured_at", "consumed_at", "rendered_at", "presented_at", "usable"} + + +def test_nested_profiler_subtracts_child_and_unwinds_after_error(): + clock = [0.0] + profiler = FrameProfiler(lambda: clock[0]) + + class Work: + def inner(self): + clock[0] += 0.003 + + def outer(self): + clock[0] += 0.002 + self.inner() + clock[0] += 0.005 + + def broken(self): + raise ValueError("test") + + work = Work() + for name in ("inner", "outer", "broken"): + profiler.instrument(work, name, name) + work.outer() + assert profiler.samples["outer"] == pytest.approx([10]) + assert profiler.exclusive["outer"] == pytest.approx([7]) + assert profiler.exclusive["inner"] == pytest.approx([3]) + with pytest.raises(ValueError): + work.broken() + assert profiler.stack == [] diff --git a/tests/test_interface_aquarela.py b/tests/test_interface_aquarela.py index 9c9b1af..6e82c55 100644 --- a/tests/test_interface_aquarela.py +++ b/tests/test_interface_aquarela.py @@ -99,6 +99,7 @@ def test_hud_missao_pictografica_e_resultado_desempenham(app, run): run.score = 250 run.resources["papel"] = 4 result = ResultScene(app, run) + result.enter() result.draw(app.canvas) assert app.profile.recursos["papel"] >= 4 assert app.canvas.get_size() == (1100, 650) diff --git a/tests/test_itens_refinados.py b/tests/test_itens_refinados.py index 4feb2eb..bc21d79 100644 --- a/tests/test_itens_refinados.py +++ b/tests/test_itens_refinados.py @@ -211,13 +211,15 @@ def test_fallbacks_sao_silhuetas_vazadas_e_alvos_de_texto_cabem(monkeypatch): assert low.get_at((80, 80)).a == 0 assert gate.get_at((80, 90)).a == 0 - from dobramundo.scenes.flight import FlightScene + from dobramundo.ui.theme import elide_text - assert FlightScene._fit_banner_text( + font = pygame.font.Font(None, 24) + label = elide_text( "Instrução extremamente longa para testar o limite sem ultrapassar a faixa superior do voo", - pygame.font.Font(None, 24), + font, 210, ) + assert label and font.size(label)[0] <= 210 def test_banner_longo_fica_na_faixa_e_movimento_reduzido_remove_fade(app): @@ -231,7 +233,7 @@ def test_banner_longo_fica_na_faixa_e_movimento_reduzido_remove_fade(app): scene.draw_banners(screen) bounds = screen.get_bounding_rect(min_alpha=1) assert bounds.left >= 0 and bounds.right <= WIDTH - assert bounds.top >= 150 and bounds.bottom < 240 + assert bounds.top >= HEIGHT - 90 and bounds.bottom <= HEIGHT first = pygame.image.tobytes(screen, "RGBA") scene.banners[0].ttl = 0.1 diff --git a/tests/test_percurso_aquarela.py b/tests/test_percurso_aquarela.py index d358c5f..da8748f 100644 --- a/tests/test_percurso_aquarela.py +++ b/tests/test_percurso_aquarela.py @@ -9,11 +9,21 @@ from dobramundo.game.world import World +def prepare_mobile(painter, biome): + for stage in range(3): + painter.prepare_backdrop(biome, stage) + painter.route.prepare_ground() + for index in range(12): + painter.route.prepare_bank(biome, index) + painter.life.prepare() + + @pytest.mark.parametrize("biome", ["amazonia", "caatinga"]) @pytest.mark.parametrize("reduced", [False, True]) def test_large_ground_area_moves_without_any_entities(display, biome, reduced): painter = WatercolorWorld(Assets()) world = World(BIOMES[biome]) + prepare_mobile(painter, biome) world.entities.clear() painter.draw(display, world, 0, reduced) before = [display.get_at((x, y)) for y in range(300, 650, 5) for x in range(200, 900, 5)] @@ -43,10 +53,12 @@ def test_pause_freezes_route_and_drawing_does_not_change_game_state(display): assert original == (world.distance, list(world.entities), world.visual) -def test_ground_rescales_only_single_rows_never_full_images_in_flight(display, monkeypatch): +def test_ground_rescales_only_small_bands_never_full_images_in_flight(display, monkeypatch): painter = WatercolorWorld(Assets()) world = World(BIOMES["caatinga"]) + painter.route.prepare_ground() ground = painter.route.ground + assert ground is not None ground.paint(display, world.biome.key, 0, 0, (230, 220, 190)) def forbidden(*args, **kwargs): @@ -54,11 +66,11 @@ def forbidden(*args, **kwargs): original_scale = pygame.transform.scale - def scale_row(source, size, dest=None): - assert source.get_height() == 1 and size[1] <= 3 + def scale_band(source, size, dest=None): + assert source.get_width() == 1024 and source.get_height() == 3 and size[1] == 3 return original_scale(source, size, dest) - monkeypatch.setattr(pygame.transform, "scale", scale_row) + monkeypatch.setattr(pygame.transform, "scale", scale_band) monkeypatch.setattr(pygame.transform, "smoothscale", forbidden) monkeypatch.setattr(pygame.image, "load", forbidden) for distance in (1, 2, 100, 1300, 10000): diff --git a/tests/test_profile_versions_lock.py b/tests/test_profile_versions_lock.py new file mode 100644 index 0000000..1021552 --- /dev/null +++ b/tests/test_profile_versions_lock.py @@ -0,0 +1,114 @@ +"""Proteção de arquivos futuros, snapshots antigos e instâncias concorrentes.""" + +import json +import subprocess +import sys + +import pytest + +from dobramundo import persistence as P +from dobramundo.instance_lock import InstanceLock +from dobramundo.profile_model import FutureProfileError, migrate_profile + + +def test_future_profile_is_preserved_without_backup_recovery(data_dir): + assert P.save_profile(P.Profile()) + path = P.profile_path() + raw = json.dumps({"versao": 999, "future": {"important": True}}).encode() + path.write_bytes(raw) + try: + profile, notice = P.load_profile_with_notice() + assert "mais nova" in notice + assert not P.save_profile(profile) + assert path.read_bytes() == raw + assert not list(data_dir.glob("*.corrompido*")) + with pytest.raises(FutureProfileError): + P.Profile.from_dict(json.loads(raw)) + finally: + P._READ_BLOCKED_SLOT_IDS.discard(P.DEFAULT_PROFILE_SLOT) + + +def test_migration_is_idempotent_and_preserves_old_choices(): + old = {"versao": 1, "voos": 4, "opcoes": {"assistencia_previsivel": False}} + migrated = migrate_profile(old) + assert migrated == migrate_profile(migrated) + assert old["versao"] == 1 + profile = P.Profile.from_dict(migrated) + assert profile.apoio_escolhido and not profile.opcoes.assistencia_previsivel + + +def test_stale_profile_cannot_overwrite_newer_resources(data_dir): + assert P.save_profile(P.Profile()) + a, b = P.load_profile(), P.load_profile() + a.recursos["papel"] = 100 + assert P.save_profile(a) + b.recursos["plastico"] = 7 + assert not P.save_profile(b) + assert P.load_profile().recursos["papel"] == 100 + a.recursos["papel"] = 101 + assert P.save_profile(a) + + +def test_migration_recovers_recorded_city_progress_without_inventing_completion(): + old = { + "versao": 1, + "estrelas": {"amazonia": 2, "caatinga": 1}, + "historico": [ + {"fase": "amazonia", "transformacao": 88.4}, + {"fase": "caatinga", "transformacao": 42}, + {"fase": "amazonia", "transformacao": float("nan")}, + {"fase": "desconhecida", "transformacao": 100}, + ], + } + migrated = migrate_profile(old) + assert migrated["transformacao_cidades"] == {"amazonia": 88.4, "caatinga": 42.0} + assert migrate_profile(migrated) == migrated + assert "transformacao_cidades" not in old + + +def test_migration_uses_only_the_stage_proven_by_old_stars_when_history_is_absent(): + from dobramundo.content.progress import STAR_THRESHOLDS + + profile = P.Profile.from_dict({"versao": 1, "estrelas": {"amazonia": 3, "caatinga": 2}}) + assert profile.transformacao_cidades == {"amazonia": 100.0, "caatinga": STAR_THRESHOLDS[1]} + + +CHILD = """ +from pathlib import Path +import sys +from dobramundo.instance_lock import InstanceLock, InstanceBusyError +try: + with InstanceLock(Path(sys.argv[1])): + print('locked', flush=True) + if len(sys.argv) > 2: sys.stdin.readline() +except InstanceBusyError: + sys.exit(2) +""" + + +def test_two_processes_and_other_directory(data_dir, tmp_path): + with InstanceLock(data_dir): + busy = subprocess.run([sys.executable, "-c", CHILD, str(data_dir)], capture_output=True, timeout=10) + assert busy.returncode == 2 + independent = subprocess.run( + [sys.executable, "-c", CHILD, str(tmp_path / "other")], capture_output=True, timeout=10 + ) + assert independent.returncode == 0 + released = subprocess.run([sys.executable, "-c", CHILD, str(data_dir)], capture_output=True, timeout=10) + assert released.returncode == 0 + + +def test_crashed_process_releases_os_lock(data_dir): + child = subprocess.Popen( + [sys.executable, "-c", CHILD, str(data_dir), "wait"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, text=True + ) + try: + assert child.stdout.readline().strip() == "locked" + child.kill() + child.wait(timeout=10) + with InstanceLock(data_dir): + pass + finally: + if child.poll() is None: + child.kill() + child.wait(timeout=10) diff --git a/tests/test_progress.py b/tests/test_progress.py index dd1146b..01991a4 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -115,11 +115,10 @@ def test_importa_o_save_do_prototipo(tmp_path): assert profile.aviao == "crane" and profile.plane_color("crane") == "azul" -def test_caatinga_abre_com_uma_estrela_em_manaus(): +def test_biomas_implementados_estao_abertos_desde_o_inicio(): profile = Profile() - assert profile.unlocked("amazonia") and not profile.unlocked("caatinga") - profile.estrelas["amazonia"] = 1 - assert profile.unlocked("caatinga") + assert profile.unlocked("amazonia") and profile.unlocked("caatinga") + assert not profile.unlocked("pantanal") def test_resultado_leva_o_voo_para_o_perfil(): diff --git a/tests/test_release_guards.py b/tests/test_release_guards.py new file mode 100644 index 0000000..ff6e57d --- /dev/null +++ b/tests/test_release_guards.py @@ -0,0 +1,194 @@ +"""A montagem não deve distribuir builds reprovados nem perder mudanças visuais.""" + +import json +import subprocess +import tarfile +import zipfile + +import pytest +from PIL import Image + +from dobramundo import __version__ +from dobramundo.selftest import REQUIRED_SPRITES, check_report +from tools.package_release import ( + assert_clean_checkout, + assert_tracked_inputs, + github_run_id, + portable_sources, + validate_cartridge_sources, + validate_tar, + verified_build, + write_batch, +) +from tools.visual_regression import compare + + +def test_build_guard_requires_native_detector(tmp_path): + path = tmp_path / "self_test.json" + path.write_text(json.dumps({"status": "ok", "camera": {"detector": "unavailable"}})) + with pytest.raises(ValueError, match="detector"): + verified_build(tmp_path) + + +def _successful_build_report(**overrides): + report = { + "status": "ok", + "versao": __version__, + "run_id": "local-build-123", + "build_commit": "a" * 40, + "github_sha": "a" * 40, + "github_run_id": "12345", + "github_run_attempt": "2", + "camera": {"detector": "ok"}, + } + report.update(overrides) + return report + + +def test_build_guard_binds_version_commit_and_ci_run(tmp_path): + path = tmp_path / "self_test.json" + path.write_text(json.dumps(_successful_build_report()), encoding="utf-8") + assert verified_build(tmp_path, "a" * 40, "12345")["run_id"] == "local-build-123" + + for report, expected_commit, expected_run, message in ( + (_successful_build_report(versao="0.0.0"), "a" * 40, "12345", "versão"), + (_successful_build_report(), "b" * 40, "12345", "commit"), + (_successful_build_report(), "a" * 40, "54321", "execução de CI"), + ): + path.write_text(json.dumps(report), encoding="utf-8") + with pytest.raises(ValueError, match=message): + verified_build(tmp_path, expected_commit, expected_run) + + path.write_text(json.dumps(_successful_build_report()), encoding="utf-8") + with pytest.raises(ValueError, match="tentativa de CI"): + verified_build(tmp_path, "a" * 40, "12345", "1") + + +def test_ci_run_id_accepts_actions_metadata_or_url(): + assert github_run_id({"databaseId": 123, "url": "https://github.com/o/r/actions/runs/456"}) == "123" + assert github_run_id({"url": "https://github.com/o/r/actions/runs/456"}) == "456" + assert github_run_id({"url": "https://example.test/run/456"}) is None + + +def test_ci_run_attempt_aliases(): + from tools.package_release import github_run_attempt + + assert github_run_attempt({"runAttempt": 2}) == "2" + assert github_run_attempt({"run_attempt": 3}) == "3" + + +def test_portable_source_inventory_matches_cartridge_exclusions(tmp_path): + package = tmp_path / "dobramundo" + (package / "input").mkdir(parents=True) + portable = package / "engine.py" + desktop = package / "app.py" + camera = package / "input" / "camera.py" + for path in (portable, desktop, camera): + path.write_text("# module\n", encoding="utf-8") + + sources = portable_sources(tmp_path) + assert set(sources) == {"dobramundo/engine.py"} + + cartridge = tmp_path / "cartucho.ttea" + with zipfile.ZipFile(cartridge, "w") as archive: + archive.write(portable, "dobramundo/engine.py") + with zipfile.ZipFile(cartridge) as archive: + validate_cartridge_sources(archive, tmp_path) + + with zipfile.ZipFile(cartridge, "a") as archive: + archive.write(desktop, "dobramundo/app.py") + with zipfile.ZipFile(cartridge) as archive: + with pytest.raises(ValueError, match="Fontes portáteis"): + validate_cartridge_sources(archive, tmp_path) + + +def test_batch_launcher_always_uses_crlf(tmp_path): + path = tmp_path / "launcher.bat" + write_batch(path, "@echo off\nstart game.exe\n") + data = path.read_bytes() + assert data == b"@echo off\r\nstart game.exe\r\n" + + +def test_release_clean_guard_rejects_untracked_files_and_inventory(tmp_path): + subprocess.run(["git", "init", str(tmp_path)], check=True, capture_output=True) + tracked = tmp_path / "source.py" + tracked.write_text("# tracked\n", encoding="utf-8") + subprocess.run(["git", "-C", str(tmp_path), "add", "source.py"], check=True) + subprocess.run( + [ + "git", + "-C", + str(tmp_path), + "-c", + "user.name=Test", + "-c", + "user.email=test@example.invalid", + "commit", + "-m", + "initial", + ], + check=True, + capture_output=True, + ) + assert_clean_checkout(tmp_path) + + assert_tracked_inputs([tracked], root=tmp_path) + ignored_or_untracked = tmp_path / "dobramundo" / "extra.py" + ignored_or_untracked.parent.mkdir() + ignored_or_untracked.write_text("# untracked\n", encoding="utf-8") + with pytest.raises(ValueError, match="fora do commit"): + assert_clean_checkout(tmp_path) + with pytest.raises(ValueError, match="não rastreadas"): + assert_tracked_inputs([ignored_or_untracked], root=tmp_path) + + +def test_source_inventory_rejects_duplicate_zip_members(tmp_path): + package = tmp_path / "dobramundo" + package.mkdir() + source = package / "module.py" + source.write_text("# module\n", encoding="utf-8") + cartridge = tmp_path / "cartucho.ttea" + with zipfile.ZipFile(cartridge, "w") as archive: + archive.write(source, "dobramundo/module.py") + archive.write(source, "dobramundo/module.py") + with zipfile.ZipFile(cartridge) as archive: + with pytest.raises(ValueError, match="duplicados"): + validate_cartridge_sources(archive, tmp_path) + + +def test_selftest_does_not_pass_a_flight_stuck_in_preparation(): + report = { + "sprites": {name: 1 for name in REQUIRED_SPRITES}, + "voos": {"amazonia": {"estagio": 2, "segundos_ativos": 0, "distancia": 0}}, + "camera": {"detector": "ok"}, + } + assert check_report(report, True) == ["o voo em amazonia não avançou após o preparo"] + + +def test_visual_comparison_catches_loss_of_a_button(tmp_path): + a, b = tmp_path / "reference.png", tmp_path / "actual.png" + image = Image.new("RGB", (100, 100), "white") + image.paste("blue", (10, 10, 70, 40)) + image.save(a) + image.save(b) + assert compare(a, b)["ok"] + Image.new("RGB", (100, 100), "white").save(b) + assert not compare(a, b)["ok"] + + +@pytest.mark.parametrize("link,ok", [("../lib.so", True), ("../../../outside", False), ("/tmp/outside", False)]) +def test_linux_links_stay_inside_package(tmp_path, link, ok): + path = tmp_path / "linux.tar.gz" + with tarfile.open(path, "w:gz") as archive: + executable = tarfile.TarInfo("Dobramundo/Dobramundo") + executable.mode = 0o755 + archive.addfile(executable) + shared = tarfile.TarInfo("Dobramundo/_internal/module/lib.so") + shared.type = tarfile.SYMTYPE + shared.linkname = link + archive.addfile(shared) + if ok: + validate_tar(path) + else: + with pytest.raises(ValueError, match="Link inseguro"): + validate_tar(path) diff --git a/tests/test_renderer_contracts.py b/tests/test_renderer_contracts.py index 04ce84e..b3d96db 100644 --- a/tests/test_renderer_contracts.py +++ b/tests/test_renderer_contracts.py @@ -10,6 +10,7 @@ from dobramundo.content.biomes import BIOMES from dobramundo.engine.assets import Assets +from dobramundo.engine.contracts import RenderContext from dobramundo.engine.world_view import WorldView @@ -28,12 +29,30 @@ def test_renderer_import_does_not_import_game_rules(): assert result.returncode == 0, result.stderr +def test_background_composition_consumes_typed_frame_context(display, monkeypatch): + view = WorldView(Assets()) + world = SimpleNamespace(biome=BIOMES["amazonia"]) + context = RenderContext(world, 42.0, 3.5, True, True, 1.4) + seen = [] + monkeypatch.setattr( + view.watercolor, + "draw", + lambda screen, state, cam, reduced: seen.append((state, cam, reduced)) or True, + ) + monkeypatch.setattr(view, "desaturate", lambda screen: seen.append("contrast")) + + view.compose_background(display, context) + + assert seen == [(world, 42.0, True), "contrast"] + assert view.cam == 42.0 + + def test_entity_bounds_come_from_read_contract(monkeypatch): pygame.init() pygame.display.set_mode((8, 8)) view = WorldView(Assets()) view.show_hitboxes = True - monkeypatch.setattr(view.watercolor, "load", lambda key: True) + monkeypatch.setattr(view.watercolor, "has_backdrop", lambda key: True) monkeypatch.setattr(view.paper_items, "draw", lambda *args: None) bounds = SimpleNamespace(x_min=-10, x_max=10, y_min=20, y_max=40, z_min=200, z_max=220) observed = [] @@ -49,6 +68,9 @@ def test_switch_biome_releases_previous_backgrounds(): view.set_biome(BIOMES["amazonia"]) sky_only = {decor.sprite for decor in BIOMES["amazonia"].sky_decor} sky_only.add(BIOMES["amazonia"].horizon_vehicle[0]) + assert not sky_only & {Path(path).stem for path in view.assets._loaded} + for name in sky_only: + view.sky.prepare_decor(name) assert sky_only & {Path(path).stem for path in view.assets._loaded} view.watercolor.load("amazonia") assert "amazonia" in view.watercolor.backdrops diff --git a/tests/test_route_visuals.py b/tests/test_route_visuals.py index 20d9a48..e467d32 100644 --- a/tests/test_route_visuals.py +++ b/tests/test_route_visuals.py @@ -25,15 +25,28 @@ def _stage_weights(stage_blend, visual, z): def test_route_stage_blend_is_continuous_and_reaches_horizon_first(): far, near = C.FOG_END, C.NEAR_CLIP_Z - before = _stage_weights(PaintedRoute.stage_blend, C.ERA_SPAN - 1e-5, far) - at = _stage_weights(PaintedRoute.stage_blend, C.ERA_SPAN, far) - assert before == at - far_mix = _stage_weights(PaintedRoute.stage_blend, C.ERA_SPAN + 8, far)[1] - near_mix = _stage_weights(PaintedRoute.stage_blend, C.ERA_SPAN + 8, near).get(1, 0.0) - assert far_mix == pytest.approx(0.5, abs=0.02) - assert near_mix < far_mix - far_second = _stage_weights(PaintedRoute.stage_blend, 2 * C.ERA_SPAN + 6, far)[2] - near_second = _stage_weights(PaintedRoute.stage_blend, 2 * C.ERA_SPAN + 6, near).get(2, 0.0) + far_delay = 4.0 * (1.0 - far / C.FOG_END) + near_delay = 4.0 * (1.0 - near / C.FOG_END) + far_first_end = C.ERA_SPAN + far_delay + near_first_end = C.ERA_SPAN + near_delay + assert _stage_weights(PaintedRoute.stage_blend, far_first_end, far) == {1: 1.0} + assert _stage_weights(PaintedRoute.stage_blend, near_first_end, near) == {1: 1.0} + + # No perceptible jump at the seam, while depth keeps its small delay. + far_before = _stage_weights(PaintedRoute.stage_blend, far_first_end - 1e-5, far) + near_before = _stage_weights(PaintedRoute.stage_blend, near_first_end - 1e-5, near) + assert far_before[1] == pytest.approx(1.0, abs=1e-8) + assert near_before[1] == pytest.approx(1.0, abs=1e-8) + + far_midpoint = 1.5 * C.ERA_SPAN + far_second = _stage_weights(PaintedRoute.stage_blend, far_midpoint, far)[2] + near_second = _stage_weights(PaintedRoute.stage_blend, far_midpoint, near).get(2, 0.0) + assert far_second == pytest.approx(0.5, abs=0.02) + assert near_second < far_second + far_end = _stage_weights(PaintedRoute.stage_blend, 2 * C.ERA_SPAN, far) + assert far_end == {2: 1.0} + far_second = _stage_weights(PaintedRoute.stage_blend, 2 * C.ERA_SPAN - 1e-5, far)[2] + near_second = _stage_weights(PaintedRoute.stage_blend, 2 * C.ERA_SPAN - 1e-5, near).get(2, 0.0) assert near_second < far_second @@ -140,9 +153,14 @@ def test_fauna_suprime_ameaca_e_reaparece_sem_salto_apos_poda(display): def test_watercolor_ground_line_buffers_have_a_fixed_bound(display): painter = WatercolorWorld(Assets()) + painter.route.prepare_ground() ground = painter.route.ground + assert ground is not None world = World(BIOMES["caatinga"]) ground.paint(display, world.biome.key, 0, 0, (230, 220, 190)) assert len(ground.line_buffers) <= 4 * len(ground.rows) - memory_bytes = sum(buffer[0].get_pitch() * buffer[0].get_height() for buffer in ground.line_buffers.values()) + memory_bytes = sum( + buffer[0].get_pitch() * buffer[0].get_height() + buffer[2].get_pitch() * buffer[2].get_height() + for buffer in ground.line_buffers.values() + ) assert memory_bytes < 32 * 1024 * 1024 diff --git a/tests/test_runtime_inventory.py b/tests/test_runtime_inventory.py new file mode 100644 index 0000000..70f6007 --- /dev/null +++ b/tests/test_runtime_inventory.py @@ -0,0 +1,68 @@ +"""O pacote inclui uma única cópia de runtime e mantém fallback se faltar preparo.""" + +import hashlib +import json +from pathlib import Path + +import pytest + +from tools.runtime_assets import runtime_assets + + +def _fixture(tmp_path): + original = tmp_path / "assets/watercolor/amazonia_0.png" + prepared = tmp_path / "assets/watercolor_prepared/amazonia_0.png" + original.parent.mkdir(parents=True) + prepared.parent.mkdir(parents=True) + original.write_bytes(b"source") + prepared.write_bytes(b"runtime") + catalog = prepared.with_name("asset_catalog.json") + catalog.write_text( + json.dumps( + { + "assets": [ + { + "file": original.name, + "runtime_variant": { + "file": "watercolor_prepared/amazonia_0.png", + "sha256": hashlib.sha256(b"runtime").hexdigest(), + }, + } + ] + } + ) + ) + return original, prepared + + +def test_inventory_uses_one_variant_and_preserves_source(tmp_path): + original, prepared = _fixture(tmp_path) + items = list(runtime_assets(tmp_path)) + assert (prepared, Path("watercolor_prepared/amazonia_0.png")) in items + assert all(source != original for source, _ in items) + assert original.read_bytes() == b"source" + + +def test_missing_prepared_asset_keeps_original(tmp_path): + original, prepared = _fixture(tmp_path) + prepared.unlink() + assert (original, Path("watercolor/amazonia_0.png")) in list(runtime_assets(tmp_path)) + + +def test_invalid_variant_refuses_packaging(tmp_path): + _, prepared = _fixture(tmp_path) + prepared.write_bytes(b"changed") + with pytest.raises(ValueError, match="divergente"): + list(runtime_assets(tmp_path)) + + +def test_console_excludes_model_but_keeps_licenses(tmp_path): + _fixture(tmp_path) + model = tmp_path / "assets/pose_model/pose.task" + model.parent.mkdir() + model.write_bytes(b"model") + license_file = tmp_path / "assets/watercolor/CREDITOS.txt" + license_file.write_text("credit") + files = list(runtime_assets(tmp_path, console=True)) + assert all(source != model for source, _ in files) + assert any(source == license_file for source, _ in files) diff --git a/tests/test_runtime_resources.py b/tests/test_runtime_resources.py index a54bbb0..b04ad92 100644 --- a/tests/test_runtime_resources.py +++ b/tests/test_runtime_resources.py @@ -44,6 +44,7 @@ def test_opaque_conversion_preserves_interior_transparency(display, tmp_path, ho @pytest.mark.parametrize("city", ["amazonia", "caatinga"]) def test_transition_culls_only_pixels_hidden_by_ground(display, city): painter = WatercolorWorld(Assets()) + painter.route.prepare_ground() cutoff = painter.route.ground.rows[0][0] for visual in (34, 40, 47, 68, 73, 78): full = painter.backdrop(city, visual) diff --git a/tests/test_session_experience.py b/tests/test_session_experience.py index 4c8979d..a12b2e6 100644 --- a/tests/test_session_experience.py +++ b/tests/test_session_experience.py @@ -246,6 +246,8 @@ def test_balance_pause_is_wall_time_not_flight_time(): interrupt_after=61.0, exploration=True, assistance=True, + # Revisiting a restored city keeps the flight open past the scheduled pause. + city_restoration=100.0, ) assert record["pause_count"] == 1 assert record["pause_seconds"] == 2.0 diff --git a/tests/test_tutorial_flow.py b/tests/test_tutorial_flow.py index 412dca6..e6adf5f 100644 --- a/tests/test_tutorial_flow.py +++ b/tests/test_tutorial_flow.py @@ -200,7 +200,11 @@ def test_setas_verticais_ficam_fora_dos_paineis_de_titulo_e_botoes(app): def test_fluxo_de_inicializacao_nao_injeta_tutorial_antes_da_vila(app): + from dobramundo.scenes.intro import IntroScene + app.profile.consentimento = True app.profile.piloto_montado = True app.profile.tutorial_visto = False - assert isinstance(first_scene(app), VillageScene) + intro = first_scene(app) + assert isinstance(intro, IntroScene) + assert isinstance(intro.next_scene, VillageScene) diff --git a/tests/test_visual_refinements.py b/tests/test_visual_refinements.py new file mode 100644 index 0000000..3d7f6d3 --- /dev/null +++ b/tests/test_visual_refinements.py @@ -0,0 +1,66 @@ +"""Contratos pequenos das páginas de opções, mapa e encaixe do piloto.""" + +from __future__ import annotations + +import pygame + +from dobramundo import config as C +from dobramundo.engine.painted_planes import PaintedPlanes +from dobramundo.scenes.map import brazil_map +from dobramundo.scenes.options import OPTION_PAGES, OptionsScene + + +def test_opcoes_em_paginas_grandes_sem_perder_acoes_ou_sair_da_tela(app): + scene = OptionsScene(app) + scene.build() + all_keys = set() + for section, _label, _icon in OPTION_PAGES: + scene.select_section(section) + buttons = scene.menu.buttons + assert all(button.icon is not None for button in buttons if button.key.startswith("section:")) + assert all(button.rect.left >= 0 and button.rect.top >= 0 for button in buttons) + assert all(button.rect.right <= C.WIDTH and button.rect.bottom <= C.HEIGHT for button in buttons) + for index, button in enumerate(buttons): + assert all(not button.rect.colliderect(other.rect) for other in buttons[index + 1 :]) + visible = {button.key for button in buttons} + assert f"section:{section}" in visible + all_keys.update(visible) + assert {"seg=", "sens=", "perm=", "sup=", "volume_geral=", "contraste", "movimento", "auto_abertura"} <= all_keys + assert {"voltar", "abertura", "treino", "dwell_treino", "preparar"} <= all_keys + + +def test_mapa_geografico_texturizado_e_cacheado(): + texture = pygame.Surface((48, 48)) + texture.fill((205, 148, 82)) + pygame.draw.ellipse(texture, (64, 128, 174), (4, 6, 35, 32)) + first = brazil_map(texture) + second = brazil_map(texture) + assert first is second + assert first.get_size() == (C.WIDTH, C.HEIGHT) + assert first.get_at((0, 0)).a == 0 + assert len(set(pygame.image.tobytes(first, "RGBA")[::4])) > 1 + + +class _PilotStub: + def __init__(self): + self.calls = [] + + def compose(self, view, look, pose=None): + self.calls.append((view, pose)) + surface = pygame.Surface((60, 120), pygame.SRCALPHA) + surface.fill((220, 140, 80, 255)) + return surface + + +def test_piloto_montado_no_voo_aparece_maior_e_de_costas(): + plane = pygame.Surface((140, 220), pygame.SRCALPHA) + renderer = _PilotStub() + bis = PaintedPlanes.mount_pilot(plane, renderer, "bis14", "flight", {}) + crane = PaintedPlanes.mount_pilot(plane, renderer, "crane", "flight", {}) + assert renderer.calls == [("flight", "back_seated"), ("flight", "back_seated")] + bis_bounds = bis.get_bounding_rect(min_alpha=1) + crane_bounds = crane.get_bounding_rect(min_alpha=1) + assert bis_bounds.height == round(220 * 0.32) + assert bis_bounds.width > 25 and bis_bounds.top == round(220 * 0.12) + assert crane_bounds.height == round(220 * 0.36) + assert crane_bounds.width > 25 and crane_bounds.top == round(220 * 0.24) diff --git a/tests/test_watercolor.py b/tests/test_watercolor.py index 19b8b08..7b7805a 100644 --- a/tests/test_watercolor.py +++ b/tests/test_watercolor.py @@ -9,6 +9,15 @@ from dobramundo.game.world import World +def prepare_mobile(painter, biome): + for stage in range(3): + painter.prepare_backdrop(biome, stage) + painter.route.prepare_ground() + for index in range(12): + painter.route.prepare_bank(biome, index) + painter.life.prepare() + + @pytest.mark.parametrize("biome", ["amazonia", "caatinga"]) def test_each_city_has_three_distinct_complete_stages(biome, display): painter = WatercolorWorld(Assets()) @@ -24,6 +33,7 @@ def test_reduced_motion_keeps_essential_forward_navigation(display): painter = WatercolorWorld(Assets()) world = World(BIOMES["amazonia"]) world.set_restoration(12) + prepare_mobile(painter, "amazonia") assert painter.draw(display, world, 0, True) original = pygame.image.tostring(display, "RGB") world.distance += 400 diff --git a/tools/README.md b/tools/README.md index a1c81d6..644e623 100644 --- a/tools/README.md +++ b/tools/README.md @@ -17,7 +17,7 @@ python tools/capture_release.py --out build/capturas `benchmark_camera` separa até 15 segundos de preparação da janela de amostragem; exige pelo menos cinco resultados publicados e encerramento confirmado. Falta de amostras ou erro retorna código 2. Essas ferramentas salvam métricas; apenas `--screenshots` grava imagens sintéticas do jogo, nunca da webcam ou dos pontos do corpo. -`check_routes` verifica sementes reproduzíveis, diversidade, auditoria completa de uma amostra, continuidade após avanço e tempos de inserção/geração. O contrato geométrico não substitui testes de controle corporal e conforto com a pessoa. Veja [condições e validação](../docs/ENTREGA_1_5.md). +`check_routes` verifica sementes reproduzíveis, diversidade, auditoria completa de uma amostra, continuidade após avanço e tempos de inserção/geração. O contrato geométrico não substitui testes de controle corporal e conforto com a pessoa. Veja [condições e validação](../docs/historico/ENTREGA_1_5.md). No benchmark, `--paced` cede CPU entre quadros para mirar 60 fps, excluindo esse sono dos tempos de processamento. Sem a opção, a execução é um teste de estresse sem limite de quadros. Registre a modalidade ao comparar resultados. @@ -51,7 +51,7 @@ Os scripts desta pasta criam parte dos arquivos de `assets/` que o jogo carrega. A direção visual principal está em `assets/watercolor/`: fundos, terreno, margens, vila, piloto, aviões e objetos pintados. Esses PNGs foram gerados por IA e estão versionados; `build_assets.py` e `stylize.py` não recriam esse conjunto. Prompts e identificadores das saídas estão em `generation.json`, `generation-sprint2.json` e `generation-pilot-sprint2.json`, na mesma pasta, junto de `CREDITOS.txt`. -O jogo recorta os atlases, aplica cores e estampas e projeta as peças em Pygame. Não gera imagens nem acessa serviços de IA durante a execução. Os geradores low-poly abaixo mantêm os sprites procedurais de reserva. Para revisar os novos PNGs, preserve a disposição dos atlases e confira os recortes em `painted_route.py`, `painted_pilot.py`, `painted_planes.py`, `paper_items.py` e `village_art.py`. Os testes correspondentes e o self-test estão descritos em [DIRECAO_AQUARELA.md](../docs/DIRECAO_AQUARELA.md). +O jogo recorta os atlases, aplica cores e estampas e projeta as peças em Pygame. Não gera imagens nem acessa serviços de IA durante a execução. Os geradores low-poly abaixo mantêm os sprites procedurais de reserva. Para revisar os novos PNGs, preserve a disposição dos atlases e confira os recortes em `painted_route.py`, `painted_pilot.py`, `painted_planes.py`, `paper_items.py` e `village_art.py`. Os testes correspondentes e o self-test estão descritos em [DIRECAO_AQUARELA.md](../docs/historico/DIRECAO_AQUARELA.md). A pasta tem duas partes: @@ -160,13 +160,13 @@ python tools/balance.py --coleta 0.4 --erro 0.15 --pausa 10 --voos 10 --out buil python tools/balance.py --exploracao --assistencia --limite 120 --voos 10 --out build/exploracao.json ``` -O teste `test_fase_dura_alguns_minutos` (em `tests/test_gameplay.py`) trava a duração da fase entre 2,5 e 6 minutos. +A ferramenta acumula a transformação entre voos, como o perfil do jogo, e informa em qual voo a cidade chega a 100%. Use sementes iniciais diferentes para trajetórias independentes. `--apoio-escolhido` representa um perfil que já decidiu manualmente sobre apoio; sem essa opção, os três primeiros voos recebem o apoio inicial. Recursos e preços continuam medidos separadamente do percentual visual. O agente sintético não representa uma criança nem mede conforto motor. Interprete os resultados como regressão de economia e interrupções, junto ao aceite presencial. ## Preparação de imagens -`python tools/prepare_assets.py` produz seis fundos na resolução de uso e sete atlas de aviões em `assets/watercolor_prepared/`. Mantém os originais e registra tamanho, SHA-256, vista, grade e pivô no manifesto. `python tools/audit_assets.py` confere o inventário. O runtime prefere os PNG preparados e conserva os originais como fallback; não há conversão de codec presumida compatível com o console. +`python tools/prepare_assets.py` produz fundos de voo, história e vila, atlas de aviões e pigmento do mapa na resolução de uso em `assets/watercolor_prepared/`. Mantém os originais no repositório e registra tamanho, SHA-256, vista, grade e pivô no manifesto. `python tools/audit_assets.py` confere o inventário. `runtime_assets.py` é compartilhado por desktop e cartucho: escolhe a variante verificada, sem duplicar o original, ou inclui o original quando a variante está ausente. Imagens de menus preparadas conservam o caminho lógico usado pelas cenas. Não há conversão de codec presumida compatível com o console. ## Medições e entrega @@ -175,10 +175,18 @@ Execute benchmarks em processos novos e sem builds ou testes concorrentes. O pad ```powershell python tools/benchmark_runtime.py --out build/benchmark --frames 600 python tools/benchmark_runtime.py --out build/benchmark-camera --frames 600 --camera --paced +python tools/benchmark_runtime.py --out build/controle-real --frames 600 --camera-control --window +python tools/benchmark_runtime.py --out build/entrada-fria --frames 30 --biome amazonia --contrast no python tools/soak_runtime.py --out build/soak --cycles 30 --frames 2400 python tools/capture_release.py --out build/capturas ``` -O benchmark com câmera mede processamento concorrente e a idade do último resultado disponível; não demonstra precisão dos gestos nem latência física de sensor/projetor. O soak alterna biomas, contraste, aparências e menus usando perfis sintéticos. Ele usa invencibilidade apenas para manter a carga de renderização; a economia é medida separadamente por `balance.py`, com colisões. +`--camera` mede processamento concorrente; `--camera-control` liga efetivamente a leitura da cabeça e registra a sequência consumida até canvas/apresentação, incluindo quantos quadros eram utilizáveis. Nenhum desses modos demonstra precisão física dos gestos ou atraso do sensor/projetor. Tempos exclusivos descontam componentes instrumentados filhos; os inclusivos não devem ser somados. A preparação é separada dos quadros interativos e suas tarefas têm tempos próprios. + +O soak alterna biomas, contraste, aparências e menus usando perfis sintéticos. O preparo não conta como tempo ativo; invencibilidade e supressão do encerramento por conclusão mantêm a carga de desenho pelo ciclo inteiro. A economia é medida separadamente por `balance.py`, com colisões e término normal. + +Para validar os arquivos isolados do cartucho: `python tools/build_cartridge.py --so-montar` seguido de `python tools/verify_cartridge.py --stage build/cartucho --out build/cartucho-render.json`. O CI executa esse percurso e compara menus capturados com referências revisadas. Isso complementa, sem substituir, `tsdk check`, `tsdk build` e o teste no console físico. + +Para fechar uma release, use `python tools/package_release.py --help`. A rotina exige os dois artefatos nativos, relatório JSON da CI completa, commits de build/release com árvores iguais, checkout limpo na revisão da release, cartucho válido e diretório de saída. Confere versão, commit, execução/tentativa da CI, detector e identificador novo de cada self-test; compara fontes e assets do cartucho byte a byte com o inventário rastreado pelo Git. Ela gera downloads, `release-manifest.json` e `SHA256SUMS.txt`; não publica automaticamente. Nunca inclua perfis reais na galeria ou nos pacotes. `build_desktop.py` constrói o pacote nativo, invalida resultados antigos e roda o executável com `--self-test 1200 --exigir-camera` em diretório temporário. A CI gera Windows e Linux, publica cobertura e preserva a permissão de execução do Linux em `.tar.gz`. Linux requer `libegl1 libgles2` (Debian/Ubuntu); a CI verifica as dependências de `libmediapipe.so` com `ldd` antes de empacotar. O diagnóstico manual só de Linux não substitui a matriz completa de testes e builds. diff --git a/tools/balance.py b/tools/balance.py index 0a79536..92f6b35 100644 --- a/tools/balance.py +++ b/tools/balance.py @@ -15,7 +15,7 @@ import random import sys from pathlib import Path -from typing import Dict, Optional, Tuple +from typing import Dict, List, Optional, Tuple ROOT = Path(__file__).resolve().parents[1] sys.path.insert(0, str(ROOT)) @@ -126,6 +126,8 @@ def simulate( latency_s: float = 0.25, exploration: bool = False, assistance: bool = False, + city_restoration: float = C.START_RESTORATION, + starting_stars: int = 0, ) -> dict: """Roda um cenário sintético com a dinâmica de posição e colisões reais do jogo.""" rng = random.Random(seed ^ 0xB41A6CE) @@ -139,6 +141,8 @@ def simulate( session_limit_s=session_limit_s, exploration=exploration, predictable_assistance=assistance, + city_restoration=city_restoration, + starting_stars=starting_stars, ) stage_times = [] counts = {"decisoes_perdidas": 0, "sem_rota_simplificada": 0, "nao_tentadas": 0, "alvos_de_coleta": 0} @@ -195,6 +199,9 @@ def simulate( "max_player_displacement": round(max_displacement, 3), "stage_times_s": [round(value, 3) for value in stage_times], "restoration": round(run.restoration, 2), + "city_restoration_at_start": round(run.city_restoration_at_start, 2), + "local_restoration": round(run.local_restoration, 2), + "stars": run.stars, "resources": dict(run.resources), "resource_total": sum(run.resources.values()), "collected": run.waste_collected, @@ -225,6 +232,25 @@ def collection_costs() -> Dict[str, int]: return costs +def first_build_timeline(records: List[dict], mode: str) -> List[dict]: + """Quando a trajetória persistente consegue pagar obras na ordem da vila.""" + wallet = {key: 0 for key in WASTE_KEYS} + upgrades = iter(VILLAGE_UPGRADES) + next_upgrade = next(upgrades, None) + bought = [] + for record in (item for item in records if item["mode"] == mode): + for key, amount in record["resources"].items(): + wallet[key] = wallet.get(key, 0) + amount + while next_upgrade is not None and all( + wallet.get(key, 0) >= amount for key, amount in next_upgrade.cost.items() + ): + for key, amount in next_upgrade.cost.items(): + wallet[key] -= amount + bought.append({"upgrade": next_upgrade.key, "flight_index": record["trajectory_index"]}) + next_upgrade = next(upgrades, None) + return bought + + def main() -> None: parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument("--coleta", type=float, default=0.4, help="chance de tentar alinhar com cada resíduo") @@ -240,6 +266,11 @@ def main() -> None: parser.add_argument("--latencia", type=float, default=0.25, help="atraso sintético até aplicar o comando") parser.add_argument("--exploracao", action="store_true", help="modo que não elimina após as vidas") parser.add_argument("--assistencia", action="store_true", help="cinco vidas e 2 s de proteção após batida") + parser.add_argument( + "--apoio-escolhido", + action="store_true", + help="a pessoa já escolheu Sem apoio; desliga o apoio padrão dos três primeiros voos", + ) parser.add_argument("--voos", type=int, default=10) parser.add_argument("--seed-inicial", type=int, default=1) parser.add_argument("--bioma", choices=tuple(BIOMES), default="amazonia") @@ -251,24 +282,46 @@ def main() -> None: if args.voos <= 0 or min(args.pausa, args.interromper, args.reacao, args.latencia) < 0: parser.error("--voos deve ser positivo; tempos não podem ser negativos") - records = [ - simulate( - mode, - args.coleta, - args.seed_inicial + i, - biome=args.bioma, - error_rate=args.erro, - pause_per_minute=args.pausa, - interrupt_after=args.interromper, - session_limit_s=args.limite, - reaction_s=args.reacao, - latency_s=args.latencia, - exploration=args.exploracao, - assistance=args.assistencia, - ) - for mode in ("normal", "dificil") - for i in range(args.voos) - ] + records = [] + city_completion = {} + for mode in ("normal", "dificil"): + city = C.START_RESTORATION + stars = 0 + active_before_completion = 0.0 + completed_at = None + for index in range(args.voos): + flight_assistance = args.assistencia or (not args.apoio_escolhido and index < 3) + record = simulate( + mode, + args.coleta, + args.seed_inicial + index, + biome=args.bioma, + error_rate=args.erro, + pause_per_minute=args.pausa, + interrupt_after=args.interromper, + session_limit_s=args.limite, + reaction_s=args.reacao, + latency_s=args.latencia, + exploration=args.exploracao, + assistance=flight_assistance, + city_restoration=city, + starting_stars=stars, + ) + record["trajectory_index"] = index + 1 + record["default_assistance"] = flight_assistance and not args.assistencia and not args.apoio_escolhido + if completed_at is None: + active_before_completion += record["seconds_active"] + if record["completed"]: + completed_at = index + 1 + city = record["restoration"] + stars = max(stars, record["stars"]) + records.append(record) + city_completion[mode] = { + "flight_index": completed_at, + "active_minutes_until_complete": round(active_before_completion / 60, 2) if completed_at else None, + "city_after_sequence": round(city, 2), + "sequence_flights": args.voos, + } costs = collection_costs() means = { mode: { @@ -295,11 +348,14 @@ def main() -> None: "input_latency_seconds": args.latencia, "exploration": args.exploracao, "assistance": args.assistencia, + "assistance_choice_already_made": args.apoio_escolhido, "flight_count_per_mode": args.voos, "seed_start": args.seed_inicial, }, "collection_costs": costs, "mean_resources_by_mode": means, + "city_completion_by_mode": city_completion, + "first_builds_by_mode": {mode: first_build_timeline(records, mode) for mode in ("normal", "dificil")}, "runs": records, } if args.out: @@ -323,6 +379,20 @@ def main() -> None: f"game over {game_overs}, interrupções {interruptions}, batidas médias {hits:.1f}" ) print(f" média de recursos por voo: {resource_text}") + completion = city_completion[mode] + if completion["flight_index"] is None: + print(f" transformação persistente: {completion['city_after_sequence']:.1f}% após {args.voos} voos") + else: + print( + f" cidade chega a 100% no voo {completion['flight_index']} " + f"({completion['active_minutes_until_complete']:.2f} min ativos acumulados)" + ) + builds = report["first_builds_by_mode"][mode][:2] + if builds: + labels = ", ".join(f"{item['upgrade']} no voo {item['flight_index']}" for item in builds) + print(" primeiras obras: " + labels) + else: + print(" nenhuma das duas primeiras obras financiada na sequência") if args.out: print(f"Relatório JSON: {args.out}") diff --git a/tools/benchmark_ground.py b/tools/benchmark_ground.py new file mode 100644 index 0000000..9ba2273 --- /dev/null +++ b/tools/benchmark_ground.py @@ -0,0 +1,143 @@ +"""Compare the current painted ground with a selected Git revision. + +CPU-only measurement with SDL's dummy display; it never starts a webcam. +Example: ``python tools/benchmark_ground.py --baseline-ref HEAD --frames 80`` +""" + +from __future__ import annotations + +import argparse +import json +import os +import statistics +import subprocess +import sys +import time +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT)) +os.environ.setdefault("SDL_VIDEODRIVER", "dummy") +os.environ.setdefault("SDL_AUDIODRIVER", "dummy") +os.environ.setdefault("PYGAME_HIDE_SUPPORT_PROMPT", "1") + + +def baseline_class(reference: str): + try: + source = subprocess.check_output( + ["git", "show", f"{reference}:dobramundo/engine/painted_route.py"], + cwd=ROOT, + text=True, + stderr=subprocess.PIPE, + ) + except (OSError, subprocess.CalledProcessError) as exc: + raise SystemExit(f"Não foi possível ler PaintedGround em {reference}: {exc}") from None + namespace = { + "__name__": "dobramundo.engine._benchmark_baseline_painted_route", + "__package__": "dobramundo.engine", + } + exec(compile(source, f"{reference}:dobramundo/engine/painted_route.py", "exec"), namespace) + return namespace["PaintedGround"] + + +def pixel_metrics(surface, horizon: int) -> dict: + import pygame + + previous = None + identical = 0 + rows = 0 + for y in range(horizon + 1, surface.get_height()): + # A compact row snapshot is sufficient for exact repeated-row detection. + current = pygame.image.tostring(surface.subsurface((0, y, surface.get_width(), 1)), "RGB") + if previous == current: + identical += 1 + previous = current + rows += 1 + return { + "identical_adjacent_rows": round(identical / max(1, rows - 1), 4), + "distinct_vertical_transitions": rows - 1 - identical, + "sampled_rows": rows, + } + + +def run_case(cls, atlas, biome: str, frames: int, pygame, config) -> dict: + painter = cls(atlas) + if hasattr(painter, "prepare_vertical_mip"): + for name in tuple(painter.vertical_mips): + while painter.vertical_mips[name][-1].get_height() > 16: + painter.prepare_vertical_mip(name) + surface = pygame.display.get_surface() + samples = [] + first_ms = None + for frame in range(frames): + distance = frame * 2.8 + cam = frame * 0.12 + surface.fill((12, 15, 18)) + started = time.perf_counter() + painter.paint(surface, biome, distance, cam, (230, 220, 190)) + elapsed = (time.perf_counter() - started) * 1000.0 + if first_ms is None: + first_ms = elapsed + samples.append(elapsed) + # Compare raster quality at the same deterministic state for each renderer. + surface.fill((12, 15, 18)) + painter.paint(surface, biome, max(0, frames - 1) * 2.8, max(0, frames - 1) * 0.12, (230, 220, 190)) + ordered = sorted(samples) + index = min(len(ordered) - 1, int(len(ordered) * 0.95)) + return { + "frames": frames, + "first_frame_ms": round(first_ms or 0.0, 3), + "median_ms": round(statistics.median(samples), 3), + "p95_ms": round(ordered[index], 3), + "max_ms": round(max(samples), 3), + **pixel_metrics(surface, config.HORIZON_Y), + } + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--baseline-ref", default="HEAD", help="Git ref supplying the comparison renderer") + parser.add_argument("--frames", type=int, default=80, help="rendered frames per biome and renderer") + args = parser.parse_args() + if args.frames < 5 or args.frames > 10000: + parser.error("--frames deve ficar entre 5 e 10000") + + import pygame + + pygame.init() + pygame.display.set_mode((1100, 650)) + from dobramundo import config as C + from dobramundo.engine.assets import Assets + from dobramundo.engine.painted_route import PaintedGround + + assets = Assets() + atlas = assets.sprite("watercolor", "terrain_tiles_v3") + if atlas is None: + atlas = assets.sprite("watercolor", "terrain_tiles") + if atlas is None: + raise SystemExit("Atlas de terreno ausente; comparação não disponível.") + old_ground = baseline_class(args.baseline_ref) + results = {} + for biome in ("amazonia", "caatinga"): + results[f"{biome}:baseline"] = run_case(old_ground, atlas, biome, args.frames, pygame, C) + results[f"{biome}:current"] = run_case(PaintedGround, atlas, biome, args.frames, pygame, C) + print( + json.dumps( + { + "measurement": "painted_ground_only", + "display": "SDL dummy software surface 1100x650", + "baseline_ref": args.baseline_ref, + "frames_per_case": args.frames, + "camera": False, + "results": results, + }, + ensure_ascii=False, + sort_keys=True, + ) + ) + pygame.quit() + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tools/benchmark_runtime.py b/tools/benchmark_runtime.py index 18bfde5..838d766 100644 --- a/tools/benchmark_runtime.py +++ b/tools/benchmark_runtime.py @@ -67,18 +67,6 @@ def stats(values: list) -> dict: } -def instrument(obj, name: str, samples: dict, key: str) -> None: - original = getattr(obj, name) - - def measured(*args, **kwargs): - start = time.perf_counter() - result = original(*args, **kwargs) - samples.setdefault(key, []).append((time.perf_counter() - start) * 1000) - return result - - setattr(obj, name, measured) - - def main() -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--out", type=Path, required=True) @@ -89,8 +77,19 @@ def main() -> int: "--camera", action="store_true", help="abre webcam local para medir CPU concorrente; sem salvar vídeo" ) parser.add_argument("--device", type=int, default=0) + parser.add_argument( + "--camera-control", + action="store_true", + help="usa a leitura real da webcam no controle e mede sua sequência consumida", + ) + parser.add_argument("--window", action="store_true", help="apresenta uma janela real em vez de SDL dummy") parser.add_argument("--empty-pilot", action="store_true", help="reproduz a carga sem avatar do benchmark 1.5") + parser.add_argument("--biome", choices=("all", "amazonia", "caatinga"), default="all") + parser.add_argument("--contrast", choices=("both", "no", "yes"), default="both") args = parser.parse_args() + if args.camera_control: + args.camera = True + args.paced = True if args.frames < 1: parser.error("--frames deve ser maior que zero") args.out.mkdir(parents=True, exist_ok=True) @@ -100,8 +99,11 @@ def main() -> int: PYGAME_HIDE_SUPPORT_PROMPT="1", DOBRAMUNDO_DATA_DIR=str(args.out / "perfil-benchmark"), ) + if args.window: + os.environ.pop("SDL_VIDEODRIVER", None) import pygame + from dobramundo import __version__ from dobramundo.app import App from dobramundo.content.biomes import BIOMES from dobramundo.game.run import FlightRun @@ -120,6 +122,7 @@ def main() -> int: memory_after = resident_bytes() watercolor = [(path, surf) for path, surf in app.assets._loaded.items() if "watercolor" in path] report = { + "version": __version__, "conditions": "CPU; SDL dummy; no camera; 1100x650; fresh process; 60 warmup frames per case", "pacing": "60 fps target, sleep excluded from frame timings" if args.paced else "uncapped stress", "python": platform.python_version(), @@ -152,15 +155,36 @@ def main() -> int: "read-return to present-call completion; excludes sensor buffering and physical display latency" ) app.save = lambda: None - samples = {} - instrument(app.view, "background", samples, "background") - instrument(app.view.watercolor, "backdrop", samples, "horizon") - instrument(app.view.watercolor.route.ground, "paint", samples, "ground") - instrument(app.view, "desaturate", samples, "desaturate") - instrument(app.view, "draw_run", samples, "world") - instrument(app, "present", samples, "present") - for city in ("amazonia", "caatinga"): - for contrast in (False, True): + if args.camera_control: + app.input.source = camera + app.profile.controle = "cabeca" + app.input.set_segment("cabeca") + report["conditions"] += "; real camera samples consumed by head control; visibility/calibration reported" + if args.window: + report["conditions"] = report["conditions"].replace("SDL dummy", "native window") + from dobramundo.engine.painted_route import PaintedGround + from tools.frame_profiler import FrameProfiler + + profiler = FrameProfiler() + samples = profiler.samples + profiler.instrument(app.view, "background", "background") + profiler.instrument(app.view.watercolor, "backdrop", "horizon") + profiler.instrument(PaintedGround, "paint", "ground") + profiler.instrument(app.view, "desaturate", "desaturate") + profiler.instrument(app.view, "draw_run", "world") + profiler.instrument(app.view, "_draw_run", "entities_and_effects") + profiler.instrument(app.view, "draw_player", "plane") + profiler.instrument(app.view.watercolor.route, "draw", "route_and_banks") + profiler.instrument(FlightRun, "update", "rules_update") + profiler.instrument(FlightScene, "draw_hud", "hud") + profiler.instrument(FlightScene, "draw", "scene") + profiler.instrument(app, "advance", "canvas") + profiler.instrument(app.input, "update", "input") + profiler.instrument(app, "present", "present") + cities = ("amazonia", "caatinga") if args.biome == "all" else (args.biome,) + contrasts = (False, True) if args.contrast == "both" else (args.contrast == "yes",) + for city in cities: + for contrast in contrasts: setup_started = time.perf_counter() scene = FlightScene(app, city) scene.run = FlightRun(BIOMES[city], "normal", {}, seed=7, intro=False) @@ -172,16 +196,38 @@ def main() -> int: values = [] warmup_values = [] camera_age = [] - samples.clear() - for frame in range(args.frames + 60): + consumed = {} + usable_frames = 0 + sequences = set() + profiler.clear() + frame = 0 + preparation = [] + first_interactive_ms = None + loading_started = time.perf_counter() + loading_elapsed_ms = 0.0 + iterations = 0 + while frame < args.frames + 60: + iterations += 1 + if iterations > args.frames + 1860: + raise RuntimeError("O preparo do voo não terminou") if frame == 60: - samples.clear() + profiler.clear() # A continuous, deterministic trip through both stage changes. target_restoration = min(95, 5 + frame * 90 / max(1, args.frames + 59)) scene.run.add_restoration(target_restoration - scene.run.restoration) + was_preparing = app.next_scene is not None or getattr(app.view, "warmup_pending", False) start = time.perf_counter() app.step(1 / 60, []) elapsed_ms = (time.perf_counter() - start) * 1000 + preparing = was_preparing or getattr(app.view, "warmup_pending", False) + if preparing: + preparation.append(elapsed_ms) + if args.paced: + time.sleep(max(0.0, 1 / 60 - (time.perf_counter() - start))) + continue + if first_interactive_ms is None: + first_interactive_ms = elapsed_ms + loading_elapsed_ms = (time.perf_counter() - loading_started) * 1000 if frame < 60: warmup_values.append(elapsed_ms) if frame >= 60: @@ -190,20 +236,44 @@ def main() -> int: captured_at = camera.snapshot_with_metadata()[3] if captured_at is not None: camera_age.append((time.monotonic() - captured_at) * 1000) + body = app.input.body + if args.camera_control and body is not None and body.presented_frame is not None: + stamp = body.presented_frame + sequences.add(stamp.sequence) + usable_frames += int(stamp.usable) + for metric, value in stamp.milliseconds().items(): + consumed.setdefault(metric, []).append(value) if args.paced: time.sleep(max(0.0, 1 / 60 - (time.perf_counter() - start))) + frame += 1 label = city + ("_contrast" if contrast else "_normal") report["flights"][label] = { "frame": stats(values), "scene_setup_ms": round(scene_setup_ms, 3), "warmup": stats(warmup_values), - "first_frame_ms": round(warmup_values[0], 3), + "first_preparation_frame_ms": round(preparation[0], 3) if preparation else None, + "first_interactive_frame_ms": round(first_interactive_ms, 3), + "preparation_frames": len(preparation), + "preparation_frame_cost": stats(preparation) if preparation else None, + "time_until_first_interactive_ms": round(loading_elapsed_ms, 3), + "preparation_tasks": list(app.view.warmup_timings), "frames_measured": len(values), "within_60fps_budget_fraction": round(sum(v <= 1000 / 60 for v in values) / len(values), 4), "components": {k: stats(v) for k, v in samples.items()}, + "components_exclusive": {k: stats(v) for k, v in profiler.exclusive.items()}, "rss_bytes": resident_bytes(), "renderer_caches": app.view.cache_stats(), } + if args.camera_control: + report["flights"][label]["consumed_control"] = { + "timings": {k: stats(v) for k, v in consumed.items()}, + "unique_sequences": len(sequences), + "usable_frames": usable_frames, + "fraction_usable": usable_frames / max(1, len(values)), + "basis": ( + "same consumed sequence through canvas and present call; excludes sensor and display delay" + ), + } if camera is not None: report["flights"][label]["latest_camera_result_age_at_present"] = stats(camera_age) report["flights"][label]["camera"] = camera.diagnostics() diff --git a/tools/build_cartridge.py b/tools/build_cartridge.py index f678708..d4de81e 100644 --- a/tools/build_cartridge.py +++ b/tools/build_cartridge.py @@ -23,12 +23,12 @@ from dobramundo import __version__ # noqa: E402 from dobramundo.content import texts # noqa: E402 +from tools.runtime_assets import runtime_assets # noqa: E402 STAGE_ROOT = ROOT / "build" STAGE = STAGE_ROOT / "cartucho" # Partes que só o executável usa (o console não deixa o cartucho abrir janela nem câmera). -DESKTOP_ONLY = {"app.py", "main.py", "__main__.py", "selftest.py", "input/camera.py"} -SKIP_ASSETS = {"pose_model"} +DESKTOP_ONLY = {"app.py", "main.py", "__main__.py", "selftest.py", "instance_lock.py", "input/camera.py"} MANIFEST = f"""[game] id = "dobramundo" @@ -84,10 +84,6 @@ def ignore_package(folder: str, names): return skipped -def ignore_assets(folder: str, names): - return {n for n in names if n in SKIP_ASSETS or n.endswith((".task", ".tflite")) or n.startswith(".")} - - def stage() -> Path: # A exclusão é limitada ao estágio conhecido, sem seguir junction/symlink. expected = STAGE_ROOT / "cartucho" @@ -97,7 +93,10 @@ def stage() -> Path: shutil.rmtree(STAGE) STAGE.mkdir(parents=True) shutil.copytree(ROOT / "dobramundo", STAGE / "dobramundo", ignore=ignore_package) - shutil.copytree(ROOT / "assets", STAGE / "assets", ignore=ignore_assets) + for source, relative in runtime_assets(ROOT, console=True): + target = STAGE / "assets" / relative + target.parent.mkdir(parents=True, exist_ok=True) + shutil.copy2(source, target) (STAGE / "ttea.toml").write_text(MANIFEST, encoding="utf-8") (STAGE / "pyproject.toml").write_text(PYPROJECT, encoding="utf-8") (STAGE / "CREDITOS.md").write_text(credits_text(), encoding="utf-8") diff --git a/tools/build_desktop.py b/tools/build_desktop.py index d1d18aa..845ca8d 100644 --- a/tools/build_desktop.py +++ b/tools/build_desktop.py @@ -41,10 +41,27 @@ def build(onefile: bool = False, require_camera: bool = True) -> Path: reports = ROOT / "build" / "desktop-selftest" reports.mkdir(parents=True, exist_ok=True) run_id = uuid.uuid4().hex + # Invalidate an earlier success before any fallible provenance/build step. (reports / "self_test.json").write_text( json.dumps({"status": "building", "run_id": run_id}) + "\n", encoding="utf-8" ) require_linux_egl_runtime(require_camera) + build_commit = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=ROOT, text=True).strip() + github_sha = os.environ.get("GITHUB_SHA") + ci_run_id = os.environ.get("GITHUB_RUN_ID") + ci_attempt = os.environ.get("GITHUB_RUN_ATTEMPT") + provenance = { + "build_commit": build_commit, + "github_sha": github_sha, + "github_run_id": ci_run_id, + "github_run_attempt": ci_attempt, + } + (reports / "self_test.json").write_text( + json.dumps({"status": "building", "run_id": run_id, **provenance}) + "\n", + encoding="utf-8", + ) + if github_sha and github_sha != build_commit: + raise RuntimeError("GITHUB_SHA difere do checkout usado para gerar o executável") env = dict(os.environ, DOBRA_ONEFILE="1" if onefile else "0") subprocess.run( [ @@ -87,6 +104,7 @@ def build(onefile: bool = False, require_camera: bool = True) -> Path: camera = data.get("camera", {}) camera["modelo"] = bool(camera.get("modelo")) data["run_id"] = run_id + data.update(provenance) (reports / "self_test.json").write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n", encoding="utf-8") completed.check_returncode() if data.get("status") != "ok": diff --git a/tools/capture_journeys.py b/tools/capture_journeys.py new file mode 100644 index 0000000..bae9c03 --- /dev/null +++ b/tools/capture_journeys.py @@ -0,0 +1,185 @@ +"""Captura jornadas temporais curtas para conferir emendas, estágios e obras. + +As imagens usam o renderer pygame real e um perfil sintético. O manifesto registra +as distâncias/estados usados; a animação serve para inspeção visual, não para medir +física, desempenho ou experiência de crianças. +""" + +from __future__ import annotations + +import argparse +import json +import os +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT)) + + +def _save_gif(frames, path: Path) -> None: + import pygame + from PIL import Image + + images = [Image.frombytes("RGB", frame.get_size(), pygame.image.tostring(frame, "RGB")) for frame in frames] + # Reduz o peso do artefato sem alterar a proporção do quadro lógico. + images = [image.resize((550, 325), Image.Resampling.LANCZOS) for image in images] + images[0].save(path, save_all=True, append_images=images[1:], duration=90, loop=0, optimize=True) + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--out", type=Path, required=True, help="pasta externa para GIFs, PNGs e manifesto") + parser.add_argument("--frames", type=int, default=30, choices=(24, 30, 36)) + args = parser.parse_args() + args.out.mkdir(parents=True, exist_ok=True) + os.environ.update( + SDL_VIDEODRIVER="dummy", + SDL_AUDIODRIVER="dummy", + PYGAME_HIDE_SUPPORT_PROMPT="1", + DOBRAMUNDO_DATA_DIR=str(args.out / "perfil-sintetico"), + ) + + import pygame + + from dobramundo import config as C + from dobramundo.app import App + from dobramundo.content.biomes import BIOMES + from dobramundo.content.progress import VILLAGE_UPGRADES + from dobramundo.engine.painted_route import PaintedGround, PaintedRoute + from dobramundo.persistence import Profile + from dobramundo.scenes import make_scene + + profile = Profile() + profile.consentimento = True + app = App(audio=False, profile=profile) + manifest = { + "profile": "synthetic", + "renderer": "pygame real; GIFs downscaled to 550x325", + "frames_per_gif": args.frames, + "journeys": [], + "works": [], + "limitations": [ + "amostragem visual deterministica; nao representa controles ou fisica de um voo", + "reduzir movimento afeta efeitos do renderer; distancia de mundo ainda avanca entre quadros", + ], + } + + def render_flight(biome_key: str, reduced: bool, kind: str, values: list[float], world_values: list[float]): + app.options.reduzir_movimento = reduced + app.options.alto_contraste = False + app.apply_options() + scene = make_scene(app, "voo", biome_key, seed=20261025, intro_override=False) + app.go(scene) + app.advance(0.0, []) + for _ in range(1600): + if not app.view.warmup_pending: + break + app.advance(0.0, []) + if app.view.warmup_pending: + raise RuntimeError(f"a preparação visual não terminou: {biome_key}") + + scene.started = True + scene.banners.clear() + scene.run.world.entities.clear() + scene.run.beams.clear() + frames = [] + samples = [] + for index, (distance, visual) in enumerate(zip(values, world_values)): + world = scene.run.world + world.distance = float(distance) + world.visual = float(visual) + world.restoration = float(visual) + # Cenografia sem entidades mantém a leitura do chão e das margens. + world.entities.clear() + scene.draw(app.canvas) + frames.append(app.canvas.copy()) + samples.append( + { + "frame": index, + "distance": round(float(distance), 2), + "visual_restoration": round(float(visual), 2), + "horizon_stage_mix": list(app.view.watercolor.stage_mix(float(visual))), + "bank_stage_mix_by_depth": { + str(depth): list(PaintedRoute.stage_blend(float(visual), depth)) for depth in (100, 500, 1500) + }, + } + ) + path = args.out / f"{biome_key}-{kind}-reduzir-{int(reduced)}.gif" + _save_gif(frames, path) + manifest["journeys"].append( + { + "file": path.name, + "biome": biome_key, + "reduced_motion": reduced, + "journey": kind, + "samples": samples, + } + ) + + try: + for biome_key in BIOMES: + tile = PaintedGround.TILE_Z + seam_center = tile * 2 + offsets = [((index / (args.frames - 1)) - 0.5) * 220 for index in range(args.frames)] + for reduced in (False, True): + render_flight( + biome_key, + reduced, + "emenda", + [seam_center + offset for offset in offsets], + [C.START_RESTORATION] * args.frames, + ) + for stage in (1, 2): + start = C.START_RESTORATION if stage == 1 else C.ERA_SPAN + end = C.ERA_SPAN * stage + # Include the early continuous blend and the four-point delay + # of the near bank, with samples outside both endpoints. + visual_values = [ + start - 2 + (end - start + 8) * index / (args.frames - 1) for index in range(args.frames) + ] + render_flight( + biome_key, + reduced, + "mudanca-estagio-" + str(stage), + [900 + 8 * index for index in range(args.frames)], + visual_values, + ) + + # Pares capturados na mesma cena para manter câmera, escala e perfil iguais. + app.options.reduzir_movimento = True + app.apply_options() + village_scene = make_scene(app, "vila") + app.go(village_scene) + app.advance(0.0, []) + for index, upgrade in enumerate(VILLAGE_UPGRADES): + for owned, state in ((index, "antes"), (index + 1, "depois")): + profile.vila = [item.key for item in VILLAGE_UPGRADES[:owned]] + village_scene.build() + village_scene.draw(app.canvas) + filename = f"obra-{index + 1:02d}-{upgrade.key}-{state}.png" + pygame.image.save(app.canvas, args.out / filename) + manifest["works"].append( + { + "file": filename, + "upgrade": upgrade.key, + "state": state, + "owned_before_capture": [item.key for item in VILLAGE_UPGRADES[:owned]], + } + ) + + manifest_path = args.out / "journeys.json" + manifest_path.write_text(json.dumps(manifest, ensure_ascii=False, indent=2) + "\n", encoding="utf-8") + print( + json.dumps( + {"journeys": len(manifest["journeys"]), "works": len(manifest["works"]), "manifest": str(manifest_path)} + ) + ) + finally: + app.input.stop_camera() + pygame.quit() + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tools/capture_release.py b/tools/capture_release.py index 12e3825..a7af68c 100644 --- a/tools/capture_release.py +++ b/tools/capture_release.py @@ -15,6 +15,9 @@ def main() -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--out", type=Path, required=True) + parser.add_argument( + "--reference", action="store_true", help="reduz movimento para comparação visual determinística" + ) args = parser.parse_args() args.out.mkdir(parents=True, exist_ok=True) os.environ.update( @@ -31,6 +34,7 @@ def main() -> int: profile = Profile() profile.consentimento = True + profile.opcoes.reduzir_movimento = args.reference app = App(audio=False, profile=profile) report = { "profile": "synthetic", @@ -43,6 +47,12 @@ def capture(name, scene, frames=6, clean_flight=False): app.go(scene) for _ in range(frames): app.step(1 / 60, []) + for _ in range(600): + if not getattr(scene, "waiting_for_assets", False) and not getattr(app.view, "warmup_pending", False): + break + app.step(1 / 60, []) + else: + report["layout_failures"].append({"screen": name, "error": "warmup did not finish"}) if clean_flight: scene.run.beams.clear() scene.draw(app.canvas) @@ -60,6 +70,27 @@ def capture(name, scene, frames=6, clean_flight=False): try: for name in ("vila", "mapa", "hangar", "piloto", "preparar", "opcoes"): capture(name, make_scene(app, name)) + from dobramundo.content.progress import VILLAGE_UPGRADES + from dobramundo.scenes.intro import PAGES + from dobramundo.scenes.options import OPTION_PAGES + + for page, _, _ in OPTION_PAGES: + scene = make_scene(app, "opcoes") + scene.section = page + capture("opcoes-" + page, scene) + for page in range(len(PAGES)): + scene = make_scene(app, "abertura") + scene._manual_page = page + scene.time = sum(PAGES[:page]) + 1 + capture("historia-" + str(page), scene) + for stage, count in ( + ("industrial", 0), + ("transicao", len(VILLAGE_UPGRADES) // 2), + ("solarpunk", len(VILLAGE_UPGRADES)), + ): + profile.vila = [item.key for item in VILLAGE_UPGRADES[:count]] + capture("vila-" + stage, make_scene(app, "vila")) + profile.vila = [] for enabled in (False, True): app.options.modo_exploracao = enabled app.options.assistencia_previsivel = enabled @@ -87,6 +118,26 @@ def capture(name, scene, frames=6, clean_flight=False): scene.run.invincible = True scene.run.add_restoration(68) capture(biome + ("-contraste" if contrast else ""), scene, frames=120, clean_flight=True) + for stage, progress in (("industrial", 5), ("transicao", 48), ("solarpunk", 100)): + app.options.alto_contraste = False + app.apply_options() + profile.transformacao_cidades[biome] = progress + scene = make_scene(app, "voo", biome, seed=20261025, intro_override=False) + scene.run.invincible = True + capture(biome + "-" + stage, scene, frames=60, clean_flight=True) + scene.run.complete = True + scene.run.stars = 2 # sem peças compradas, o resultado ensina o próximo passo + scene.run.resources.update(papel=12, plastico=8, metal=4, vidro=8) + scene.run.score = 520 + capture("resultado-" + biome, make_scene(app, "resultado", scene.run)) + profile.transformacao_cidades["amazonia"] = 42 + profile.estrelas["amazonia"] = 1 + scene = make_scene(app, "voo", "amazonia", seed=20261025, intro_override=False) + scene.run.timeout = True + scene.run.flight_time = 120 + scene.run.resources.update(papel=8, plastico=4, metal=4, vidro=4) + scene.run.score = 325 + capture("resultado-tempo", make_scene(app, "resultado", scene.run)) (args.out / "captures.json").write_text( json.dumps(report, ensure_ascii=False, indent=2) + "\n", encoding="utf-8" ) diff --git a/tools/frame_profiler.py b/tools/frame_profiler.py new file mode 100644 index 0000000..0d74515 --- /dev/null +++ b/tools/frame_profiler.py @@ -0,0 +1,38 @@ +"""Instrumentação aninhada: tempo inclusivo e exclusivo, sem somar escopos.""" + +from __future__ import annotations + +import time +from functools import wraps + + +class FrameProfiler: + def __init__(self, clock=time.perf_counter): + self.clock = clock + self.samples = {} + self.exclusive = {} + self.stack = [] + + def clear(self): + self.samples.clear() + self.exclusive.clear() + + def instrument(self, obj, name, key): + original = getattr(obj, name) + + @wraps(original) + def measured(*args, **kwargs): + start = self.clock() + children = [0.0] + self.stack.append(children) + try: + return original(*args, **kwargs) + finally: + elapsed = self.clock() - start + self.stack.pop() + if self.stack: + self.stack[-1][0] += elapsed + self.samples.setdefault(key, []).append(elapsed * 1000) + self.exclusive.setdefault(key, []).append(max(0.0, elapsed - children[0]) * 1000) + + setattr(obj, name, measured) diff --git a/tools/package_release.py b/tools/package_release.py new file mode 100644 index 0000000..67960a7 --- /dev/null +++ b/tools/package_release.py @@ -0,0 +1,292 @@ +"""Monta downloads verificáveis a partir dos dois builds aprovados pela CI. + +Não publica no GitHub. A mesma rotina serve a qualquer versão; o manifesto +liga os arquivos à árvore Git testada, sem depender de pastas do autor. +""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import posixpath +import re +import shutil +import subprocess +import sys +import tarfile +import zipfile +from pathlib import Path, PurePosixPath +from typing import Dict, List, Optional + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT)) + +from dobramundo import __version__ # noqa: E402 +from tools.build_cartridge import DESKTOP_ONLY # noqa: E402 +from tools.runtime_assets import runtime_assets # noqa: E402 + + +def sha256(path: Path) -> str: + digest = hashlib.sha256() + with path.open("rb") as stream: + for chunk in iter(lambda: stream.read(1024 * 1024), b""): + digest.update(chunk) + return digest.hexdigest() + + +def unique(root: Path, pattern: str) -> Path: + files = list(root.rglob(pattern)) + if len(files) != 1: + raise ValueError(f"Esperava um {pattern} em {root}, encontrei {len(files)}") + return files[0] + + +def verified_build( + root: Path, + expected_commit: Optional[str] = None, + expected_ci_run_id: Optional[str] = None, + expected_ci_attempt: Optional[str] = None, +) -> dict: + report = json.loads(unique(root, "self_test.json").read_text(encoding="utf-8")) + if report.get("status") != "ok" or report.get("camera", {}).get("detector") != "ok": + raise ValueError("O pacote precisa de self-test aprovado incluindo detector") + if report.get("versao") != __version__: + raise ValueError("A versão do executável não corresponde à versão da release") + if not report.get("run_id"): + raise ValueError("Relatório de build sem identificador de execução") + if expected_commit and ( + report.get("build_commit") != expected_commit or report.get("github_sha") != expected_commit + ): + raise ValueError("O commit do executável não corresponde ao commit aprovado pela CI") + if expected_ci_run_id and report.get("github_run_id") != expected_ci_run_id: + raise ValueError("A execução de CI do executável não corresponde ao relatório aprovado") + if expected_ci_attempt and report.get("github_run_attempt") != expected_ci_attempt: + raise ValueError("A tentativa de CI do executável não corresponde ao relatório aprovado") + return report + + +def portable_sources(root: Path) -> Dict[str, Path]: + """Map source files copied into the cartucho by build_cartridge.stage().""" + package_root = root / "dobramundo" + result = {} + for path in package_root.rglob("*.py"): + relative = path.relative_to(package_root).as_posix() + if relative in DESKTOP_ONLY or "__pycache__" in path.parts: + continue + result["dobramundo/" + relative] = path + return result + + +def github_run_id(ci_report: dict) -> Optional[str]: + for key in ("databaseId", "runId", "run_id", "id", "github_run_id"): + value = ci_report.get(key) + if value is not None and str(value): + return str(value) + url = ci_report.get("url", "") + match = re.search(r"/actions/runs/(\d+)(?:/|$)", url) + return match.group(1) if match else None + + +def github_run_attempt(ci_report: dict) -> Optional[str]: + for key in ("runAttempt", "run_attempt", "attempt", "github_run_attempt"): + value = ci_report.get(key) + if value is not None and str(value): + return str(value) + return None + + +def assert_tracked_inputs(paths: List[Path], root: Path = ROOT) -> None: + tracked = set( + subprocess.check_output(["git", "ls-files", "-z"], cwd=root) + .decode("utf-8", errors="surrogateescape") + .split("\0") + ) + missing = sorted( + path.relative_to(root).as_posix() for path in paths if path.relative_to(root).as_posix() not in tracked + ) + if missing: + raise ValueError("Entradas do pacote não rastreadas pelo commit: " + ", ".join(missing[:8])) + + +def assert_clean_checkout(root: Path = ROOT) -> None: + status = subprocess.check_output(["git", "status", "--porcelain"], cwd=root, text=True).strip() + if status: + raise ValueError("A árvore de trabalho contém alterações fora do commit da release") + + +def validate_cartridge_sources(archive: zipfile.ZipFile, root: Path) -> None: + expected = portable_sources(root) + names = archive.namelist() + if len(names) != len(set(names)): + raise ValueError("Cartucho contém caminhos duplicados") + actual = {name for name in names if name.startswith("dobramundo/") and name.endswith(".py")} + if actual != set(expected): + missing = sorted(set(expected) - actual) + extra = sorted(actual - set(expected)) + raise ValueError( + f"Fontes portáteis do cartucho diferem do inventário: faltando={missing[:6]} excedentes={extra[:6]}" + ) + for name, source in expected.items(): + if archive.read(name) != source.read_bytes(): + raise ValueError("Código do cartucho difere da árvore validada: " + name) + + +def write_batch(path: Path, content: str) -> None: + """Write Windows launchers with CRLF even when packaging on Linux.""" + normalized = content.replace("\r\n", "\n").replace("\r", "\n") + path.write_bytes(normalized.replace("\n", "\r\n").encode("ascii")) + + +def validate_tar(path: Path) -> None: + with tarfile.open(path, "r:gz") as archive: + executable = archive.getmember("Dobramundo/Dobramundo") + if not executable.mode & 0o111: + raise ValueError("Executável Linux sem permissão de execução") + for member in archive.getmembers(): + name = PurePosixPath(member.name) + if name.is_absolute() or ".." in name.parts: + raise ValueError("Caminho inseguro no pacote Linux") + if member.issym() or member.islnk(): + link = PurePosixPath(member.linkname) + base = name.parent if member.issym() else PurePosixPath() + resolved = PurePosixPath(posixpath.normpath(str(base / link))) + if link.is_absolute() or not resolved.parts or resolved.parts[0] != "Dobramundo": + raise ValueError("Link inseguro no pacote Linux") + + +def tree(revision: str) -> str: + return subprocess.check_output(["git", "rev-parse", revision + "^{tree}"], cwd=ROOT, text=True).strip() + + +def package(args) -> dict: + ci = json.loads(args.ci_report.read_text(encoding="utf-8-sig")) + if ci.get("status") != "completed" or ci.get("conclusion") != "success": + raise ValueError("A execução de CI precisa estar concluída e aprovada") + if not ci.get("jobs") or any(job.get("conclusion") != "success" for job in ci["jobs"]): + raise ValueError("Todos os jobs da execução completa precisam ter passado") + if ci.get("headSha") != args.build_commit: + raise ValueError("O commit da CI não corresponde ao build informado") + if tree(args.build_commit) != tree(args.release_commit): + raise ValueError("A árvore da release difere da árvore validada") + if subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=ROOT, text=True).strip() != args.release_commit: + raise ValueError("Execute na revisão da release para resolver a versão corretamente") + assert_clean_checkout(ROOT) + ci_run = github_run_id(ci) + if ci_run is None: + raise ValueError("Relatório da CI sem identificador de execução") + ci_attempt = github_run_attempt(ci) + windows_report = verified_build(args.windows, args.build_commit, ci_run, ci_attempt) + linux_report = verified_build(args.linux, args.build_commit, ci_run, ci_attempt) + if windows_report.get("run_id") == linux_report.get("run_id"): + raise ValueError("Builds Windows e Linux têm o mesmo identificador de execução local") + if not windows_report.get("github_run_attempt") or windows_report.get("github_run_attempt") != linux_report.get( + "github_run_attempt" + ): + raise ValueError("Builds Windows e Linux não pertencem à mesma tentativa de CI") + windows = unique(args.windows, "Dobramundo.exe").parent + if not (windows / "_internal").is_dir(): + raise ValueError("O diretório _internal precisa acompanhar o executável") + linux_tar = unique(args.linux, "Dobramundo-Linux.tar.gz") + validate_tar(linux_tar) + with zipfile.ZipFile(args.cartridge) as archive: + if archive.testzip() is not None or "ttea.toml" not in archive.namelist(): + raise ValueError("Cartucho incompleto ou corrompido") + manifest_text = archive.read("ttea.toml").decode("utf-8") + if re.search(r'^version\s*=\s*"' + re.escape(__version__) + r'"\s*$', manifest_text, re.MULTILINE) is None: + raise ValueError("A versão do cartucho difere da release") + validate_cartridge_sources(archive, ROOT) + asset_records = list(runtime_assets(ROOT, console=True)) + expected_asset_names = {"assets/" + relative.as_posix() for _source, relative in asset_records} + actual_asset_names = { + name for name in archive.namelist() if name.startswith("assets/") and not name.endswith("/") + } + if actual_asset_names != expected_asset_names: + missing = sorted(expected_asset_names - actual_asset_names) + extra = sorted(actual_asset_names - expected_asset_names) + raise ValueError(f"Assets do cartucho diferem do inventário: faltando={missing[:6]} excedentes={extra[:6]}") + assert_tracked_inputs([*portable_sources(ROOT).values(), *(source for source, _relative in asset_records)]) + for source, relative in asset_records: + if archive.read("assets/" + relative.as_posix()) != source.read_bytes(): + raise ValueError("Asset do cartucho difere do inventário: " + str(relative)) + args.out.mkdir(parents=True, exist_ok=True) + write_batch( + windows / "Jogar-Dobramundo.bat", + '@echo off\nsetlocal\ncd /d "%~dp0"\n"%~dp0Dobramundo.exe" %*\n', + ) + write_batch( + windows / "Continuar-perfil-1.5.bat", + '@echo off\nsetlocal\ncd /d "%~dp0"\n' + 'if not exist "%LOCALAPPDATA%\\Dobramundo-1.5.0" (\n' + " echo Perfil anterior nao encontrado. Use Jogar-Dobramundo.bat.\n pause\n exit /b 1\n)\n" + 'set "DOBRAMUNDO_DATA_DIR=%LOCALAPPDATA%\\Dobramundo-1.5.0"\n"%~dp0Dobramundo.exe" %*\n', + ) + (windows / "LEIA-ME.txt").write_text( + f"Dobramundo {__version__}\n\nExtraia toda a pasta e abra Jogar-Dobramundo.bat.\n" + "Mantenha _internal junto do jogo. Nao precisa instalar Python.\n" + "Pilotos locais: %APPDATA%\\Dobramundo. A webcam e processada no computador.\n" + "Ajuste movimento, tempo e conforto nas Opcoes com acompanhamento.\n" + "Se usou o lancador 1.5, o atalho Continuar-perfil-1.5 abre a pasta antiga.\n", + encoding="utf-8", + ) + files = [] + win_zip = args.out / f"Dobramundo-{__version__}-Windows.zip" + with zipfile.ZipFile(win_zip, "w", zipfile.ZIP_DEFLATED, compresslevel=9) as archive: + for path in sorted(windows.rglob("*")): + if path.is_file(): + if path.name in {"dobramundo_perfil.json", "perfis.json", "dobramundo.log"}: + raise ValueError("Dados de usuário encontrados no pacote") + archive.write(path, f"Dobramundo-{__version__}-Windows/" + path.relative_to(windows).as_posix()) + with zipfile.ZipFile(win_zip) as archive: + if archive.testzip() is not None: + raise ValueError("Falha de integridade no ZIP Windows") + files.append(win_zip) + for source, name in ( + (linux_tar, f"Dobramundo-{__version__}-Linux.tar.gz"), + (args.cartridge, f"dobramundo-{__version__}.ttea"), + ): + target = args.out / name + shutil.copy2(source, target) + files.append(target) + if args.gallery: + gallery = args.out / f"Dobramundo-{__version__}-Galeria.zip" + with zipfile.ZipFile(gallery, "w", zipfile.ZIP_DEFLATED, compresslevel=9) as archive: + for path in sorted(args.gallery.rglob("*")): + if path.is_file() and path.suffix in {".png", ".html", ".gif"}: + archive.write(path, path.relative_to(args.gallery).as_posix()) + files.append(gallery) + manifest = { + "version": __version__, + "release_commit": args.release_commit, + "desktop_build_commit": args.build_commit, + "source_tree": tree(args.release_commit), + "build_ci": ci.get("url"), + "build_ci_run_id": ci_run, + "build_ci_run_attempt": ci_attempt, + "validation": {"windows": windows_report, "linux": linux_report}, + "physical_acceptance": "separate; see docs/VALIDACAO_PRESENCIAL.md", + "artifacts": [{"file": path.name, "bytes": path.stat().st_size, "sha256": sha256(path)} for path in files], + } + manifest_path = args.out / "release-manifest.json" + manifest_path.write_text(json.dumps(manifest, indent=2, ensure_ascii=False) + "\n", encoding="utf-8") + files.append(manifest_path) + (args.out / "SHA256SUMS.txt").write_text( + "".join(f"{sha256(path)} {path.name}\n" for path in files), encoding="ascii" + ) + return manifest + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + for name in ("windows", "linux", "cartridge", "ci-report", "out"): + parser.add_argument("--" + name, type=Path, required=True) + parser.add_argument("--build-commit", required=True) + parser.add_argument("--release-commit", required=True) + parser.add_argument("--gallery", type=Path) + manifest = package(parser.parse_args()) + print(json.dumps(manifest["artifacts"], indent=2)) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tools/prepare_assets.py b/tools/prepare_assets.py index 0cf6b36..e2c5c93 100644 --- a/tools/prepare_assets.py +++ b/tools/prepare_assets.py @@ -37,6 +37,23 @@ "planes_menu_c", ) PREPARED_SIZES.update({name: (768, 512) for name in PLANE_ATLASES}) +MENU_BACKDROPS = ( + "story_city", + "story_newspaper", + "story_launch", + "story_fold", + "village_industrial_v3", + "village_transition_v3", + "village_final", + "village_start", + "village_start_v2", + "village_intermediate", + "village_clean", + "travel_amazonia", + "travel_caatinga", +) +PREPARED_SIZES.update({name: (C.WIDTH, C.HEIGHT) for name in MENU_BACKDROPS}) +PREPARED_SIZES["map_pigment_v17"] = (768, 768) BACKDROP_SIZE = (C.WIDTH + 32, C.HEIGHT) ATLAS_LAYOUTS = { @@ -118,7 +135,7 @@ def build_manifest(generate: bool = True) -> dict: if path.stem in PREPARED_SIZES: output_path = OUTPUT / path.name target = PREPARED_SIZES[path.stem] - is_backdrop = path.stem in BACKDROPS + is_backdrop = path.stem in BACKDROPS or path.stem in MENU_BACKDROPS record["runtime_variant"] = { "file": f"watercolor_prepared/{path.name}", "dimensions": list(target), diff --git a/tools/runtime_assets.py b/tools/runtime_assets.py new file mode 100644 index 0000000..531bf47 --- /dev/null +++ b/tools/runtime_assets.py @@ -0,0 +1,73 @@ +"""Inventário único dos pacotes: fontes de edição permanecem no Git. + +Prepara PNG em resolução de uso; nunca remove uma fonte do repositório. +Se uma variante não está disponível, inclui seu original como fallback. +""" + +from __future__ import annotations + +import hashlib +import json +from pathlib import Path +from typing import Iterator, Tuple + +ASSET_EXTS = {".png", ".json", ".ogg", ".wav", ".task", ".ico", ".ttf", ".txt"} +SPECIAL_PREPARED = {f"{biome}_{stage}.png" for biome in ("amazonia", "caatinga") for stage in range(3)} +SPECIAL_PREPARED.update(f"planes_{view}_{group}.png" for view in ("flight", "menu") for group in "abc") +SPECIAL_PREPARED.add("planes_flight_a_clean.png") +SUPERSEDED = { + "terrain_tiles.png": "terrain_tiles_v3.png", + "village_start.png": "village_industrial_v3.png", + "village_start_v2.png": "village_industrial_v3.png", + "village_intermediate.png": "village_transition_v3.png", + "village_clean.png": "village_final.png", +} + + +def runtime_assets(root: Path, console: bool = False) -> Iterator[Tuple[Path, Path]]: + """(fonte, caminho relativo a assets) sem originais redundantes.""" + assets = root / "assets" + catalog = assets / "watercolor_prepared" / "asset_catalog.json" + variants = {} + if catalog.is_file(): + for record in json.loads(catalog.read_text(encoding="utf-8"))["assets"]: + variant = record.get("runtime_variant", {}) + path = assets / variant.get("file", "missing") + if path.is_file(): + digest = hashlib.sha256(path.read_bytes()).hexdigest() + if digest != variant.get("sha256"): + raise ValueError(f"Variante preparada divergente: {path.name}; execute prepare_assets.py") + variants[record["file"]] = path + emitted = set() + for file in sorted(assets.rglob("*")): + if not file.is_file() or file.suffix.lower() not in ASSET_EXTS: + continue + relative = file.relative_to(assets) + if console and (relative.parts[0] == "pose_model" or file.suffix in (".task", ".tflite")): + continue + if relative.parts[0] == "watercolor_prepared" and file.suffix == ".png": + continue # emitido pelo registro da fonte, abaixo + if relative.parts[0] == "watercolor" and file.suffix == ".png": + replacement = SUPERSEDED.get(file.name) + if replacement and (assets / "watercolor" / replacement).is_file(): + continue + if file.name in variants: + file = variants[file.name] + if file.name in SPECIAL_PREPARED: + relative = Path("watercolor_prepared") / file.name + if relative in emitted: + raise ValueError(f"Destino repetido no pacote: {relative}") + emitted.add(relative) + yield file, relative + + +def inventory(root: Path, console: bool = False) -> dict: + records = [ + { + "path": relative.as_posix(), + "bytes": source.stat().st_size, + "sha256": hashlib.sha256(source.read_bytes()).hexdigest(), + } + for source, relative in runtime_assets(root, console) + ] + return {"schema": 1, "console": console, "total_bytes": sum(item["bytes"] for item in records), "files": records} diff --git a/tools/soak_runtime.py b/tools/soak_runtime.py index 994d50f..6f28335 100644 --- a/tools/soak_runtime.py +++ b/tools/soak_runtime.py @@ -85,7 +85,21 @@ def main() -> int: scene.run.invincible = True # render stress only; economy uses tools/balance.py scene.run.focus.enabled = False app.go(scene) + preparation = [] + for _ in range(1800): + if app.scene is scene and not app.view.warmup_pending: + break + tick = time.perf_counter() + app.step(dt, []) + preparation.append((time.perf_counter() - tick) * 1000) + else: + raise RuntimeError("O preparo do voo não terminou") + active_started = scene.run.flight_time for frame in range(args.frames): + # A carga de render deve durar o ciclo inteiro. Conclusão/economia + # são verificadas separadamente pelo balanço e testes de regras. + scene.run.complete = False + scene.run.complete_timer = 0.0 if frame in (args.frames // 3, 2 * args.frames // 3): scene.run.add_restoration(34) app.input.pressed = {pygame.K_LEFT if math.sin(frame / 50) < 0 else pygame.K_RIGHT} @@ -93,6 +107,9 @@ def main() -> int: app.step(dt, []) samples.append((time.perf_counter() - tick) * 1000) entity_count = len(scene.run.world.entities) + scene_time = scene.run.flight_time - active_started + if app.scene is not scene or scene_time < (args.frames - 1) * dt: + failures.append(f"voo terminou antes do ensaio no ciclo {cycle}") if entity_count > 300: failures.append(f"objetos sem poda no ciclo {cycle}: {entity_count}") app.input.pressed.clear() @@ -112,6 +129,10 @@ def main() -> int: "loaded_images": len(loaded), "renderer_caches": app.view.cache_stats(), "entities": entity_count, + "preparation_frames": len(preparation), + "preparation_frame_cost": stats(preparation), + "interactive_frames": len(samples), + "flight_simulated_seconds": round(scene_time, 3), **stats(samples), } ) @@ -122,7 +143,7 @@ def main() -> int: flush=True, ) report["wall_seconds"] = round(time.perf_counter() - started, 3) - report["simulated_seconds"] = round(args.cycles * (args.frames + 31) * dt, 3) + report["flight_simulated_seconds"] = round(sum(c["flight_simulated_seconds"] for c in report["cycles"]), 3) report["failures"] = failures report["status"] = "ok" if not failures else "failed" (args.out / "soak.json").write_text(json.dumps(report, ensure_ascii=False, indent=2) + "\n", encoding="utf-8") diff --git a/tools/verify_cartridge.py b/tools/verify_cartridge.py new file mode 100644 index 0000000..63e5d33 --- /dev/null +++ b/tools/verify_cartridge.py @@ -0,0 +1,72 @@ +"""Renderiza o conteúdo montado do cartucho sem buscar assets no checkout. + +Complementa o tsdk check; não simula o rastreamento nem o console físico. +""" + +from __future__ import annotations + +import argparse +import json +import os +import sys +import tempfile +from pathlib import Path + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--stage", type=Path, required=True) + parser.add_argument("--out", type=Path, required=True) + args = parser.parse_args() + stage = args.stage.resolve() + if not (stage / "ttea.toml").is_file(): + parser.error("pasta não contém cartucho montado") + sys.path.insert(0, str(stage)) + os.environ.update(SDL_VIDEODRIVER="dummy", SDL_AUDIODRIVER="dummy", PYGAME_HIDE_SUPPORT_PROMPT="1") + import pygame + + import dobramundo + from dobramundo.core import GameCore + from dobramundo.persistence import Profile + + if stage not in Path(dobramundo.__file__).resolve().parents: + raise RuntimeError("O teste importou o checkout em vez do cartucho") + pygame.init() + pygame.display.set_mode((1100, 650)) + report = {"version": dobramundo.__version__, "status": "running", "screens": [], "flights": {}} + with tempfile.TemporaryDirectory(prefix="dobramundo-cartridge-") as data: + os.environ["DOBRAMUNDO_DATA_DIR"] = data + core = GameCore(Profile(), audio=False, save=lambda profile: True) + core.platform = "ttea" + try: + for name in ("abertura", "vila", "mapa", "hangar", "piloto", "melhorias", "opcoes", "preparar", "sobre"): + core.go(core.create_scene(name)) + for _ in range(6): + core.advance(1 / 60, []) + report["screens"].append(name) + for biome in ("amazonia", "caatinga"): + scene = core.create_scene("voo", biome, seed=7, intro_override=False) + scene.run.invincible = True + core.go(scene) + for frame in range(900): + if frame == 400: + scene.run.add_restoration(42) + core.advance(1 / 60, []) + if core.view.warmup_pending or scene.run.flight_time <= 1: + raise RuntimeError("O cartucho ficou preso no preparo") + report["flights"][biome] = { + "active_seconds": scene.run.flight_time, + "distance": scene.run.world.distance, + } + report["status"] = "ok" + finally: + core.shutdown() + pygame.quit() + args.out.parent.mkdir(parents=True, exist_ok=True) + args.out.write_text(json.dumps(report, ensure_ascii=False, indent=2), encoding="utf-8") + print(json.dumps(report, ensure_ascii=False)) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tools/visual_regression.py b/tools/visual_regression.py new file mode 100644 index 0000000..149eab1 --- /dev/null +++ b/tools/visual_regression.py @@ -0,0 +1,47 @@ +"""Compara PNGs de menus com referência revisada, tolerando pequenas diferenças de raster.""" + +from __future__ import annotations + +import argparse +import json +from pathlib import Path + +from PIL import Image, ImageChops, ImageStat + + +def compare(reference: Path, actual: Path) -> dict: + with Image.open(reference) as first, Image.open(actual) as second: + if first.size != second.size: + return {"ok": False, "reason": "size", "expected": first.size, "actual": second.size} + difference = ImageChops.difference(first.convert("RGB"), second.convert("RGB")) + mean = sum(ImageStat.Stat(difference).mean) / 3 + red, green, blue = difference.split() + worst_channel = ImageChops.lighter(ImageChops.lighter(red, green), blue) + changed = sum(worst_channel.histogram()[33:]) / (first.width * first.height) + return { + "ok": mean <= 1.0 and changed <= 0.01, + "mean_absolute_channel_error": mean, + "fraction_pixels_difference_over_32": changed, + } + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--reference", type=Path, required=True) + parser.add_argument("--actual", type=Path, required=True) + args = parser.parse_args() + files = sorted(args.reference.glob("*.png")) + if not files: + parser.error("nenhuma referência PNG; não aprovar uma comparação vazia") + results = { + path.name: compare(path, args.actual / path.name) + if (args.actual / path.name).is_file() + else {"ok": False, "reason": "missing"} + for path in files + } + print(json.dumps(results, indent=2)) + return int(any(not item["ok"] for item in results.values())) + + +if __name__ == "__main__": + raise SystemExit(main())