Go to advanced search

by VideoAsker
Mon Jul 27, 2020 12:04 am
Forum: Graphics programming
Topic: Read from framebuffer (memcpy from /dev/fb0) is slow, but write is fast
Replies: 0
Views: 250

Read from framebuffer (memcpy from /dev/fb0) is slow, but write is fast

Hi, I read from framebuffer device. I open handle to /dev/fb0, mmap buffer, and then memcpy to my buffer. But it is slow. Opposite is when I write to it, then it is fast. Why? Example: char* privateBuffer = new char[1024 * 1024]; int frameBufferHandle = open("/dev/fb0", O_RDWR); char* frameBuffer = ...

Go to advanced search