1
0
Fork 0
forked from len0rd/rockbox

XWorld: some fixes

Fixes sound on most platforms, original root cause was bad menu code
as well as DMA callbacks taking too long. Worked around with smaller
chunk sizes. Permanent fix would include moving mixing out of the
callback. Rewrites input with code from rockboy/doom. Cherry-picks a
change from Gregory Montoir's `rawgl' to patch the code wheel
screen. Finally, adds a motion blur filter on select targets.

Change-Id: I8df549c923c5075800c6625c36c8202e53de1d27
This commit is contained in:
Franklin Wei 2016-11-03 22:27:01 -04:00 committed by Gerrit Rockbox
parent deaeb73912
commit 05733649bc
10 changed files with 347 additions and 141 deletions

View file

@ -354,12 +354,14 @@ void res_allocMemBlock(struct Resource* res) {
rb->audio_stop();
/* steal the audio buffer */
size_t sz;
/* memory usage is as follows:
[VM memory - 600K]
[Framebuffers - 128K]
[Temporary framebuffer - 192K]
[String table buffer]
*/
/* memory usage is first statically allocated, then the remainder is used dynamically:
* static:
* [VM memory - 600K]
* [Framebuffers - 128K]
* [Temporary framebuffer - 192K]
* dynamic:
* [String table buffer]
*/
res->_memPtrStart = rb->plugin_get_audio_buffer(&sz);
if(sz < MEM_BLOCK_SIZE + (4 * VID_PAGE_SIZE) + 320 * 200 * sizeof(fb_data))
{