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

 
GeneralRe: I've been stuck for two days on nothing Pin
NeverJustHere23-Jun-21 23:53
MemberNeverJustHere23-Jun-21 23:53 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:20
mvahoney the codewitch24-Jun-21 1:20 
GeneralRe: I've been stuck for two days on nothing Pin
ElectronProgrammer25-Jun-21 12:33
MemberElectronProgrammer25-Jun-21 12:33 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 15:21
mvahoney the codewitch25-Jun-21 15:21 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas24-Jun-21 0:32
mveGreg Utas24-Jun-21 0:32 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:24
mvahoney the codewitch24-Jun-21 1:24 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas24-Jun-21 1:41
mveGreg Utas24-Jun-21 1:41 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:51
mvahoney the codewitch24-Jun-21 1:51 
I don't have an article that explicitly talks about how the code works, just how to use it.

But..

gfx_demo/gfx_pixel.hpp at master · codewitch-honey-crisis/gfx_demo · GitHub[^]

Consider the convert<>() routine starting at line 690.

It's massive. It's ugly. It would be slow as heck to do at runtime. This will get called width*height times during a call to draw a bitmap when format conversion needs to be done.

If any of the routine did not result in aggressive compile time operations, to where this routine translates to a few shifts and multiply/divides at worst - the thing would slow to a crawl if I had any JMPs in there. There are none despite what it looks like, except sometimes for clamping, which often gets compiled to ifless code anyway.
Real programmers use butterflies

GeneralRe: I've been stuck for two days on nothing Pin
Member 1419238225-Jun-21 3:42
MemberMember 1419238225-Jun-21 3:42 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 4:36
mvahoney the codewitch25-Jun-21 4:36 
QuestionRe: I've been stuck for two days on nothing Pin
CPallini24-Jun-21 2:21
mveCPallini24-Jun-21 2:21 
AnswerRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 6:09
mvahoney the codewitch24-Jun-21 6:09 
GeneralRe: I've been stuck for two days on nothing Pin
obeobe24-Jun-21 22:58
Memberobeobe24-Jun-21 22:58 
GeneralRe: I've been stuck for two days on nothing Pin
AnotherKen25-Jun-21 17:54
professionalAnotherKen25-Jun-21 17:54 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 18:22
mvahoney the codewitch25-Jun-21 18:22 
GeneralRe: I've been stuck for two days on nothing Pin
AnotherKen26-Jun-21 7:55
professionalAnotherKen26-Jun-21 7:55 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch26-Jun-21 9:12
mvahoney the codewitch26-Jun-21 9:12 
GeneralNo more McAfee Pin
OriginalGriff23-Jun-21 9:59
mveOriginalGriff23-Jun-21 9:59 
GeneralRe: No more McAfee Pin
Matthew Dennis23-Jun-21 10:02
sysadminMatthew Dennis23-Jun-21 10:02 
GeneralRe: No more McAfee Pin
Slacker00723-Jun-21 10:07
professionalSlacker00723-Jun-21 10:07 
GeneralRe: No more McAfee Pin
pkfox23-Jun-21 10:19
professionalpkfox23-Jun-21 10:19 
GeneralRe: No more McAfee Pin
Mike Hankey23-Jun-21 11:00
professionalMike Hankey23-Jun-21 11:00 
GeneralRe: No more McAfee Pin
W Balboos, GHB24-Jun-21 2:37
mveW Balboos, GHB24-Jun-21 2:37 
GeneralRe: No more McAfee Pin
honey the codewitch23-Jun-21 12:21
mvahoney the codewitch23-Jun-21 12:21 
GeneralRe: No more McAfee Pin
Gary R. Wheeler23-Jun-21 12:43
MemberGary R. Wheeler23-Jun-21 12:43 

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.


Straw Poll

What language are you using for AI development or learning?
Whether you're at work or home, hard core coding or just trying to figure out this AI thing, which languages have you used in your adventures?
  Results   138 votes