JNechaevsky / international-doom

Small, functional and simple source ports, created with help, efforts and bits of code from people around the world.
https://jnechaevsky.github.io/inter-doom/
GNU General Public License v2.0
30 stars 2 forks source link

Reduce zone memory consumption by screen border #54

Closed JNechaevsky closed 10 months ago

JNechaevsky commented 10 months ago

Allocate the buffer according to the actual screen size, not the maximum (quite huge) possible one. Also, there is no need to call R_SetViewSize() if the screen size does not actually change.

Fixes zone memory: ...., 40 (and then) 80 MiB allocated for zone. case when using bordered screen size.