Entelin
02-06-2008 22:09:45
Is it possible to implement something like the window grabbing and resizing that most linux desktops use? It's really a very nice fast way of doing it, heres how it works for those not familiar.
Hold alt, and left click / drag the window from anywhere in the window (you can grab the window from anywhere, including on top of a button and the button wont trigger).
Hold alt, right click / drag the window from any of the 4 quadrents of the window to resize in that direction.
This is in addition to the common method of going to the title bar and dragging that, or to the bottom edge of the window to resize. Because you dont have to find little spots on the window to manipulate them its *much* faster and nicer to move windows around. I would like to have this for my game.
I started on a gui system for my game already in fact, and it already supports this (well actually its the only method it supports currently). <rant>However I have come to the realization that overlays are too slow, and very cumbersome in many ways. Frankly I really hope they are expanded to a point of being usable, or gotten rid of entirely so people wont waste their time using them after being drawn into using them assuming they provided the needed low level functionality one would normally need. Such an assumption is entirely reasonable considering that they are large classes that have a fairly extensive parenting system leading you to beleive that they can be used for more than a very simple overlay (after all if thats all you should be using it for, why all the extensive classes?)</rant>
So in short, my system has speed issues, heres a screenshot.
opening up 2 more instances of that calculator brought my fps all the way down to 180fps (from around 400-500), on my 8800gt.
So to someone whose gone through this himself, (apparently quickgui used overlays to start with?) how easy was it for you to redo your render system without using overlays, and how generally are you batching things? Did you notice a pretty substantial speed increase? I'm going to look at quickgui too to determine if it might be worth just dumping my code and using yours. Do you have any other advice to someone who is possibly facing some of the same challenges you encountered?
oh and heres a windows demo of my windows (using the alt grab resize/move stuff) so you can see how it feels. http://logicaldreams.net/HighSeas.zip
you will also need http://logicaldreams.net/cg.dll as I forgot to include it in the zip.
Thanks for any help.
Hold alt, and left click / drag the window from anywhere in the window (you can grab the window from anywhere, including on top of a button and the button wont trigger).
Hold alt, right click / drag the window from any of the 4 quadrents of the window to resize in that direction.
This is in addition to the common method of going to the title bar and dragging that, or to the bottom edge of the window to resize. Because you dont have to find little spots on the window to manipulate them its *much* faster and nicer to move windows around. I would like to have this for my game.
I started on a gui system for my game already in fact, and it already supports this (well actually its the only method it supports currently). <rant>However I have come to the realization that overlays are too slow, and very cumbersome in many ways. Frankly I really hope they are expanded to a point of being usable, or gotten rid of entirely so people wont waste their time using them after being drawn into using them assuming they provided the needed low level functionality one would normally need. Such an assumption is entirely reasonable considering that they are large classes that have a fairly extensive parenting system leading you to beleive that they can be used for more than a very simple overlay (after all if thats all you should be using it for, why all the extensive classes?)</rant>
So in short, my system has speed issues, heres a screenshot.
opening up 2 more instances of that calculator brought my fps all the way down to 180fps (from around 400-500), on my 8800gt.
So to someone whose gone through this himself, (apparently quickgui used overlays to start with?) how easy was it for you to redo your render system without using overlays, and how generally are you batching things? Did you notice a pretty substantial speed increase? I'm going to look at quickgui too to determine if it might be worth just dumping my code and using yours. Do you have any other advice to someone who is possibly facing some of the same challenges you encountered?
oh and heres a windows demo of my windows (using the alt grab resize/move stuff) so you can see how it feels. http://logicaldreams.net/HighSeas.zip
you will also need http://logicaldreams.net/cg.dll as I forgot to include it in the zip.
Thanks for any help.