1
General / Re: Unable to properly build my project using shared libraries or Release target
« on: December 30, 2024, 08:35:11 pm »
I hate it when this happens...
In the quest to analyze the different build results further, I recompiled in Debug and shared libraries again "today". And now it's working. I have no idea why.
Yes, I have been doing some code changes here and there, but nothing major. And I was doing test builds all the time, in the "previous days".
(something, something, build cache?) I was clearing the build cache multiple times, when this issue first came to notice.
Okay whatever, I guess(?)...
But the Release type builds are still messed up. I would like to find a solution to that. But now I can atleast keep working on this and not have to ditch everything. *sigh* linux development (and c++) is such a struggle...
I changed the statistics output on the console a bit. (previous output made no sense)
This now shows a very interesting detail. Either me setting the framelimit to 60 is completely ignored. Or there is something else going wrong. (setFramelimit() is called inside cf::Form::Open() after creating the window.
So right now it comes down to:
TestForm::Init() override from main.cpp is ignored.
and the window update rate is wrong.
In the quest to analyze the different build results further, I recompiled in Debug and shared libraries again "today". And now it's working. I have no idea why.
Yes, I have been doing some code changes here and there, but nothing major. And I was doing test builds all the time, in the "previous days".
(something, something, build cache?) I was clearing the build cache multiple times, when this issue first came to notice.
Okay whatever, I guess(?)...
But the Release type builds are still messed up. I would like to find a solution to that. But now I can atleast keep working on this and not have to ditch everything. *sigh* linux development (and c++) is such a struggle...
I changed the statistics output on the console a bit. (previous output made no sense)
Time Profile 'TestForm':
Cycle: 0.00001
Window: 0.00001
Update: 0.00000
Draw: 0.00000
FPS: 142857.14062
Objects: 0, Updatables: 0, Drawables: 0
(output of a Release type build)Cycle: 0.00001
Window: 0.00001
Update: 0.00000
Draw: 0.00000
FPS: 142857.14062
Objects: 0, Updatables: 0, Drawables: 0
This now shows a very interesting detail. Either me setting the framelimit to 60 is completely ignored. Or there is something else going wrong. (setFramelimit() is called inside cf::Form::Open() after creating the window.
So right now it comes down to:
TestForm::Init() override from main.cpp is ignored.
and the window update rate is wrong.