Re: ProGUI V1.36 User Interface Library (Small bug fix)
Posted: Tue Jun 19, 2012 2:01 pm
That looks pretty cool.
http://www.purebasic.com
https://www.purebasic.fr/english/
Thanks!Zach wrote:That looks pretty cool.
Thanks mate!electrochrisso wrote:Great example Chris, only uses 20% of CPU at full screen (1024x600) on my 1.5ghz netbook, with basic graphics processor, and if I reduce the window to about 500x300, move it around, meanwhile the animation is still happening at the same time, CPU uses about 40%.
Superman.
Half Window dropped to 10%, Full Window 15%, if I implement the ExplorerBar code, 14% & 18% respectively, and if I comment out the PanelEx, no change.Thanks mate!that's really good performance (baring in mind 200 alpha transparent images/stars with real-time resizing), can you try removing the overlay gradient on the main PanelEx and let me know what the CPU usage is like? (should be a lot better as the gradients rape the CPU at the moment!
lol) also if you remove the 30 millisec delay in the animation thread you'll really see it fly! heheh
Thanks for testing that out for me Chris I appreciate it! Still some more optimizations to do but I'm pretty pleased with the performance so farelectrochrisso wrote: Half Window dropped to 10%, Full Window 15%, if I implement the ExplorerBar code, 14% & 18% respectively, and if I comment out the PanelEx, no change.
As for moving the window around there is no change, this seems to be a windows thing, even if I move a plain small window around it will use about 40%.
Actually I did remove the delay, and noticed quite a rapid speed increase and it only increased the CPU usage from 10% to 30%, the stars were going that fast I thought they were going to fly out of my screen and hit me in the head.![]()
You have really done some great optimisation in your code mate.
Thanks for testing dudeelectrochrisso wrote:Chris, I have only tested on my netbook sofar, and it seems it does not handle Direct2D, very well, actually GDI goes smoother and faster.
, still nothing flash though. This thing has very basic on-board graphics, Intel GMA, and still running the 2009 drivers, perhaps it has been optimised to run under GDI.
What I can say so far, when running the Direct2D, the balls seem to move at the same rate from 10 up to 1000 balls, nothing changes when setting between 30 and 60fps, and the CPU only uses 20%.
I am in a bit of a hurry at the moment, but I will crank up my other laptop tmw, it has a much better dedicated graphics card, and will let you know how it goes on that one.
Zach wrote:So awesome man... Keep up the good work!
Once you get the Text commands in, I think I can build my whole Game GUI with this(I hope)
I ran the tech demo, at 10k balls at 30 and 60FPS no problem
Sweet! thanks Poshu matePoshu wrote:60000 balls and everything is still so smooth