Hi, On Tue, 2011-06-21 at 08:51 +0800, Xiangfu Liu wrote: > error: > failed to add per-frame equation 1. 63: Failed to allocate register for > constant > allocate register for constant
Nice catch, thanks for pointing this out. The compiler temporarily preallocates PFPU registers for all potential variables (including unused ones) before starting to compile a patch. It then allocates additional registers for constants and user variables during the patch's compilation. Lately, I have added 16 more variables (4 more DMX in, 4 more DMX out and 8 MIDI inputs) which means there are 16 less registers available for constants and user variables. This caused those patches, which use a great amount of constants, to fail at compilation. The proper way to fix it would be to have a smarter allocation algorithm that would scan the patch before compilation and only preallocate registers for variables that are actually used. In the meantime I have simplified the patches a bit so they work with the current compiler: https://github.com/milkymist/flickernoise/commit/37bb2aaf84f76b8e9ae98f42306d7a36d8a66f90 https://github.com/milkymist/bugs/issues/23 Speaking of what to include on the flash: * I have put the patches that depend on DMX to the "Interactive" folder. Do not include them in /ssd/patchpool as the user probably will not have a DMX controller connected when using simple (default) mode. Include all patches in all other folders. * Include the comet wallpaper files (which I just pushed to git) in /ssd, but maybe not configure them by default as decoding them is still slow (though comet640 only takes about 2 seconds). > other issue, not sure if this is an issue: > when there is an error in Simple mode, the half of the screen is black(like > not refresh) > I have to move the 'control panel' a little for make it display correct This is an old MTK/Genode FX bug that has been there forever. When you issue a lot of consecutive commands to MTK (e.g. during application startup), it ends up not redrawing anything except when new events come in. I have worked the problem around in https://github.com/milkymist/flickernoise/commit/bc5b544d3c8e5add3aaede42cae5652c3f4a20d5 https://github.com/milkymist/bugs/issues/24 S. _______________________________________________ http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org IRC: #milkymist@Freenode Twitter: www.twitter.com/milkymistvj Ideas? http://milkymist.uservoice.com
