Code: Select all
android:screenOrientation="landscape"
Code: Select all
android:screenOrientation="landscape"
Code: Select all
android:configChanges="orientation|keyboardHidden|screenSize"
Code: Select all
android:configChanges="orientation|keyboardHidden"
Also available is "sensorLandscape" and "sensorPortrait".luthyr wrote:The cause seems to be when I have this in the AndroidManifest.xml:I'm using a Galaxy S4, Android 4.4.2.Code: Select all
android:screenOrientation="landscape"
Code: Select all
irr::core::list<irr::gui::IGUIElement*> glist = iGui->getRootGUIElement()->getChildren();
irr::core::list<irr::gui::IGUIElement*>::Iterator itere = glist.begin();
for(irr::u32 i = 0; i < glist.size(); i++, itere++)
{
irr::gui::IGUIElement* el = (irr::gui::IGUIElement*)*itere;
irr::core::recti pos = el->getRelativePosition();
pos.LowerRightCorner.X *= scalef;
pos.LowerRightCorner.Y *= scalef;
pos.UpperLeftCorner.X *= scalef;
pos.UpperLeftCorner.Y *= scalef;
el->setRelativePosition(pos);
}
Maybe throw it in to an SDL2 driver. I may get to this soon.CuteAlien wrote:@FloatyBoaty: We can do so maybe after we merge with svn trunk. Right now the ogles drivers are only in our ogl branch - but we are working on getting these together for a while already.
Yes, I've be using my own shaders, after revision 4908, the performance on Adreno or Mali gpus is better than before (at least on Adreno220 is 35fps jump tp 55fps), while on Power VR (as I said before) is worse.Nadro wrote:In those revisions we implemented lighting and other missing calculations like eg. a fog thats why a perf drop is normal in this case. You shouldn't use built-in materials for a games where a performance is important (mostly all 3D games), but prepare shaders and materials dedicated for your game (in many situations just copy-paste from a built-in shaders with removed unnecessary lines of code).
Diff here:FloatyBoaty wrote:Maybe throw it in to an SDL2 driver. I may get to this soon.CuteAlien wrote:@FloatyBoaty: We can do so maybe after we merge with svn trunk. Right now the ogles drivers are only in our ogl branch - but we are working on getting these together for a while already.