Jump to content
LaunchBox Community Forums

Worked perfect. Then boom! Lag


Mandoo

Recommended Posts

Hi and thanks for your taking time with my issue.

Im on win7 with ver7.4

 

I were using 6.something and were experienceing no lag.

After upgrade both windows update and launchbox im now in problem. 

I all starts fine. My pc is working hard but I can play a game and go back to bigbox. Then after another game i can return to bigbox but when trying to back out to game list i get reeeely laggy. Some images freezes and i need to hit ctrl alt del.

I have tried reverting to 7.0 also trying latest beta 7.4 beta without luck. 

 

I created a video to better explain my problem.

 

Check it out here (its only avalible for thoes following this link)

 

 

my spec.

win 7 service pack1

Dell Optiplex 3040 (SFF)

Intel core i3-6100T CPU @3.2GHz 3.10 GHz

RAM 4GB

System arc:  64 bit

HDD: NTFS 453GB.     95gb used 

 

 

i restarted launchbox and let it go into attractmode. works perfect. 60 min and counting

changing pictures right and all.. Now when i try moving around i menu it died... 

 

Seems to be something with me doing my inputs from the controller.

Ill try with keyboard and se what i get...

Update: Yes this seems to have something to do with my controllers. the menu is still a bit sluggich but no crash or strange behavior in bigbox when i just navigate with the keyboard.

is this known? are there a place for downloading 6. something to see if it works better with my controllers?

 

It all worked fine before.

 

 

 

 

 

If you need any more information to pin down this issue please let me know and ill gladly provide anything that can help.

 

 

 

Edited by Mandoo
added some information
Link to comment
Share on other sites

@Jason Carr

 

I droped all usb controller devices in device manager. reattached them in my frontports. I had to remap in mame. (possibly in all other emulators as well) but im not getting lag anymore!

 

Well.. After some fast scrolling in list i get the same result.lag then freeze. Im going to do some more testing tomorrow.

Might be some kind of conflict driver wise.. i dont know but im sure happy that i got it running for a while there.

I still think its strange how this could become a a lag problem in Launchbox. 

 Any thoughts on this?

Edited by Mandoo
Link to comment
Share on other sites

Hi again @Jason Carr

I have done some more research and found something.

After i switched usb ports and reinstalled the drivers i had to remap mame. While doing so i found the propper setting in mame to assign one button for game exit. 

Before this find i were using key automation in launchbox to exit emulators.

Now when trying my other emulators there is a clear pattern. Thous that make use of key automation for game exit creats the lag after about 2 emulation exits. Thoes with a exit key binded in emulator for game/emulator exit does not create this.

Im still not 100% sure if this has to do with your code tho..  need some more testing before ill judge your coding ;)

Ill try assign other keys with the automation bind combo. There might be some interference with one of the combo key beeing the same as the back and exit button in launchbox.

Well if you have some thoughts about key automation and the lag ill love to hear it. 

Thanks!

 

 

 

Edited by Mandoo
Typo
Link to comment
Share on other sites

Ah, interesting. Here's the code for that situation:

if (!status.GetButtonHeld(holdButton))
{
    return false;
}

if (status.GetButtonPressed(closeButton))
{
    string title = NativeMethods.GetActiveWindowTitle();

    if (title != null && title.Contains("DOSBox"))
    {
        SendKeys.SendWait("^{F9}");
        return true;
    }

    SendKeys.SendWait("{ESC}");
    title = NativeMethods.GetActiveWindowTitle();

    if (title != null && (title.Contains("LaunchBox") || title.Contains("Fusion")))
    {
        return true;
    }

    SendKeys.SendWait("%{F4}");
    return true;
}

Basically what happens is when you press the button combination it checks the active window title, and simulates certain keyboard key presses. It is possible that SendKeys (which is actually what simulates the key presses) could have a conflict with your controller, though that would be pretty odd and I've never seen that before. But at this point, assuming our assumptions above are correct, that would make the most sense.

Link to comment
Share on other sites

I have now tried assigning the combo to other buttons on diffrent controllers. I get the same lag. if im going to keep trying ill  most likely will try another controller card. i have a logitech usb gamepad. If i cant replicate  the lag with another controller its kinda pined down to the controller card. Its bad in the way that many who build there first arcade cab will most likely look into buying one of thoes kits on ebay witch inclued this controller card.

While trying to debug or demistify this problem i started to realise that im probebly will deactivate all systems eccept Mame. Because i have build a cab and only want to play arcade games on it. Mame works great and 2500 games is more than enuff. 

But ill do the test with another controller just to get to the end of this thread. Im hoping to get this done tonight after work.

Link to comment
Share on other sites

Ok i have unplugged my arcade controlls and used my logitech controllers instead in the same usb port. These controller make use of the same default driver as my arcade controls.

And i were suprised to discover that i can replicate the lag issue with theese logitech controllers.

So i think there is five options

*Theres a conflict between the generic game controller and the sendkeys software.

*i got some crazy configuration causing this.

*there is a bug in the code/ sendkeys script.

*some odd combination of the above

*something i haven't thought of :)

 

Also im thinking about what actualy

*Back

*Exit

Does. The ones under options.

Im not sure i have the whole picture about all options regarding quiting a emulator to return to lb.

Because mame seems to do a perfect quit. Just by assigning exit i lb. But its not working for other emulators... im confused and need to sleep now :)  

 

Check out the vids!

 

 

 

 

 

https://youtu.be/nfZNHovCkOk

https://youtu.be/IEAVvGQ2wow

https://youtu.be/KbRw9reC07I

https://youtu.be/Tba9T1yGXX0

https://youtu.be/EDoY5WhgSdI

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...