Open Pakisan opened 1 year ago
Hi, @Pakisan and thanks for bug-report!
This issue might be related to cache-maintenance, because this is one thing that differ between M1-chip and Radeon.
Can you run game with -v
command line key, to see if Metal will print any warnings?
I already tried with -v flag, no warnings at all - log in message above. I compiled and launched client on intel based Mac
Marked as help-wanted, since can't reproduce on my mac
No problem, I can collect all required information. Can you tell what to do? I have software engineering background, but I don't know much about games in case of rendering for example.
May problem be related with?
[phoenix] model_script: unexpected value for event_tag_type: " " [phoenix] model_script: 4 bytes remaining in section f5a3
May problem be related with?
I don't think so
By look of things:
GPU = AMD Radeon Pro 560
I've been testing on M1. And they do have different rules for cache-synchronization. So it make sense to look into MtBuffer::implUpdate
maybe for Amd it's broken.
UPD: found fishy looking code there, yet it's probably not your case
Tried your patch:
➜ OpenGothic git:(v0.69) ✗ cmake --build ./build --target Gothic2Notr
[ 1%] Built target LinearMath
[ 1%] Built target miniz
[ 21%] Built target shader
[ 42%] Built target GothicShaders
[ 43%] Built target squish
[ 44%] Built target lexy_file
[ 44%] Built target glm_static
[ 47%] Built target phoenix
[ 48%] Built target squish-tempest
[ 49%] Built target shaders
[ 51%] Built target zlibstatic
[ 51%] Built target genfiles
[ 52%] Built target png_static
[ 61%] Built target OpenAL
[ 62%] Built target spirv-cross-core
[ 62%] Built target spirv-cross-glsl
[ 62%] Built target spirv-cross-msl
[ 62%] Built target spirv-cross-hlsl
[ 62%] Building CXX object lib/Tempest/Engine/CMakeFiles/Tempest.dir/gapi/metal/mtbuffer.cpp.o
[ 62%] Linking CXX shared library ../../../opengothic/libTempest.dylib
[ 74%] Built target Tempest
[ 83%] Built target BulletCollision
[ 87%] Built target BulletDynamics
[ 87%] Linking CXX executable opengothic/Gothic2Notr
[100%] Built target Gothic2Notr
No changes
Greetings @Try !
That is one hell of the mindblowing things you have done! The great port. Thank you for this beauty!
I have stubbled upon the same problem:
> (base) dmitryz@Dmitrys-MBP opengothic % ./Gothic2Notr.sh -g ~/OpenGothic/app -g2 -ms 1 -rt 1 -window -v
OpenGothic v1.0 dev
2023-03-11 10:34:16.745 Gothic2Notr[2510:91995] Metal API Validation Enabled
no *.ini file in path - using default settings
---crashlog(std::system_error(Invalid shader module))---
GPU: ?
zsh: abort ./Gothic2Notr.sh -g ~/OpenGothic/app -g2 -ms 1 -rt 1 -window -v
the full log is attached log.txt
I am able to make the game running though, just cannot set any of those arguments. I have also tested with the unofficial g2 patch of the last version (including Wasteland mod) - all runs smoothly.
Hi @Try,
I compiled client from master and last release tag. In both cases same scenario - buggy models render
Launched with and without flags:
Graphics: