Prevent excessive memory usage for wtiles buffer
In 54bdded9, the number of wtiles is configured dynamically. This can lead to out-of-memory issues, which is now fixed by taking the amount of available memory into account.
In 54bdded9, the number of wtiles is configured dynamically. This can lead to out-of-memory issues, which is now fixed by taking the amount of available memory into account.