raspi2fb icon indicating copy to clipboard operation
raspi2fb copied to clipboard

Improving the speed with OpenMP

Open jgueytat opened this issue 8 years ago • 2 comments

I guess we might improve the speed of the loop with OpenMP. How do you test the performance? If you have anything ready for testing I would be glad to give it a try. Otherwise I just make another pull request that you can try on your side. :)

-Julien

jgueytat avatar May 24 '16 15:05 jgueytat

You are welcome to fork the code. I doubt you will find a convincing performance boost using OpenMP, and it would almost certainly decrease performance on the single core Raspberry Pi models.

The use-case for this code is copying the Raspberry Pi display for a SPI TFT display. In my limited performance testing, the bottle neck was the copying of data to the SPI interface of the TFT display.

AndrewFromMelbourne avatar May 24 '16 20:05 AndrewFromMelbourne

Great information! In that case the fewest data we copy the best it is... Which is why the double buffering should be kept at least instead of basic copy. I'll keep you informed. :)

jgueytat avatar May 24 '16 23:05 jgueytat