Skip to main content

Timeline for SDL pixel access very slow

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Apr 18, 2015 at 19:33 comment added Jon Indeed; you're very close. The sample was written that way since it only affects one pixel per-"frame" (loop iteration).
Apr 18, 2015 at 19:31 history edited Robert Goulet CC BY-SA 3.0
added 25 characters in body
Apr 18, 2015 at 19:27 answer added Jon timeline score: 1
Apr 18, 2015 at 19:24 comment added Robert Goulet @Jon I've updated my post reflecting the code inside of plot_pixel. The loop is exactly what I have. You mention not clearing/copying/presenting, for each pixel, but I can't figure out a better way of doing it. Any hints?
Apr 18, 2015 at 19:23 history edited Robert Goulet CC BY-SA 3.0
added 413 characters in body
Apr 18, 2015 at 19:12 comment added Jon Please post the entire loop's contents. Make sure you are not clearing/copying/presenting every time you update a pixel.
Apr 18, 2015 at 17:28 review First posts
Apr 18, 2015 at 19:55
Apr 18, 2015 at 17:24 history asked Robert Goulet CC BY-SA 3.0