[2022-02-11 02:54:33][client]: starting...
[2022-02-11 02:54:33][sdl]: SDL version 2.0.16 (compiled = 2.0.20)
[2022-02-11 02:54:33][gfx]: Created Vulkan zu.zu context.
[2022-02-11 02:54:34][vulkan]: enabled vulkan debug context.
[2022-02-11 02:54:34][vulkan]: device prop: non-coherent align: zu, optimal image copy align: zu, max texture size: 64, max sampler anisotropy: 1
[2022-02-11 02:54:34][vulkan]: device prop: min uniform align: 256, multi sample: 15
[2022-02-11 02:54:34][vulkan]: warning: requested presentation mode was not available. falling back to mailbox / fifo relaxed.
[2022-02-11 02:54:34][vulkan]: minimal swap image count 2
[2022-02-11 02:54:34][vulkan]: alignment for 1024x1024 image is 1024
[2022-02-11 02:58:58][vulkan]: vulkan error: Allocation from buffer object failed.
[2022-02-11 02:58:58][assert]: /home/jupeyy/Schreibtisch/Teeworlds/DDNet/ddnet_jupeyy/src/engine/client/backend/vulkan/backend_vulkan.cpp(1024): Allocation from buffer object failed.
cl_show_direction_below
to show the arrows below the player. We can discuss whether this is useful, or whether it should simply be displayed as before only above the player.
valgrind --show-reachable=yes --show-possibly-lost=yes --error-limit=no --log-fd=2 --track-fds=yes --trace-children=yes --redzone-size=256 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt --fair-sched=yes
#include <header.h>
gcc -g -fsanitize=address -fsanitize=undefined -fsanitize=shift -fsanitize=shift-exponent -fsanitize=shift-base -fsanitize=integer-divide-by-zero -fsanitize=unreachable -fsanitize=vla-bound -fsanitize=null -fsanitize=return -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=bounds-strict -fsanitize=bool -fsanitize=enum
$width = $image->getImageWidth();
$height = $image->getImageHeight();
if($width == 0 || ($width % 16) != 0 || $height == 0 || ($height % 16) != 0) {
exit('The width or height of image is not divisible by 16');
}
if($width / $height !== 2) {
exit('The aspect ratio of image is not 2:1');
}
if($width > 4096) {
exit('The image resolution is too big. max 4k');
}
if($width < 256) {
exit('The image resolution is too small. min 256x128');
}
here is code i use to check resolutions hope it helps (edited)