[SOLVED] Tips for playing HTML5 games in Linux VM

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post please read how to get help
Post Reply
Slo-matt
Level 1
Level 1
Posts: 8
Joined: Wed Jun 06, 2018 1:34 pm

[SOLVED] Tips for playing HTML5 games in Linux VM

Post by Slo-matt » Fri Jun 22, 2018 12:14 pm

Hi all. I run a community coding group in my area and I get a lot of requests to teach a basic programming class for teens. My idea is to use HTML5 game creation (probably with Phaser) as a vehicle to teach JavaScript.

I don't want the students to have to buy anything, so I am going to use tools like VS Code, Inkscape and GIMP for the class.

Now, we could do all this under Windows, but what I'd really like to do is to use the class to introduce Linux, as well. I'm not the biggest Linux expert in the world but I've been using it for awhile now and I find it to be a superior development environment. I can't ask them to just delete their original OS, so our dev environment will have to be in a VM.

Here's the problem: I have Mint running in VMware Player on my Dell XPS 15 (i7, 16GB, 4GB Nvidia.) The VM has 4GB and 2 processors. Playing HMTL5 games in this VM under Chrome or Firefox is a terrible experience. Games that run smooth under Windows stutter and lag. Note, these aren't Flash games, but HTML5 games.

I don't want to use Mint if that's the best I can do for the students. I don't want to give them a bad impression of Linux and I don't want them to think their own games perform badly because they made them wrong.

My question is: Can I do anything about it? Is there a way to get these games to play better in a Mint-based VM?

Thanks in advance!
Last edited by Slo-matt on Mon Jun 25, 2018 2:47 pm, edited 1 time in total.

User avatar
xenopeek
Level 24
Level 24
Posts: 22949
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Tips for playing HTML5 games in Linux VM

Post by xenopeek » Fri Jun 22, 2018 12:48 pm

Do you have a link to an example game so we can have a look at performance on our VMs?
Image

whm1974
Level 4
Level 4
Posts: 237
Joined: Fri Jan 19, 2018 11:07 pm

Re: Tips for playing HTML5 games in Linux VM

Post by whm1974 » Fri Jun 22, 2018 2:15 pm

You might want to rethink teaching both basic programming and Linux in the same "class". However I wouldn't be surprise if some of the teens are already running Linux.

Slo-matt
Level 1
Level 1
Posts: 8
Joined: Wed Jun 06, 2018 1:34 pm

Re: Tips for playing HTML5 games in Linux VM

Post by Slo-matt » Sun Jun 24, 2018 10:22 am

Well, I wasn't going to deep dive into bash or anything. Mint seems intuitive enough that I dont anticipate a lot of problems. Not for what I'm trying to do.

Slo-matt
Level 1
Level 1
Posts: 8
Joined: Wed Jun 06, 2018 1:34 pm

Re: Tips for playing HTML5 games in Linux VM

Post by Slo-matt » Mon Jun 25, 2018 2:46 pm

I worked with this issue over the weekend, and I think the real solution is just painfully obvious: develop but don't run the games in a VM.

Duh, right?

I tried this a couple of ways. First off, I tried running the games on a dedicated Linux machine with decent specs. The games worked great.

I also tried running them on a 2-processor, 4GB Windows VM on that same machine. The performance was weak.

So, it's not the OS, it's a problem with trying to play an HTML5 game in a VM. Cool.

I'll mark the thread as solved.

Post Reply

Return to “Gaming on Linux Mint”