justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Do you see the need for a 24-bit bitmap that would serve for dialog painting only? Right now virtual painter is less than efficient in memory footprint for a typical 1280x1024px. Unless you have an interesting suggestion...
Asked by Gio (79.130.170.x) on May 29 2023, 3:20pm
Reply on May 29 2023, 3:36pm:
    a 4MB buffer for a window is pretty reasonable, no?


Comments:
  • Posted by Gio (79.130.170.x) on May 29 2023, 4:30pm:
    That was exactly the overhead! Had a case for a large surface with a clipped rect - proved more efficient to just draw individual bm for the visible parts and that got me question the memory consumption. I prefer vpainter to draw dialogs because of portability and I was wondering if there is something more efficient than that. In all other cases I prefer the 32-bit goodness.

  • Posted by Gio (79.130.170.x) on May 30 2023, 1:54am:
    4MB buffer is reasonable but I am not sure if a vpaint with RECT r = {0,0,1280,1024} and clipped RECT cr = {7,7,1280,1024} is justifiable to the same amount of memory. I don't know if the current implementation is just good enough and doesn't require the extra effort/complexity - I guess the bit depth reduction was an argument for a least cost solution. Anyway, it doesn't matter much in 21st century, it was just an observation that sparked my curiosity.

  • Posted by Justin on May 30 2023, 9:59pm:
    ah you mean 3 bytes per pixel vs 4? meh, 3 is probably slower in general anyway


Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS