r/linux • • Mar 01 '12

I believe that for Linux to really conquer private desktops, pretty much all that is left to do is to accomodate game developers.

Recently there was a thread about DirectX vs. OpenGL and if I remember correctly...Open GLs biggest flaw is its documentation whereas DirectX makes it very easy for developers.

I cannot see any other serious disadvantage of Linux which would keep people using windows (even though win7 is actually a decent OS)

Would you agree that a good Open GL documentation could make the great shift happen?

468 Upvotes

438 comments sorted by

View all comments

Show parent comment

5

u/l00pee Mar 02 '12

What about a mini game os that runs in its own vm? I think the hardware has caught up to the overhead. If you could package the gaming platform for all oses you could install the same version of the game everywhere. We should write an open source, high performance gaming platform, which abstracts away most of the issues you mentioned to the host os. Game devs would certainly embrace a write once, run anywhere system if it was fast and solid.

13

u/tapo Mar 02 '12

This is more or less Native Client, which is enabled in Chrome/Chromium and can run games like Bastion cross-platform. It's BSD licensed.

2

u/wadcann Mar 02 '12

I have a kinda anti-Google bias here (otherwise, I'd use Android without a problem). I don't like worrying about what data is being gathered and sent back to home base, and gathering and monetizing data is Google's meat-and-potatoes. I've always avoided Chromium for this reason...I wouldn't mind paying a surcharge on commercial apps that use Google's software to fund that development, but I hate wondering what data exactly Google is gathering about me.

0

u/l00pee Mar 02 '12

I'm thinking something that doesn't require a browser... extremely light weight that just abstracts out the subsystems. Piggy backing on a browser is (imho) kinda cheating.

1

u/Sargos Mar 02 '12

Native Client is exactly what you want. Requiring a browser is not any different than requiring some form of OS.

If you wanted it to be bare bones or be the OS itself then we even have ChromeOS. It performs extremely well with very little overhead.

Imagine a world where you can play Quake Live or Counterstrike on any device you own anytime you like without installing any plugins. It can be done now and it is glorious.

1

u/l00pee Mar 02 '12

This is pretty much what I am asking for, but as a plugin to a browser - you must have the browser as well as everything else that comes with that.

In my vision, this is a stand alone client that is lean and developed for each platform. Inside of the VM, everything is as a game dev is used to... it could even look like win, even the system calls. While it sounds tedious to write it for each platform, it would only need to be written once. So instead of every game having to figure out how to work with the platform, they only work within the "GameOs" vm. Perhaps Native Client does this, I just think it is piggy backing on the browser which adds to bloat and requirements.

9

u/wadcann Mar 02 '12

What about a mini game os that runs in its own vm?

Well, it worked for Flash, at any rate.

7

u/contriver Mar 02 '12

Except its 'vm' was horribly insecure and has a long history of running horribly on linux.

Your point is still quite valid though, that and being a ubiquitous video player made flash crushingly dominant.

4

u/[deleted] Mar 02 '12

Like Java? :-)

2

u/[deleted] Mar 02 '12

The problem is that all VMs are terrible for real-time performance because of their GCs. You basically have to ignore 90% of the platform and basically use C-style procedural coding on a platform that relies on OOP concepts to be expressive.

So your C-style coding feels more like Pascal or QBasic.

It's an utterly crappy way to work.

1

u/[deleted] Mar 02 '12

I know.

1

u/wadcann Mar 02 '12

I've never had tremendous luck running Java apps with kaffe or gcj, and Sun's JVM didn't ship on any Linux distros for ages, probably due to licensing issues. I also remember having to manually set CLASSPATH in order to get binaries working even with Sun's setup.

Maybe they're minor issues to fix, but it was enough of a headache that I walked away from pretty much every Java program kinda unhappy. I think that the only client-side Java software I use is Freenet, and even that has had pretty epic memory usage issues in the past.

1

u/[deleted] Mar 02 '12

Java is in a better shape today, but I still don't like it :)

0

u/[deleted] Mar 02 '12

[deleted] — view deleted comment

1

u/[deleted] Mar 02 '12

Yes, yes it is. However, "bare essentials" will be useless. You want a system that will be able to abstract various graphics subsystems, drivers, vendors (should it be a thin layer of top of drivers, or on top of some OS-specific graphics libraries?), input (shouldn't be much of a problem), detecting things like resolution, capabilities of the underlying machine and applying correct translations, ... . Would we design our own bytecode, or should there be some "native" instruction set, or a completely new programming language, specifically for this? How much of a game framework would it be? Developers tend to like their current frameworks and engines. And tons of other questions, and something that's unnecessary bloat to one person is essential in a game-oriented VM, and vice versa, too "bare" and we're making development more complex instead of simplifying it.

I'm not saying it can't be done. What I'm saying is that, most likely, it'll either come out as too bare-bones to be useful, or too bloated and we get Java Next Gen, with 100% more bloat.

Sweet idea though, and it sucks how you've only told me about it now, a few weeks ago and I'd've made it my thesis project :)