Skip to content
Snippets Groups Projects
  • Deucе's avatar
    c6a2f44f
    Another large speedup... only update bitmap when drawing a frame · c6a2f44f
    Deucе authored
    Previously, every change would be flushed through to the bitmap, now
    it only flushes before a frame is sent to the driver, or when specific
    things (like setting pixels) occur.
    
    This about doubles the throughput again, running the test at 11
    seconds (started at 179).  At a 16× speedup now from when I started.
    
    This can now display at about 10Mbps, which is still kinda slow,
    but at least it's not completely terrible anymore.
    
    This could likely be improved by better timing of the frame
    generation... it tries to hot 100Hz right now, which is a bit
    excessive.
    c6a2f44f
    History
    Another large speedup... only update bitmap when drawing a frame
    Deucе authored
    Previously, every change would be flushed through to the bitmap, now
    it only flushes before a frame is sent to the driver, or when specific
    things (like setting pixels) occur.
    
    This about doubles the throughput again, running the test at 11
    seconds (started at 179).  At a 16× speedup now from when I started.
    
    This can now display at about 10Mbps, which is still kinda slow,
    but at least it's not completely terrible anymore.
    
    This could likely be improved by better timing of the frame
    generation... it tries to hot 100Hz right now, which is a bit
    excessive.
bitmap_con.c 56.30 KiB