Final Platform Layer»Forums
152 posts / 1 project
I am finalspace and do programming since more than 25 years, started on C64 and got serious with borland delphi. Nowadays i use C/C++ only.
Feedback for FPL!
Edited by Finalspace on Reason: Initial post
This thread is dedicated to any constructive feedback for FPL.
So if you got some ideas to make this library better in any way, you are welcome to post it here ;)
Thanks!
BlahBlah
6 posts
Feedback for FPL!
Hi, I think it would be useful to be able to resize the window without blocking. One way to this would be using fibers.
Per Vognsen does this in his platform layer for example:
https://gist.github.com/pervognse...0021b95c8d0a7b72#file-mu-cpp-L139
See also related tweet:
https://twitter.com/nothings/status/960730509985832961
152 posts / 1 project
I am finalspace and do programming since more than 25 years, started on C64 and got serious with borland delphi. Nowadays i use C/C++ only.
Feedback for FPL!
Edited by Finalspace on
Marmot
Hi, I think it would be useful to be able to resize the window without blocking. One way to this would be using fibers.
Per Vognsen does this in his platform layer for example:
https://gist.github.com/pervognse...0021b95c8d0a7b72#file-mu-cpp-L139
See also related tweet:
https://twitter.com/nothings/status/960730509985832961


This is neat, thanks!

I never read or heard about fibers at all. But i will read things up and play around with it.
But looks like a fine way to move the window message processing into its own special separated thread.
Mārtiņš Možeiko
2559 posts / 2 projects
Feedback for FPL!
Not thread. That's the point of fibers - they execute on same thread as "calling" code. You basically execute for a while and then "jump" to different place to execute. By "place" I mean you assign instruction pointer and all the other registers different values. Now you execute in "other place" for a while. And then "jump" back to original place.

This is how you implement coroutines. Like "await" keyword in Node.JS or Python or C#.