Ericde45 Posted April 11, 2023 Author Share Posted April 11, 2023 the lsp converter is made by Leonard^Oxygene, for Amiga demos. using it for 8 voices on Jaguar is a 'hijack' lsp converter has currently no public source available so it has to be used on 2 splitted 4 channels modules... Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted April 11, 2023 Share Posted April 11, 2023 1 hour ago, Ericde45 said: the lsp converter is made by Leonard^Oxygene, for Amiga demos. using it for 8 voices on Jaguar is a 'hijack' lsp converter has currently no public source available so it has to be used on 2 splitted 4 channels modules... ah.... i wasnt aware that it is 8 voices. sorry my fault... I can ask Leonard myself thx. Quote Link to comment Share on other sites More sharing options...
Ericde45 Posted June 21, 2023 Author Share Posted June 21, 2023 version lsp and sound 2 is available in the github with stereo panning for 4 music voices and 4 SFX voices 5 Quote Link to comment Share on other sites More sharing options...
42bs Posted June 21, 2023 Share Posted June 21, 2023 8 minutes ago, Ericde45 said: version lsp and sound 2 is available in the github with stereo panning for 4 music voices and 4 SFX voices Derived from my optimized version? Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted June 22, 2023 Share Posted June 22, 2023 9 hours ago, Ericde45 said: version lsp and sound 2 is available in the github with stereo panning for 4 music voices and 4 SFX voices Thank you for continuing to update this - much appreciated! Quote Link to comment Share on other sites More sharing options...
Ericde45 Posted June 22, 2023 Author Share Posted June 22, 2023 (edited) 9 hours ago, 42bs said: Derived from my optimized version? not really, i did not introduce all your optimisations, as i did not want the code to be too unclear to read version with SFX does not aim at optimizing, otherwise it would be a module only , no sound , version, that is existing also in the github Edited June 22, 2023 by Ericde45 Quote Link to comment Share on other sites More sharing options...
42bs Posted June 22, 2023 Share Posted June 22, 2023 27 minutes ago, Ericde45 said: not really, i did not introduce all your optimisations, as i did not want the code to be too unclear to read version with SFX does not aim at optimizing, otherwise it would be a module only , no sound , version, that is existing also in the github But you have a lot of "nop" in the code and waste cycles and RAM Not talking of agressive optimizations but simple ones like this: store R3,(R7) store R4,(R8) ; stocke le pointeur sample de repeat dans LSP_DSP_PAULA_AUD3L jump (R12) ; jump en DSP_LSP_Timer1_skip3 nop It is just a waste of cycles. Quote Link to comment Share on other sites More sharing options...
42bs Posted June 22, 2023 Share Posted June 22, 2023 Or ;--- test instrument voie 0 movei #DSP_LSP_Timer1_setIns0,R12 btst #9,R2 jump ne,(R12) nop movei #DSP_LSP_Timer1_skip0,R12 btst #8,R2 jump eq,(R12) nop => ;--- test instrument voie 0 movei #DSP_LSP_Timer1_setIns0,R12 btst #9,R2 jump ne,(R12) btst #8,R2 movei #DSP_LSP_Timer1_skip0,R12 jump eq,(R12) nop Quote Link to comment Share on other sites More sharing options...
Ericde45 Posted June 22, 2023 Author Share Posted June 22, 2023 for sure you are right but this source aimed at beeing understandable by others even if in fact nobody except CJ is using it Quote Link to comment Share on other sites More sharing options...
42bs Posted June 22, 2023 Share Posted June 22, 2023 6 minutes ago, Ericde45 said: for sure you are right but this source aimed at beeing understandable by others even if in fact nobody except CJ is using it Me using it That's why I wrote "non-agressive" optimization. Above is very very calm. Quote Link to comment Share on other sites More sharing options...
Ericde45 Posted June 22, 2023 Author Share Posted June 22, 2023 you are gaining a little but for example for the stereo panning version i added 1 imult + 1 sharq per voice, in the I2S interrupt that is run for example 16000 times per second so gaining a few cycles in the 50 Hz part is very little compared to what is lost for stereo panning. Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted June 22, 2023 Share Posted June 22, 2023 Not sure what you would gain apart from a potentially higher replay frequency, of which the highest is well above what would be used in a game engine anyway. Time 'lost' on DSP execution 'off the main bus' really offers no improvement to things running on the other processors, as they aren't waiting on the DSP for anything. Quote Link to comment Share on other sites More sharing options...
Ericde45 Posted June 22, 2023 Author Share Posted June 22, 2023 the dsp is also used to make some calculations, to free time from the gpu, for some 3D engines for example. so gaining dsp time could be interesting if used this way the main optimisation used in lsp is currently the fact that i read samples 4 bytes at a time, and store them in dsp ram. using less central ram readings 1 Quote Link to comment Share on other sites More sharing options...
Cyprian Posted June 22, 2023 Share Posted June 22, 2023 13 hours ago, Ericde45 said: the main optimisation used in lsp is currently the fact that i read samples 4 bytes at a time, and store them in dsp ram. using less central ram readings 4 bytes at once? If I remember correctly the DSP has 16bit data path to the main ram. Quote Link to comment Share on other sites More sharing options...
Ericde45 Posted June 23, 2023 Author Share Posted June 23, 2023 yes but you can store 4 bytes in a register and in a memory space in the dsp, why would i read only 2 ? Quote Link to comment Share on other sites More sharing options...
42bs Posted June 23, 2023 Share Posted June 23, 2023 10 hours ago, Cyprian said: 4 bytes at once? If I remember correctly the DSP has 16bit data path to the main ram. Right, but reading 32 bits is still quicker than reading 4 times 8 bits or twice 16 bits. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.