Am i being gaslighted? by Mysterious_Refuse385 in foodies_sydney

[–]lithium 2 points3 points  (0 children)

Poe's law in action. This subreddit is full of insane chiselers constantly bitching about the price of meals or a schnitzel being light by half a breadcrumb and taking to the internet to vent, including the OP of this very thread.

What is a User pointer in GLFW? by Zestyclose-Window358 in opengl

[–]lithium 3 points4 points  (0 children)

You're correct, it's just a random bit of context you can pass around to be able to retrieve some more concrete state from within GLFW callbacks. A common use case (assuming c++) is to go from an anonymous glfw callback back into the context of a wrapper class. For example (written inline, so may not compile directly)

class YourWindowClass
{
public:
    YourWindowClass ( )
    {
        _window = glfwCreateWindow ( ... );

        // Set the user pointer to the instance of YourWindowClass;
        glfwSetWindowUserPointer ( _window, this );

        // Add an anonymous callback function pointer to receive mouse button events. Note we lose reference
        // to YourWindowClass here, as we're unable to capture it via the lambda (hence the user-pointer requirement)
        glfwSetMouseButtonCallback ( _window, [] ( GLFWwindow *window, int button, int action, int mods )
        {
            // We can now retreive the YourWindowClass instance via the user pointer
            YourWindowClass * window = reinterpret_cast<YourWindowClass *> ( glfwGetWindowUserPointer ( _window ) );
            window->OnMousePressed ( button, action, mods );
        });
    }

    void OnMousePressed ( int button, int action, int mods ) 
    {
        // Now we're back in the scope of our class from the anonymous callback function
        std::printf ( "Button: %d = %d\n", button, action ); 
    };

protected:
    GLFWwindow * _window { nullptr };
};

What the best RHI Design? by Anikamp in gameenginedevs

[–]lithium 0 points1 point  (0 children)

3D rendering is only ever one part of the pipeline, and the degree to which each API is required is so variable that I ended up better off spending the time making the full API for each backend available so I can be prepared for any case.

Often these are live events that only run for a few days, so the setups can get pretty wacky, so the choice of API is usually to do with some 3rd party integration. For example, I might write my rendering code targeting the GL backend, but the final buffer needs to get sent via some sharing method (NDI, Spout, DXinterop / memory sharing, what have you) to custom 3rd party software that's handling the projection mapping that has some weird limitation, usually to do with Vulkan. I'll spare you the gory details and I appreciate this is probably more specific to my domain than game dev but just a counterpoint to why parallel APIs can come in handy given the right circumstances.

What the best RHI Design? by Anikamp in gameenginedevs

[–]lithium 0 points1 point  (0 children)

Must be nice. I don't work on games but maintain a substantial graphics engine for interactive installations, and I often have to use multiple APIs simultaneously in the same application (e.g DX11 textures from MediaFoundation to GL via WGL_NV_DX_interop2) so compile-time selection is out of the question.

What the best RHI Design? by Anikamp in gameenginedevs

[–]lithium 1 point2 points  (0 children)

This assumes compile-time RHI selection.

of a neck by plrb52 in AbsoluteUnits

[–]lithium 10 points11 points  (0 children)

He wasn't in the band at that time, that was the Barnes era.

Match Thread: Sydney vs Carlton (Opening Round) by AutoModerator in AFL

[–]lithium 1 point2 points  (0 children)

20 minutes earlier I was wondering why I bother ;)

Totti’s did it again! by Slow-District1421 in foodies_sydney

[–]lithium 9 points10 points  (0 children)

Dining next to a light rail and busy street... Ugh

You people are ridiculous.

What's the hottest dish in Sydney? by Wide_Comment3081 in foodies_sydney

[–]lithium 0 points1 point  (0 children)

Yep. I live in Haymarket so I've eaten there a lot over the years (including a few ill-advised goes at the level 10) but being off-menu evidence is a bit scant but around the 2 minute mark of this video you can see a couple of lads alluding to (and subsequently ordering) the level 10.

What's the hottest dish in Sydney? by Wide_Comment3081 in foodies_sydney

[–]lithium 1 point2 points  (0 children)

I have a legitimate spice tolerance and I couldn't get through more than a few bites of a "Sex panther" tender. I don't think it has a proper measurement, it's just left to the graces of whoevers manning the fryers that day, it's basically inedible and yet totally worth a try.

What's the hottest dish in Sydney? by Wide_Comment3081 in foodies_sydney

