Sorting out lagging arcade game issue...
-
The Pi won't connect to my network. It can SEE the network, but after I punch in my security key it won't connect. I've tried three times and triple-checked to ensure I put they key in correctly each time. :\ It's not showing on my network either either when I connect via ethernet(though it IS getting internet connection that way). I'll check on some network stuff tomorrow(leaving for work soon, will be going to bed shortly after I get home, though I'll have time to check for more info here in between), but if anybody knows of something to check on the Pi itself to figure this out, let me know so I can try it as soon as I'm able to.
I'll be getting a B+ soon because we're going to build an arcade cabinet(for older games with which I have had no performance issues), and since Microcenter's selling the B and B+ for the same price I might as well grab the upgrade anyway, but I think it's fair to say if I intend to keep using this for ANYTHING we should try to figure this out. But we've got time before the trip to Microcenter is convenient to make(Sunday) so I hope we can figure this out before then and I can just apply whatever we figure out.
Still wondering about the power bank thing. It'd be nice to be able to make this thing last longer without interruption.
-
Checked everything I could on the network to see if it was rejecting new connections or had some other issue, and I can't find anything. I'm thinking some setting on the Pi is interfering with it's ability to connect. Any suggestions?
-
@FormulaFox The default keyboard layout on Raspbian is UK, so if you have some funky character in the password, you might be typing something else. Try to configure the Wifi using this method, it should work and you'll be sure your network key is the correct one.
-
Is there no way to just reset the keyboard to US? Or is it just harder to do that?
-
@FormulaFox yes you can set keyboard localisation in raspi-config
-
Okay, there must be something wrong with the wifi hardware on here because this thing absolutely WILL NOT connect to my network wirelessly(either that or I'm too dumb to not screw up the alternate method mitu directed me to), and I cannot connect via ssh to it when connected through ethernet.
Is there any way to dump the data I need to provide onto the flash drive? I run my ROMs off a thumb drive instead of off the SD card because my card is too small to import them all, so if there's a way to dump the output on there I could probably make that work.
It just hit me, though, is it possible for the lagging to be the result of using the flash drive instead of the SD card? That doesn't make much sense to me given the size of the ROM(I have Playstation ROMs that are bigger but don't lag, after all), but I've certainly seen technology do weirder things.
Quick little side note - how do you open the terminal while a game is running? I've been searching for that in the online documentation but haven't found it....
-
@FormulaFox said in Sorting out lagging arcade game issue...:
Quick little side note - how do you open the terminal while a game is running? I've been searching for that in the online documentation but haven't found it....
You use SSH.
-
Well, that's a problem since I can't get this thing to behave properly on the network...
-
@FormulaFox Are you sure you don't have some MAC filtering or other restrictions on your AP ? Also, the PI3B (non +) only knows about 2.4Ghz (i.e. no 5Ghz) so make sure you're connecting to the right SSID.
When creating thewpa_supplicant.conf
file on the sd card - the alternate Wifi configuration method - make sure that the file doesn't get created aswpa_supplicant.conf.txt
. You should be able to check if the file was imported by re-examining the sd card after booting, if it was processed then the file is removed. -
Believe me, no worries on the 2.4GHz. I have only one device in the house that can see 5GHz, so I haven't bothered even setting up a 5GHz network.
I'm not aware of any MAC filtering on my network - I certainly never set any up. The config file DID disappear from the boot sector when I was done - I've made the mistake of not removing the .txt from files before, so I was triple-checking that before I plugged the card back in.
BUT.... I just tried on ethernet again and... IT'S WORKING THIS TIME! As soon as I get the chance, I will play the game until it starts lagging again and get the needed info. I will post ASAP.
-
frequency(45)=1200000000
If I understand this number correctly, that's Hz? And if I've counted the zeroes correctly, that comes out to 1.2GHz. So.... Unless there is an error in my understanding, Metamorphic Force and Mortal Kombat are indeed maxing out the CPU.
I have also run the command while it was NOT lagging and got the same number(which doesn't surprise me - if the CPU being just that little bit short is the issue it'd be close even when it's not lagging).
For due diligence I tested a couple of other powerful games that I've NOT had lagging issues with(Marvel vs Capcom arcade, Bloody Roar II PSX), as well as some older less powerful games(Joust, Galaga, etc). Older games consistently give a number of 600000000 - exactly half the more powerful stuff.
I rebooted and double checked these numbers a couple of times as well, they stayed consistent.
This brings another question to my mind - With the CPU being pushed like this, how worried should I be about heat? This setup I have can't fit any form of active cooling. I do have simple heat sinks on it, but that's all I can do - it's open-sided, so there's as much airflow as you can get without fans(short of disassembling the unit, that is). At least, that's so far as I know - I've never seen a cooling system that would fit with a WaveShare Game Hat.
-
@FormulaFox this doesn't mean that your CPU is being run at 100% capacity. It just means it's being run at max frequency. This is normal behavior. The CPU is controller by a governor that decides when to apply max freq. As for why you are getting poor performance at 1200mhz I'm not sure.
-
Well this thing's behavior with getting the network access does seem to point to some sort of hardware issue, so it's probably related to some sort of hardware issue. I'll be using this one for our upcoming arcade box, which will only be running games that I've had no issue with(it's more for the parents), and I'll just stick the newer Pi in this when I get it.
And I wouldn't say I've had poor performance. That implies to me that this happens a LOT, even on stuff like Galaga, Joust, and other old-school stuff rather than just on the few more advanced games it has been an issue with.
Like I said, when I next have a chance to get to Microcenter I'll be getting a new one, and since they sell the B and the B+ for the same price I might as well upgrade.
In any case, should I also take this to mean that the heat shouldn't be an issue? (I have noticed the back panel underneath where the CPU sits get discernibly warm sometimes)
-
Two little updates now that I have the new Pi in my build.
-
No more lagging at all that I can discern. Whether the extra0.2GHz made the difference or there is another hardware issue with the other Pi is still unknown.
-
I figured out the undervolt issue, and it's something I think should be brought to people's attention for future troubleshooting issue with this type of build.
The WaveShare Game Hat I am using has a separate MicroUSB port for charging the 18650 battery you put in it. It seems that this port is NOT meant to EVER power the Pi directly under any circumstances, and cannot transfer full power from it. But because it completes the power circuit, it tries to do exactly that. To run this build on ANYTHING other than the onboard 18650 battery, the Pi's normal microUSB must be used.
Why I didn't think to test that sooner, I've no idea. I'm sure it was not suggested here by any of you who tried to help simply because you were unaware of the device's additional microUSB port - not everyone knows about this device, after all.
The good news for this is that it means I can continue to use the power bank I had been using before - it has an on/off button, allowing it to function as a switch for the Pi, and when plugged into the proper port, there is no undervolt warning and everything runs fine.
I thank you for your assistance, even though we were unable to find the specific issue with the previous board. Perhaps after I build my arcade cabinet with it, something else will come up that will lead us to solve it. But given what the cabinet will do and what kind of games were causing the lag, I don't think we'll be bumping into the issue anytime soon.
-
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.