AndrewFromMelbourne / raspi2fb

Program to copy the Raspberry Pi display to a secondary framebuffer.
MIT License
94 stars 27 forks source link

Improving the speed with OpenMP #5

Open jgueytat opened 8 years ago

jgueytat commented 8 years ago

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

AndrewFromMelbourne commented 8 years ago

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.

jgueytat commented 8 years ago

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. :)