diff options
Diffstat (limited to 'apps/plugins/xworld/resource.c')
-rw-r--r-- | apps/plugins/xworld/resource.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/xworld/resource.c b/apps/plugins/xworld/resource.c index 2820dcb998..4bd93f0616 100644 --- a/apps/plugins/xworld/resource.c +++ b/apps/plugins/xworld/resource.c | |||
@@ -354,12 +354,14 @@ void res_allocMemBlock(struct Resource* res) { | |||
354 | rb->audio_stop(); | 354 | rb->audio_stop(); |
355 | /* steal the audio buffer */ | 355 | /* steal the audio buffer */ |
356 | size_t sz; | 356 | size_t sz; |
357 | /* memory usage is as follows: | 357 | /* memory usage is first statically allocated, then the remainder is used dynamically: |
358 | [VM memory - 600K] | 358 | * static: |
359 | [Framebuffers - 128K] | 359 | * [VM memory - 600K] |
360 | [Temporary framebuffer - 192K] | 360 | * [Framebuffers - 128K] |
361 | [String table buffer] | 361 | * [Temporary framebuffer - 192K] |
362 | */ | 362 | * dynamic: |
363 | * [String table buffer] | ||
364 | */ | ||
363 | res->_memPtrStart = rb->plugin_get_audio_buffer(&sz); | 365 | res->_memPtrStart = rb->plugin_get_audio_buffer(&sz); |
364 | if(sz < MEM_BLOCK_SIZE + (4 * VID_PAGE_SIZE) + 320 * 200 * sizeof(fb_data)) | 366 | if(sz < MEM_BLOCK_SIZE + (4 * VID_PAGE_SIZE) + 320 * 200 * sizeof(fb_data)) |
365 | { | 367 | { |