Thread: pixels for fractals!

  1. #16
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    I read it's extremly slow because it's a lot slower to fetch from the hardware (gfx card) than it is to send? Or something like that.

  2. #17
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Reading a pixels value from 2d co-ords requires modulo and divide, which is one reason its slower than writing.

    One common way to speed up pixel writing is to allocate a buffer in RAM, kind of like a temporary screen, do all your drawing to the array and when everything is finished blit the whole thing to the screen (or whatever surface) in one go.

  3. #18
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    Wow, thanks for all the info, plenty of stuff to go at.... including a basic understanding of modern graphics writing haha!
    merry christmas!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bitmap pixels???????????
    By SuperNewbie in forum Windows Programming
    Replies: 2
    Last Post: 03-23-2004, 01:53 AM
  2. How to store pixels in memory created with Setpixel(...)
    By Kristian25 in forum Windows Programming
    Replies: 2
    Last Post: 03-11-2003, 06:09 AM
  3. creating image from pixels stored in file
    By Kristian25 in forum Windows Programming
    Replies: 3
    Last Post: 01-21-2003, 02:08 PM
  4. Algo needed for 'Fit to page'
    By Unregged in forum Windows Programming
    Replies: 6
    Last Post: 10-03-2002, 07:09 AM
  5. What Else can I do besides Plot Pixels?
    By Xterria in forum C++ Programming
    Replies: 13
    Last Post: 10-02-2001, 07:11 PM