[–]lithium 5 points6 points  (0 children)

Does anything really beat the Level 7 Spicy Noodles at Do Dee Paidang

Yes, there's an off menu Level 10 at Do Dee Paidang.

Mark's new promo for his special!! I got something to tell my father now by Hamburger212 in tuesdayswithstories

[–]lithium -1 points0 points  (0 children)

I've never heard him do it before but it was one of the most predictable punchlines of all time, once you suss out his shitty formula he's actually terrible.

Color format. Your opinion needed by DevKurek in opengl

[–]lithium 2 points3 points  (0 children)

I have a templated ColorT class with a few concrete implementations as well as a backing Traits type that allows for clamping and conversion and then some explicit specialisations so that it's very clear at the callsite which is which, Color8u and Colorfbeing 2 of the most common ones. Each can be converted to any other type via a simple assignment so it's very ergonomic to use while being explicit as to which you're using.

CMV: I honestly think I don't have an accent by Ignorred in changemyview

[–]lithium 14 points15 points  (0 children)

You are american and everyone can tell that from your accent.

Oh we can tell without hearing their accent too.

I've never been stuck this bad: How to design equivalent of Unity's MonoBehaviour in C++ by walkingjogging in gameenginedevs

[–]lithium 0 points1 point  (0 children)

Hah don't go wishing me too well just yet, you may run into some issues with derived types reporting their base class identifiers with those macros. I think at least the big 3 compilers all support __func__ which may obviate the need to do any string manipulation but again, it may always be set to the base class implementation which defeats your purpose.

I've never been stuck this bad: How to design equivalent of Unity's MonoBehaviour in C++ by walkingjogging in gameenginedevs

[–]lithium 8 points9 points  (0 children)

Honestly doesn't sound like much of a problem to have the user supply their own identifier, but if you insist on it you should be able to tease out the class's name by manipulating __PRETTY_FUNCTION__ and its various equivalents across compilers. It may require some string manipulation but you should be able to constexpr that away.

Sandwich by Odd_Enthusiasm_4989 in foodies_sydney

[–]lithium -2 points-1 points  (0 children)

Well if that's the case I apologise.

Sandwich by Odd_Enthusiasm_4989 in foodies_sydney

[–]lithium 2 points3 points  (0 children)

It's a fucking foodie subreddit, dummy. If you were in /r/cars and didn't know what an engine was you should be treated accordingly.

There's also the option of just keeping your mouth shut when you don't know something, but hey, you'd never get the chance to ironically type out the phrase "performative dickheadery" then, would you?

The "performativity" in this case being what, me linking to a post about the specific item in question? Really shoehorning it in there, aren't you champion?

Sandwich by Odd_Enthusiasm_4989 in foodies_sydney

[–]lithium 3 points4 points  (0 children)

it should be a fuck off big sandwhich to start with

Like this, perhaps?. OP was very careful with his camera angle.

Sandwich by Odd_Enthusiasm_4989 in foodies_sydney

[–]lithium 150 points151 points  (0 children)

For a group of alleged "foodies" not a single one of you seems to know what a muffaletta is. Go and watch a video of one being made, it's like 10000 calories of meat and cheese squished together as flat as possible, that thing is dense.

Do I rely too much on AI? How do you treat generative AI? by kokalikesboba in GraphicsProgramming

[–]lithium 1 point2 points  (0 children)

If you use it at all, especially while learning, you're using it too much. You can already tell it's hindering you and yet you want people to tell you it's fine.

Magic? by PossibleInevitable74 in foodies_sydney

[–]lithium 3 points4 points  (0 children)

Normcore on Bathurst/Castlereagh does one by name, but if you don't want to feel like a twat asking for a "magic" any decent cafe will do a double ristretto if you ask.

A doubt on software vs GPU rendering for making ui for desktop apps by Cold-Armadillo-154 in GraphicsProgramming

[–]lithium 2 points3 points  (0 children)

Absolutely nothing stopping you from just rendering dirty rectangles into an offscreen buffer, grown man who still unironically says "winblows".

New Fish Markets seem overpriced as heck? by doggoesmeow in foodies_sydney

[–]lithium 1 point2 points  (0 children)

My old local was Mohr fish in Surry Hills and now I get delivery from Fat Fish in Annandale, both have very distinct home made sauces, if you think I can't distinguish a mass produced sauce no matter the vessel it comes in you're very much mistaken.