fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.44k stars 1.39k forks source link

client.c: use static for "char buffer[1024];" #283

Closed ihor-tarasov closed 2 years ago

ihor-tarasov commented 2 years ago

May be it's better to use static keyword for char buffer[1024]; to avoid allocations of 1024 bytes of stack memory every call of functions?

ihor-tarasov commented 2 years ago

Or it can be bad for multithreading?