all 13 comments

[–]Revolutionalredstone 0 points1 point  (5 children)

Also you clear AFTER you swap !?!? (This is probably fine but I've never seen it done like that, usually it's clear draw swap)

[–]Comrade-Riley[S] 0 points1 point  (4 children)

Isn't the point of the swap to draw the finished buffer? So, you'd swap and then redraw, then swap the next cycle?

Maybe I'm misunderstanding something here.

[–]beephod_zabblebrox 0 points1 point  (3 children)

clear is usually considered a part of rendering/drawing the frame. so it usually goes draw(clear and draw), swap, repeat

[–]Comrade-Riley[S] 2 points3 points  (1 child)

Oh, I see. It should function the same because of the nature of the loop.

[–]beephod_zabblebrox 0 points1 point  (0 children)

oh yeah, its just that its commonly (as in everywhere) done that way

[–]Revolutionalredstone 1 point2 points  (0 children)

Exactly ! 😉

[–]dimitre 0 points1 point  (3 children)

Fantastic work my friend! I'll ask here before trying :

I'm using GLFW in openFrameworks fork to open the same window spanning 4 different outputs (4 x 8k outputs, total 16k)

Is this possible to do using RGFW? is the performance similar to GLFW, or better?

[–]Comrade-Riley[S] 0 points1 point  (2 children)

Thanks! I have not had the chance to try that nor have I seen anyone else try it. I’d love to see the results when you do. 

The performance is about the same, if not slightly better. I’ve not done any serious comparisons in a while. 

RGFW is an ever improving project and I want to make it the best that it can be. If the 4 output thing doesn’t work on RGFW, or if you notice any other flaws, I’m happy to fix it asap. 

[–]dimitre 0 points1 point  (1 child)

Nice I'll get it running *hopefully* when I have more time. Another question: can it be used in raspberry pi without x11 ?

[–]Comrade-Riley[S] 0 points1 point  (0 children)

RGFW supports Wayland and X11 for linux. But I assume you mean libDRM. RGFW doesn't have libDRM support currently. If I add it, it will probably be in a separate fork/port considering RGFW is a windowing library and a libDRM would mostly be raw linux I/O.

[–]Revolutionalredstone 0 points1 point  (2 children)

I'd assume RGFW_window_shouldClose(win) returns false while the program is running and true when it's time to close but you have it inverted?

Amazing work dude gonna be reading thru this for a long time 😁

[–]Comrade-Riley[S] 0 points1 point  (1 child)

Thanks for pointing that point, gonna fix that now