343 points · by garaetjjte · 7y ago · 88 comments
Magnum [0] is a favorite of mine for creating portable OpenGL C++ applications. It also has support for compiling to WebAssembly [1] and using WebGL2.
https://www.anandtech.com/show/12894/apple-deprecates-opengl...
It worked pretty OK-ish in my project running OpenGL game on Windows Phone 8. I was using Microsoft's fork [2].
Another alternative is GLOVE [3], which is a software OpenGL on top of Vulkan.
Another interesting project is WebGPU [4] which targets to provide Vulkan-like APIs across various platforms in browsers.
As it's offshoot which is not quite related is GFX-rs, which became a cross-platform Rust library providing low level graphics API (HAL layer).
looking forward seeing ANGLE getting Metal backend, which been just a promise so far.
[1] https://github.com/google/angle
[2] https://github.com/Microsoft/angle
[3] https://think-silicon.com/products/software/glove/
Except Linux?
Dude, you made me think that I've missed the Linux release of the Fortnite!
Wouldn't the credit belong to Magnum rather that C++ plus OpenGL, given the tremendous amount of work that goes into making things seem portable to the end user of the library?
PSGL was largely ignored by everyone that matters in the game industry and eventually dropped.
https://sandstormgames.ca/2011/07/22/debug-playstation3/
"At one point, Sony was asking developers whether they would be interested in having PSGL conform to the OpenGL ES 2.0 specs (link here). This has unfortunately never happened however, as developers seem to have mostly preferred to go with libGCM as their main graphics API of choice on PS3. This has meant that the development environment has started becoming more libGCM-centric over the years with PSGL eventually becoming a second-class citizen – in fact, new features like 3D stereo mode is not even possible unless you are using libGCM directly."
Just like everyone raves around Switch having Vulkan support, when most studios are using Unreal, Unity and the main 3D API, NVN.
As rule of thumb, instead of believing what gets posted on FOSS friendly web sites regarding 3D APIs, GDC Vault, Making Games, IGDA, Connect, EDGE, Retro Gamer, and AAA studio dev blogs are a much better source of information.
Needs some optimisation done on that part. ;)
"OpenTTD is a business simulation game in which players try to earn money via transporting passengers and freight by road, rail, water and air. It is an open-source[2] remake and expansion of the 1995 Chris Sawyer video game Transport Tycoon Deluxe."
EDIT: the original, Transport Tycoon.
What occurred to me was "Test to Destruction".
Uncaught RuntimeError: float unrepresentable in integer range
at wasm-function[3502]:49
at wasm-function[6940]:395
at wasm-function[6939]:347
at wasm-function[3103]:334
at wasm-function[3284]:30
at wasm-function[4902]:3105
at wasm-function[4903]:654
at wasm-function[8083]:442
at wasm-function[8082]:3
at wasm-function[9782]:13You want the trains from your home country? They are available, and probably up to date to the current year. Just download them from within the game, enable them, and start a new game.
Network stuff, as mentioned in other comments, is futzy because of the limitations of running in a browser environment. A surprising amount of network code "works," in the sense that it compiles and runs translated to web sockets. (Great work from the WebAssembly and Emscripten community.) But, you know, web sockets.
pthreads support landed in Chrome recently: https://developers.google.com/web/updates/2018/10/wasm-threa...
Pipes, select, and unix domain sockets aren't really supported (afaik).
It makes a huge difference between enjoyment and suffering in games.
TT on my 486 took time to generate a map, (TTD is basically the same code I believe). Open TTD when you've cranked up the map size takes time too.
Perhaps you were playing TTD on a relatively powerful pc?
I'd assume that webassembly would consume more but maybe difference is not significant?
OpenTTD isn't as efficient, but it's not that demanding either.
https://en.m.wikipedia.org/wiki/CrossBridge
Everything old is new again.