FB_GUI V1.20.5 (New Release Dec 19, 2019)
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
This is looking nice. I do have a problem on all the examples giving 100% CPU usage. I tested a previous version that didn't have that problem. Because of this, it is very sluggish at responding to menu buttons and even gave me a message that the program wasn't responding. I will try it on a different PC later.
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
The simple examples I up-loaded were used to develop / debug individual controls. As such, they are in CPU-hogging loops that poll for events without a sleep cmmd to give time back to the CPU.
The full FB_GUI library uses the FB ScreenEvent function which is much more efficient and CPU friendly. In the small examples that were provided, the Slider program operates on top of the ScreenEvent polling used in the full FB_GUI library (the other examples don't). I expect Slider will perform better than the others. For any of the controls, however, they should operate in a CPU-friendly way when used with the full FB_GUI.
My overall goal in developing these routines was to develop a platform for real-time data acquisition for biomedical research (20 - 50 kHz bandwidth). As such, I have dedicated lots of CPU time to polling for detecting events on the A/D than come at unpredictable and irregular times.
The full FB_GUI library uses the FB ScreenEvent function which is much more efficient and CPU friendly. In the small examples that were provided, the Slider program operates on top of the ScreenEvent polling used in the full FB_GUI library (the other examples don't). I expect Slider will perform better than the others. For any of the controls, however, they should operate in a CPU-friendly way when used with the full FB_GUI.
My overall goal in developing these routines was to develop a platform for real-time data acquisition for biomedical research (20 - 50 kHz bandwidth). As such, I have dedicated lots of CPU time to polling for detecting events on the A/D than come at unpredictable and irregular times.
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
Ah, the Query function polls in a separate loop.
Sounds like I better go back to all the polling loops in the library and introduce a brief sleep command. Fortunately the polling occurs at a reasonably small number of locations in the code... so I should be able to back and modify them all.
Thanks for pointing this out. Changes will be made with the next release (if not sooner).
Sounds like I better go back to all the polling loops in the library and introduce a brief sleep command. Fortunately the polling occurs at a reasonably small number of locations in the code... so I should be able to back and modify them all.
Thanks for pointing this out. Changes will be made with the next release (if not sooner).
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
Yeah, the GFX.Font routines have a lot of glitches with the glyphs (appreciate the effort though).
I'm thinking of switching to the API posted by Thorham to render fonts with FreeType2
http://www.freebasic.net/forum/viewtopi ... 566#115566
Just figured out how to optionally render these fonts on a FB.Image Buf instead of the screen. This should now enable me to re-write the Controls in FB_GUI to use these cleaner Glyphs.
I'm thinking of switching to the API posted by Thorham to render fonts with FreeType2
http://www.freebasic.net/forum/viewtopi ... 566#115566
Just figured out how to optionally render these fonts on a FB.Image Buf instead of the screen. This should now enable me to re-write the Controls in FB_GUI to use these cleaner Glyphs.
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
Missing ext/graphics.bi
Hi, I am missing the above library. Do you know where I can get it?
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact: