jprahman Posted May 31, 2022 Report Share Posted May 31, 2022 Curious if anyone has gotten valgrind to work with 0AD builds. Asking because some of the development documentation references valgrind (https://trac.wildfiregames.com/wiki/CodeQuality#Valgrind) which takes something on the order of a 10-20x hit in runtime performance while ASAN is closer to 2-4x perf hit (https://developers.redhat.com/blog/2021/05/05/memory-error-checking-in-c-and-c-comparing-sanitizers-and-valgrind#performance). At that point, running replays or even full games under ASAN may be reasonable compared to Valgrind which isn't feasible. Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted May 31, 2022 Report Share Posted May 31, 2022 @Stan` Quote Link to comment Share on other sites More sharing options...
Stan` Posted May 31, 2022 Report Share Posted May 31, 2022 59 minutes ago, jprahman said: Curious if anyone has gotten valgrind to work with 0AD builds. Asking because some of the development documentation references valgrind (https://trac.wildfiregames.com/wiki/CodeQuality#Valgrind) which takes something on the order of a 10-20x hit in runtime performance while ASAN is closer to 2-4x perf hit (https://developers.redhat.com/blog/2021/05/05/memory-error-checking-in-c-and-c-comparing-sanitizers-and-valgrind#performance). At that point, running replays or even full games under ASAN may be reasonable compared to Valgrind which isn't feasible. Some people have done for a while you need to pass an extra flag when updating workspaces.sh to make use of it 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.