![]() |
Re: Customizable Dashboard
When I run it, the mouse flickers, CPU usage goes up to nearly 100%, and it is a bit slow (it claims the frame rate is 3-9FPS)
what data do you send from the robot side? GetDashbaordDataPacker()->AddI32(55)? is there a way to not have full screen dashboard? the set resolution fails |
Re: Customizable Dashboard
Quote:
What we're doing is using a separate laptop to run the dashboard and connecting it to the Classmate using a USB to Ethernet adapter. It works quite well, and you have the added benefit of not just a faster computer, but a larger screen so your drivers don't have to view the dashboard in Squint-O-Vision. On a fairly standard laptop that our team bought for programming, we got 90 fps on average. The CPU is pegged not because of a problem, but because the dashboard runs as fast as possible. I can have it sleep in the render loop if it's that huge of an issue, but it shouldn't be. Remember that this isn't an event-based system, but a real-time render loop. If you're worried about running other programs while you're designing the dashboard, don't worry as the dashboard sleeps and uses almost no processor when its window isn't selected. Could you please explain what you mean by "The set resolution fails?" In the edit menu, you can set the resolution to whatever you want. While at first I was going to limit options to the possible resolutions of the computer the dashboard is running on, I decided to let the user set it to whatever they wanted in case they wanted to design a dashboard on one computer and run it on a different one. When you run the dashboard, it checks if the computer supports the desired resolution, and if it doesn't, returns to edit mode after displaying an error message. On the robot side, you use the high-priority packer to pack the dashboard with floats (as I stated in my previous post). |
Re: Customizable Dashboard
I ran this on my MacBook (w/ Win7) and my FPS was ~130 until I added controls when it dropped to ~80 at 5 controls and ~60 at 13 controls. When displaying properties with 13 controls the FPS is ~60 +/- ~10.
I tried to resize from 1280x800 to 800x600, but the resolution did not change; however, it did remove some components. |
Re: Customizable Dashboard
Quote:
Quote:
Quote:
|
Re: Customizable Dashboard
I'm not sure what's going on with the fullscreen mode. I'll take a look at the code as soon as I get home.
Byteit - I have no idea what could be causing FPS to drop so low. Could you give me more details as to what you were doing when it happened? A note on FPS - the entire system is texture-based (since this it runs on a graphics engine after all). The arrows on the Numeric Up/Down controls are textures, the text in the controls are textures, etc. I sped up performance by making each of the labels in the Properties windows solid textures, but that's sill a lot of texture changes (I ran some diagnostics and I think there's like 90 textures in the properties window). Now for those of you who know anything about graphics processing, switching textures, meshes, and shaders is expensive for the graphics card. So having the properties window open will cause the FPS to drop. Also, adding controls not only adds the need to draw the controls themselves, but the data source boxes, etc. Just know that display-mode performance will be much higher than your edit performance - even by a factor of 2 or 3 according to initial tests. While I obviously want designer mode to run fast, I care much less about optimizing the designer mode than the display mode, since during a match you'll be looking at the display, not editing it. :p |
Re: Customizable Dashboard
You should be able to get a performance boost by switching to power-of-two textures. Also, I'm not very familiar with Irrlicht, but you should make sure the quads are not being drawn in immediate-mode, and instead thrown into VBOs (or at the very least, vanilla vertex arrays).
|
Re: Customizable Dashboard
Quote:
As for VBOs, I'm using their built-in 2-D rendering mode, which is in the process of being switched over to VBOs (I think in the next update). The video system, which I'm working on right now, will use VBOs. :D |
Re: Customizable Dashboard
Can I have the source code so I can attempt to port it to Linux?
|
Re: Customizable Dashboard
I'll have a source release in a day or two after I comment it a little bit.
|
Re: Customizable Dashboard
ok, thanks
|
Re: Customizable Dashboard
I found some more bugs (they'll be fixed by the time you read this).
I'm looking into the issues with different resolutions now. Also, for planned updates, I also plan on highlighting the data rectangle of selected controls in some way. |
Re: Customizable Dashboard
Quote:
no controls, just running the exe, and looking at the FPS! |
Re: Customizable Dashboard
Quote:
|
Re: Customizable Dashboard
I'm working on the video control next, which will also come out as a stand-alone program (like TheDominis's C# one). I had a few issues with the networking, but thanks to TheDominis, things should be smoothed out now.
My team is playing at the Wisconsin regional this weekend and I'll just be working on the dashboard all competition, so expect some further progress by Sunday. |
Re: Customizable Dashboard
Quote:
-Joe |
| All times are GMT -5. The time now is 21:23. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi