Click here to Skip to main content
15,896,379 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.

 
Generalriding Rocinante into battle: using WinForm controls (rant) Pin
BillWoodruff17-Jun-21 19:14
professionalBillWoodruff17-Jun-21 19:14 
GeneralRe: riding Rocinante into battle: using WinForm controls (rant) Pin
OriginalGriff17-Jun-21 19:22
mveOriginalGriff17-Jun-21 19:22 
GeneralRe: riding Rocinante into battle: using WinForm controls (rant) Pin
BillWoodruff17-Jun-21 20:52
professionalBillWoodruff17-Jun-21 20:52 
GeneralRe: riding Rocinante into battle: using WinForm controls (rant) Pin
Gary R. Wheeler18-Jun-21 13:11
Gary R. Wheeler18-Jun-21 13:11 
GeneralWisdumb of the day Pin
Dan Neely17-Jun-21 15:34
Dan Neely17-Jun-21 15:34 
GeneralTalk about demoralizing Pin
honey the codewitch17-Jun-21 10:42
mvahoney the codewitch17-Jun-21 10:42 
GeneralRe: Talk about demoralizing Pin
Greg Utas17-Jun-21 11:02
professionalGreg Utas17-Jun-21 11:02 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 11:12
mvahoney the codewitch17-Jun-21 11:12 
It's difficult to profile because it's cross compiled to run on an IoT device, where I don't have access to profiling.

I *can* do it but it involves setting up a lot of test code in order to use GFX from my PC.

Besides, I know where it's taking the time, and there's not much I can do about it.

The source machine is running at between 160MHz and 240MHz and the operation cannot be readily parallelized without using RAM i don't have.

Algorithmically, I've optimized it about as much as I can. The mixing plan for finding two dither colors is like O(log N) which isn't that bad. The problem is I have to do it for 200x200 pixels. And for my color display I have to do it twice per frame because it's a 3 color display organized in two monochrome planes - one white, and one red, and I don't have the RAM to store the frame between rendering the two planes.

On a superscalar PC running at GHz speeds this is no problem, and I *thought* it shouldn't be a problem even for this machine, but I guess I dramatically underestimated the time it takes this algorithm to run.

I actually have two algos. The first one is similar to the one used by photoshop (but different enough that it avoids patent infringement)

The second one is a much faster, simpler algorithm.

Color dithers are apparently not as easy as I thought.
Real programmers use butterflies

GeneralRe: Talk about demoralizing Pin
Greg Utas17-Jun-21 11:52
professionalGreg Utas17-Jun-21 11:52 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 11:56
mvahoney the codewitch17-Jun-21 11:56 
GeneralRe: Talk about demoralizing Pin
PIEBALDconsult17-Jun-21 11:06
mvePIEBALDconsult17-Jun-21 11:06 
GeneralRe: Talk about demoralizing Pin
Super Lloyd17-Jun-21 13:48
Super Lloyd17-Jun-21 13:48 
GeneralRe: Talk about demoralizing Pin
Espen Harlinn17-Jun-21 15:56
professionalEspen Harlinn17-Jun-21 15:56 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 16:45
mvahoney the codewitch17-Jun-21 16:45 
GeneralRe: Talk about demoralizing Pin
David O'Neil17-Jun-21 20:32
professionalDavid O'Neil17-Jun-21 20:32 
GeneralRe: Talk about demoralizing Pin
lmoelleb17-Jun-21 20:19
lmoelleb17-Jun-21 20:19 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 20:25
mvahoney the codewitch17-Jun-21 20:25 
QuestionRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 20:27
mvahoney the codewitch17-Jun-21 20:27 
AnswerRe: Talk about demoralizing Pin
lmoelleb21-Jun-21 3:49
lmoelleb21-Jun-21 3:49 
GeneralRe: Talk about demoralizing Pin
honey the codewitch21-Jun-21 6:30
mvahoney the codewitch21-Jun-21 6:30 
GeneralRe: Talk about demoralizing Pin
lmoelleb22-Jun-21 1:45
lmoelleb22-Jun-21 1:45 
GeneralRe: Talk about demoralizing Pin
honey the codewitch22-Jun-21 1:59
mvahoney the codewitch22-Jun-21 1:59 
GeneralRe: Talk about demoralizing Pin
Daniel Pfeffer17-Jun-21 22:50
professionalDaniel Pfeffer17-Jun-21 22:50 
GeneralRe: Talk about demoralizing Pin
honey the codewitch18-Jun-21 2:09
mvahoney the codewitch18-Jun-21 2:09 
GeneralThought of the Day Pin
OriginalGriff17-Jun-21 4:34
mveOriginalGriff17-Jun-21 4:34 

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.