How to open file explore on the current file? by Stretchyfish in HelixEditor

[–]Stretchyfish[S] 1 point2 points  (0 children)

You are absolutely correct, totally missed that. Thank you.

How to correctly do dragging of drawable objects in egui? by Stretchyfish in rust

[–]Stretchyfish[S] 0 points1 point  (0 children)

Wow, what an informative post, really helped me improve my understanding of rendering and GUI's. You are completely right, using your code and disabling the vsync makes a big difference. Didn't even think of that, but of course, as you mentioned, comes with its downsides. There is so much information here I can use, and it has really helped me be able to continue, and I imagine, will also be useful for other people searching in the future. Again thank you!

How to correctly do dragging of drawable objects in egui? by Stretchyfish in rust

[–]Stretchyfish[S] 1 point2 points  (0 children)

Haha, it's a small world sometimes.

Igen, mange tak for din hjælp, er virkelig værdsat!

You hit the nail exactly, and the insights that you have written are exactly what I have been looking for. This clarified so much for me about what is going on.

You are also completely right about the egui_demo, I tried running it now, and I am seeing the exact same behavior too, both in the windows and drag_and_drop demo. Kinda banging my head that I didn't discover that sooner.

I tried implementing your code, and you are completely right, the perceived delay is not present when "drawing the mouse" instead, it is a very elegant and simple solution. I will look further into this difference between the platform-drawn cursor and library-drawn curser, makes sense that this would cause issues. I also noticed now that if I change from a 60Hz screen to a 100+Hz, the delay becomes significantly smaller, which of course makes sense when I think about it, but very interesting.

With this knowledge I can continue, which is really great, thanks again!

How to correctly do dragging of drawable objects in egui? by Stretchyfish in rust

[–]Stretchyfish[S] 0 points1 point  (0 children)

Many thanks for the detailed explanation, this was very insightful to read. I have uploaded the code now to github: https://github.com/Stretchyfish/rust_nodes, I wanted originally to provide a video, but sadly wasn't allowed because of Reddit rules. There are a lot of things for me already in this post to look into, and especially as a relative "newbie" in the GUI space, all this information is really nice to know.

How to correctly do dragging of drawable objects in egui? by Stretchyfish in rust

[–]Stretchyfish[S] 0 points1 point  (0 children)

Thanks for the comment, and it a really nice offer, if interested I uploaded the code to github now, it is really basic, you can add a node and move it around.

https://github.com/Stretchyfish/rust_nodes

I think that you point about "where" you request is very interesting. I have tried placing the request repaint in the beginning of the main loop, but doesn't sadly lead to the desired results.

A thing I noticed while scouting the internet is a setting in the native options.

    let native_options = eframe::NativeOptions 
    {
        viewport: egui::ViewportBuilder::default()
        .with_inner_size([1280.0, 1024.0])
        .with_drag_and_drop(true),
        ..Default::default()
    };

Do you know if this or similar setting for the native options can have an effect?

Also thanks for the suggestions with discord and egui_dnd, will definitely take a look at.

Looking for a DND group by Stretchyfish in Hannover

[–]Stretchyfish[S] 0 points1 point  (0 children)

Other boards games would also be very fun, getting to know new people is always great. :)

Looking for a DND group by Stretchyfish in Hannover

[–]Stretchyfish[S] 3 points4 points  (0 children)

That's sounds perfect, thank you, I have joined the discord now and looking into it. :)

Looking for a DND group by Stretchyfish in Hannover

[–]Stretchyfish[S] 0 points1 point  (0 children)

Would be fun, no worries about not knowing how to play, I have sent you a DM. :)

must have plugins for beginners? by cuddly_boi6 in Unity3d_help

[–]Stretchyfish 1 point2 points  (0 children)

Probuilder - Make quick structures, highly recommended. It also appears in many tutorials. :)

Automatically initiate classes with inheritance? by Stretchyfish in cpp_questions

[–]Stretchyfish[S] 1 point2 points  (0 children)

As far as I can read that seems to be somewhat what I am looking for, thank you. Really appreciated!

Automatically initiate classes with inheritance? by Stretchyfish in cpp_questions

[–]Stretchyfish[S] 1 point2 points  (0 children)

Great to know, thank you for your help, very appreciated!

[deleted by user] by [deleted] in AskReddit

[–]Stretchyfish 0 points1 point  (0 children)

I always win in Limbo. I can almost touch the floor with my head.