tyra icon indicating copy to clipboard operation
tyra copied to clipboard

Dolphin: Deep diving causes a game freeze

Open h4570 opened this issue 3 years ago • 4 comments

When you will deep dive on dolphin sample, game will freeze. Can be reproduced on PCSX2 and PS2

h4570 avatar Dec 27 '20 18:12 h4570

I've tracked the issue down to engine->renderer->draw(waterDrawList, WATER_TILES_COUNT); call, which seems to be the source of the crash. It seems to be that passing a Mesh array and size of it to the renderer causes the issue. I'll instead try to iterate through the mesh array and render them one at a time. It does not solve the issue, which may lie in the renderer function itself.

Foxar avatar Apr 18 '21 20:04 Foxar

I noticed also that the crash occured when the water surface models were almost completely invisible, which could indicate that asking the renderer to draw an array of meshes that are not in camera view at the time is the reason behind the crashing.

Foxar avatar Apr 18 '21 20:04 Foxar

Thank you for this investigation and workaround implementation. Issue is still open, and I will try to check this out in free time

h4570 avatar Apr 18 '21 21:04 h4570

I unassigned myself as the issue seems to be deep within renderer's functionality, which I rather not mess around with, as I understand @h4570 will get around to it soon.

Foxar avatar Apr 19 '21 08:04 Foxar

Resolved in Tyra 2.0.0

h4570 avatar Aug 24 '22 21:08 h4570