Click here to Skip to main content
15,887,027 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
Generalnot wordle, Digits Pin
rnbergren6-Jul-23 6:50
rnbergren6-Jul-23 6:50 
GeneralRe: not wordle, Digits Pin
PIEBALDconsult6-Jul-23 6:56
mvePIEBALDconsult6-Jul-23 6:56 
GeneralRe: not wordle, not Digits - Nerdle Pin
Slacker0076-Jul-23 8:39
professionalSlacker0076-Jul-23 8:39 
GeneralRe: not wordle, Digits Pin
OriginalGriff6-Jul-23 8:49
mveOriginalGriff6-Jul-23 8:49 
GeneralRe: not wordle, Digits Pin
pkfox6-Jul-23 21:25
professionalpkfox6-Jul-23 21:25 
GeneralRe: not wordle, Digits Pin
OriginalGriff6-Jul-23 21:41
mveOriginalGriff6-Jul-23 21:41 
Generalnerdlegame 533 4/6 Pin
jmaida6-Jul-23 11:56
jmaida6-Jul-23 11:56 
GeneralThe Wicked Problem(TM) Pin
honey the codewitch6-Jul-23 3:52
mvahoney the codewitch6-Jul-23 3:52 
Don't you just love those nasty, snarly problems that become a time sink, sometimes for months, sometimes being shelved for a year before picking it back up later and trying again?

Don't you just adore when you can see them coming and know what you're in for and what you're about to take on?

Isn't it wonderful when the problem is big enough and complicated enough that it's no small feat to even get help with it?

To give you an example of such a problem I'll give you a high level description of my current source of vexation.

I'm working on optimizing my dirty rectangle routine for UIX to minimize the number of times I have to redraw controls when refreshing the screen. It's not simple because I have a fixed window I can use as a transfer buffer to move updated rectangles for the display to the actual screen (hardware). If the window is 32kB that means an area of 128x128 pixels at 16-bit color. Or less. (Any rect of any shape with an area equal to or less), but that means I'd have to draw a 256x128 control twice if it ended up dirty.

Nothing I can do about that in particular instance but there are situations - particularly when I need to refresh the entire display where my algorithm is too naïve. It creates that transfer window the entire width of the display (say 480px) (in the case of a whole screen refresh) making it very short in height. That means most controls will have to be redrawn more than once, but if I subdivide my dirty rectangle(s) differently so it fills around the controls and then draws the controls it will be more efficient.

It's easier said than done.

To make it even more fun, I need the problem to be broken out basically like a coroutine - such that it does one transfer per call to the update() method. It requires a state machine. Fortunately that's already in place, even if it will need to be modified.
Check out my IoT graphics library here:
https://honeythecodewitch/gfx


modified 7-Jul-23 2:00am.

GeneralRe: The Wicked Problem(TM) Pin
Matthew Dennis6-Jul-23 4:35
sysadminMatthew Dennis6-Jul-23 4:35 
GeneralRe: The Wicked Problem(TM) Pin
honey the codewitch6-Jul-23 4:51
mvahoney the codewitch6-Jul-23 4:51 
GeneralRe: The Wicked Problem(TM) Pin
BillWoodruff7-Jul-23 7:05
professionalBillWoodruff7-Jul-23 7:05 
GeneralRe: The Wicked Problem(TM) Pin
Matthew Dennis10-Jul-23 3:53
sysadminMatthew Dennis10-Jul-23 3:53 
GeneralRe: The Wicked Problem(TM) Pin
jschell6-Jul-23 5:33
jschell6-Jul-23 5:33 
GeneralRe: The Wicked Problem(TM) Pin
honey the codewitch6-Jul-23 6:22
mvahoney the codewitch6-Jul-23 6:22 
GeneralRe: The Wicked Problem(TM) Pin
GKP19926-Jul-23 18:18
professionalGKP19926-Jul-23 18:18 
GeneralRe: The Wicked Problem(TM) Pin
BillWoodruff7-Jul-23 7:05
professionalBillWoodruff7-Jul-23 7:05 
GeneralCCC 06-07-2023 Solution Pin
pkfox6-Jul-23 1:35
professionalpkfox6-Jul-23 1:35 
GeneralRe: CCC 06-07-2023 Solution Pin
Richard MacCutchan6-Jul-23 1:44
mveRichard MacCutchan6-Jul-23 1:44 
GeneralCCC 06-07-2023 Pin
pkfox5-Jul-23 21:27
professionalpkfox5-Jul-23 21:27 
GeneralRe: CCC 06-07-2023 Pin
OriginalGriff6-Jul-23 1:01
mveOriginalGriff6-Jul-23 1:01 
JokeChina Is Drilling a 10,000-Meter-Deep Hole Into the Earth Pin
Daniel Pfeffer5-Jul-23 18:35
professionalDaniel Pfeffer5-Jul-23 18:35 
GeneralRe: China Is Drilling a 10,000-Meter-Deep Hole Into the Earth Pin
jmaida5-Jul-23 19:38
jmaida5-Jul-23 19:38 
GeneralRe: China Is Drilling a 10,000-Meter-Deep Hole Into the Earth Pin
DerekT-P5-Jul-23 22:19
professionalDerekT-P5-Jul-23 22:19 
GeneralRe: China Is Drilling a 10,000-Meter-Deep Hole Into the Earth Pin
pkfox5-Jul-23 23:07
professionalpkfox5-Jul-23 23:07 
GeneralRe: China Is Drilling a 10,000-Meter-Deep Hole Into the Earth Pin
Nelek6-Jul-23 12:55
protectorNelek6-Jul-23 12:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.