pressing ALT causes lags?!

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

pressing ALT causes lags?!

Post by switch_case »

hey everyone.
i have a misterious bug in irrlicht, every programm i write has the same bug.
everytime i run a programm, everything works fine. but at the time you start to press [ALT], the programm gets slower and slower, and finally stops. it takes a few seconds (depends on how long you pressed ALT), and it goes on.

i don't know if im the only one who has this bug, maybe its caused by my hardware (keyboard or whatever), but i would appreciate if someone would test it on his computer...

thanks so far. :)
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I certainly found a few keys which would cause irrlicht to completey stop (instantly) but would then resume normally once the key was pressed again... Rather strange, and i've got a feeling the alt key may have been one of them.
Image Image Image
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I can't reproduce that here. Which irrlicht version, which OS and which renderer are you using?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

That is rather huge. :?
Please, more info ^^
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

Post by switch_case »

i have WIN XP, irrlicht 1.4, and it happens with every renderer, no matter if openGL, directX or software.
but it doesnt happen this way with other programs (written by people in this fourm) i downloaded. but the problem there is, for example, that if you move through a level with [W], and press [ALT], the players node wont stop moving untill you release [ALT], no matter if [W] is still pressed...
its so strange i dont understand it... :P
maybe it is a keyboard problem? i have a wireless keyboard and mouse (both logitech, but different receivers)?!
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Does it happen in the SDK sample apps?

If not, can you please post a minimal example that shows it happening.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

Post by switch_case »

i tried it with the collision example, wich is in the \bin\win32-visualStudio folder. and yes, it starts lagging.
do you want to see a video or what do you mean ? :)
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I still can't reproduce the lag, but I also get the other problem that the movement in the collision example won't stop when you press alt before releasing the movement button. So that problem seems to be a bug.

No idea why it does get slower for you. Maybe you have some other functionality mapped onto the alt-key on your computer?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Wouldn't the alt-key on windows system just try to access the windows system menu? (Eg, Close, Move, etc). This happens fullscreen sometimes too, so you don't actually see the menu pop-up.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

Post by switch_case »

good idea... but why does it lag only with programs compiled on my computer?
and for example in computer games wich i bought (battlefield or whatever) it doesnt lag or cause problems at all, so i think it is a weird thing caused by the irrlicht engine...

and i am very sure i have no other functions on [ALT], because i wrote my own event handler, and all it can use is WASD + - and the mouse.
and also the camera is not a -FPS, but an usual ISceneNodeCamera, so it wont do anything, if not moved by my event handler.
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

If you use the Built in cameras (maya or FPS) if you press ALT (for me at least) it will pause the game completely until I hit it again... I didn't think this was a bug.. more of a feature!
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

Post by switch_case »

but why does it still happen?
i dont use a fps or maya cam ;)

it must happen somewhere else in the engine...
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Can you post a binary for me (us) to check please?

And a test-case code for that behavior.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Urgh, that's nasty behaviour with the FPS camera under Windows. There's nothing in Irrlicht that handles the ALT key (KEY_MENU) specially. Possibly that's the problem - there should be something that handles it.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

http://irrlicht.sourceforge.net/phpBB2/ ... 359#146359

This post by me shows how to add support for Win Keys and F10, which in Windows acts as if pressing alt (activates the window menu). Even if the menu is hidden, it still exists. Adding Alt catches (I'm going to do this in 3Demon), is very simple.
Image
Post Reply