Repository navigation
LAS Recomp for Android 0.5.11 (preview): Mali lighting and closing fixes / luz na Mali e fechamento corrigidos
Pre-releaseEnglish
Fixes for Mali GPUs (lighting, textures) and for a crash when closing the app.
- Lighting flickering in houses and dungeons on Mali (issue #2): on GPUs that go through memory copies, the app keeps a list of the memory ranges the lighting reads. It had room for 16, and a dungeon needs 20 to 33: they pushed each other out and came back, and the light read zero each time one was out. The list now has room for 48, and a range that's missed again moves to the front instead of pushing another out.
- Draws that write the game's memory, on Mali: when one of them needed two memory ranges joined, the app ended the drawing pass in the middle of the draw, which leaves that draw outside any pass. The ranges are now joined before the pass starts.
- Textures Mali can't filter smoothly: a few formats can't be filtered linearly on Mali, and sampling them that way is undefined (in BOTWRecompAndroid it turned the grass black on a Mali-G68). They're now sampled without filtering. It may be the cause of the flowers' black outline (issue #14).
- Crash when closing the app (issues #2, #14): closing it (from recent apps, or QUIT on the start screen) let the GPU driver clean itself up while the app was still drawing - "FORTIFY: pthread_mutex_lock called on a destroyed mutex", or a crash in the Mali driver. The app now ends without that cleanup. It only happened on the way out; saves weren't affected.
Updating from 0.5.10 doesn't build the game code again. Saves aren't touched.
Validation: release APK built and signed with the same key as the previous versions. On the POCO F7 Ultra (Adreno 830, Turnip): closing from recent apps with the game running crashed in 2 of 3 tries on 0.5.10 and in 0 of 6 with this version; QUIT on the start screen, right after opening and after the game went back to it, closed cleanly. With a Mali-like path simulated: the lighting route (Mabe Village, the Library, Turtle Rock, Tail Cave) gave the same picture and 29.7 fps as 0.5.10 with the new list; with all the Mali changes, 5 areas ran without errors. The flicker and the textures don't show on this phone, so those fixes aren't confirmed on a real Mali yet.
Experimental preview for Android 11+ / ARM64. It does not include any files extracted from the game.
Português
Correções para GPUs Mali (iluminação, texturas) e para um fechamento com erro ao sair do app.
- Luz piscando em casas e masmorras na Mali (issue #2): nas GPUs que passam por cópias de memória, o app guarda uma lista das faixas de memória que a iluminação lê. Ela tinha espaço para 16, e uma masmorra precisa de 20 a 33: uma empurrava a outra para fora e voltava logo depois, e a luz lia zero cada vez que uma estava fora. Agora a lista tem espaço para 48, e uma faixa que volta a faltar passa para a frente em vez de tirar outra.
- Desenhos que gravam na memória do jogo, na Mali: quando um deles precisava juntar duas faixas de memória, o app encerrava a etapa de desenho no meio do desenho, o que deixava esse desenho fora de qualquer etapa. Agora as faixas são juntadas antes de a etapa começar.
- Texturas que a Mali não consegue suavizar: alguns formatos não podem ser filtrados linearmente na Mali, e usá-los assim dá resultado indefinido (no BOTWRecompAndroid isso deixava a grama preta numa Mali-G68). Agora eles são lidos sem filtro. Pode ser a causa do contorno preto das flores (issue #14).
- Fechamento com erro ao sair do app (issues #2, #14): fechar o app (pelos apps recentes, ou pelo SAIR da tela inicial) deixava o driver da GPU se desmontar enquanto o app ainda desenhava - "FORTIFY: pthread_mutex_lock called on a destroyed mutex", ou um erro dentro do driver da Mali. Agora o app termina sem essa desmontagem. Só acontecia na saída; os saves não eram afetados.
Atualizar a partir da 0.5.10 não compila o código do jogo de novo. Os saves não são alterados.
Validação: APK de release compilado e assinado com a mesma chave das versões anteriores. No POCO F7 Ultra (Adreno 830, Turnip): fechar pelos apps recentes com o jogo rodando dava erro em 2 de 3 tentativas na 0.5.10 e em 0 de 6 com esta versão; o SAIR da tela inicial, logo ao abrir e depois de o jogo voltar para ela, fechou sem erro. Simulando o caminho da Mali: a rota da iluminação (Vila Mabe, a biblioteca, Turtle Rock, Tail Cave) deu a mesma imagem e 29,7 fps da 0.5.10 com a lista nova; com todas as mudanças da Mali, 5 áreas rodaram sem erro. A piscada e as texturas não aparecem neste celular, então essas correções ainda não estão confirmadas numa Mali de verdade.
Preview experimental para Android 11+ / ARM64. Não inclui arquivos extraídos do jogo.