News for hackers. Stuff that matters.

cshenton

Re:Leaving Rust gamedev after 3 years on Friday April 26, 2024 @04:32PM (#40173917)
My experience is that the ecosystem is a mess, have hit winit, wgpu, and countless bevy bugs, iteration times are abysmal, documentation is nonexistent. In the time it would take me to make a game in popular Rust tooling I could build the game and engine from scratch in C and also have something that would crash less.
You absolutely cannot implement stream compaction “at the speed of native” as WebGPU is missing the wave/subgroup intrinsics and globally coherent memory necessary to do that efficiently as possible.
Re:My personal C coding style as of late 2023 on Sunday October 08, 2023 @09:09PM (#37815877)
Really lovely. A lot here reminds me of design in Odin lang. Short integral types, no const, composite returns over out params. Big fan of the approach of designing for a single translation unit and exploiting the optimisations that provides from RVO etc.
Re:Small Joys with Odin on Friday July 21, 2023 @08:30PM (#36821912)
Odin is lovely and a great fit for graphics and games programming. I’ve been doing my real time graphics research in it (the CPU parts at least).
Re:Stop Saying C/C++ on Thursday May 18, 2023 @09:21PM (#35996636)
Absolutely! On a related note, looking for C development jobs is a real pain for this reason.
Re:Learning Modern 3D Graphics Programming (2012) on Wednesday December 28, 2022 @06:49PM (#34167629)
I personally find the experience of writing GPU compute code pretty nice on graphics APIs. The interface is pretty much the same “dispatch a 1-3D set of 1-3D work group indices”.

The main pain points vs dedicated compute stuff like cuda is libraries and boilerplate to manage memory and launch kernels.

Re:Learning Modern 3D Graphics Programming (2012) on Wednesday December 28, 2022 @06:47PM (#34167600)
For 3D, use a game engine. Unity, Unreal, maybe Godot depending on your perf requirements.
Re:Learning Modern 3D Graphics Programming (2012) on Wednesday December 28, 2022 @06:46PM (#34167594)
When you look at how much nicer the programming experience is for something like Metal it’s hard to blame them.

Think I’d prefer to write 3 backends for Metal level complexity APIs than a single one targeting Vulkan.

Re:Learning Modern 3D Graphics Programming (2012) on Wednesday December 28, 2022 @06:44PM (#34167572)
If someone wants to get into graphics API programming that’s probably a bit too high level, as lovely as it is.
Re:Learning Modern 3D Graphics Programming (2012) on Wednesday December 28, 2022 @06:42PM (#34167556)
I know you mean major desktop platforms, but in terms of market share for real time 3D applications, mobile and console dwarf Mac and Linux.
Not faster to integrate it into a build system or compile it though.
I suspect (1) is just because Dear ImGui is BYO graphics backend, so it doing lots of clever texture management stuff for lots of images would increase the surface area of that integration which would make it harder to use for most folks.
Dear ImGui certainly seems more popular wherever skinning isn’t a priority (though I’ve seen games use it even for user facing UI). It’s become a bit of a Wilhelm scream, love spotting it in the wild.
Re:I like Odin on Monday August 29, 2022 @04:14AM (#32635826)
Odin is probably the most productive I’ve been in a language. I went from reading the docs to having a working interactive PBD particle sim in VR via OpenXR in around 48 hours wall clock time.

I am currently writing a rigid body engine in it. It is perfect for graphics/games programming.

Re:Stable Diffusion Public Release on Monday August 22, 2022 @07:45PM (#32558780)
This is completely wrong, the digital art industry is enormous and, mind you, pretty uniformly pissed off that this model has been trained off of their non public-domain work.
Re:Negative incentives in academic research on Thursday July 21, 2022 @08:34PM (#32187057)
Another interesting factor. PhD stipends are getting gobbled up by inflation. I wonder how many people will forgo starting a research career because they want to be able to pay rent.
Re:Modern cloud for multiplayer games on Thursday June 30, 2022 @11:47PM (#31942106)
What are your egress charges?
Re:DevOps is a failure on Sunday June 26, 2022 @07:14PM (#31889007)
Why not all of the above?
Re:Bayesian Workflow (2020) on Saturday June 25, 2022 @07:30PM (#31879615)
Also worth pointing out that Bayesian methods are the only good option when performing data assimilation into large scale simulators (like epidemic models) which are typically statistically under identified by available data. So this stuff is very relevant!
Re:Bayesian Workflow (2020) on Saturday June 25, 2022 @07:29PM (#31879606)
Bayesian statistics gets tonnes of practical use. Software packages like STAN-MC get lots of use in traditional stats/econometric circles, while probabilistic programming languages like Turing, Edward, and PyMC get plenty of use elsewhere. Developing algorithms to sample from or solve for the posterior distribution given an arbitrary prior and likelihood is an active area of research. If you want stuff to google, relevant families of algorithms are Variational Inference, Approximate Bayesian Computation, Markov Chain Monte Carlo, and Particle Filters / SMC. However there’s a few newer families of algorithms that have popped up in recent years.
Re:Advice for academic refugees on Thursday June 23, 2022 @07:05PM (#31856199)
As someone about to pause an industry career for a PhD, I still think this is good advice!
That last one is a good point. The size of the “sweet spot” in an HMD isn’t discussed enough.
Quest 2 can overclock to 120Hz can’t it?
Oculus is leading the pack in wireless by offering Airplay out of the box. I’d wager that’s part of their vision too.

Also the UE5 demo running on a PS5 doesn’t mean that it could push pixels on two screens at the frame rate needed for VR.

Even as an enthusiast (5 headsets and counting) I have to agree. There have been several month periods where I didn’t use VR due to driver instability.

That being said, body tracking is what made the platform click for me. Hanging out with friends from all over the world in an immersive space feels like the future.

Re:Lorien – Infinite canvas drawing/whiteboarding app on Sunday June 12, 2022 @08:52PM (#31719778)
Dreams doesn’t quite use an octree SDF for its geometry representation.

It uses a tree of CSG edits (basically the raw stroke inputs) which is then stochastically sampled (as an SDF) to produce points on the surface that are splatted. Alex Evans’ talk on this is fantastic btw and I thoroughly recommend it.

Re:Rust without the async (hard) part on Thursday June 09, 2022 @03:39PM (#31685805)
Why isn’t imperative event loop programming more widely used? It’s a reasonably common pattern for games networking libraries like Enet, and has the added bonus that you get to design exactly how you lay out the memory of all your in flight work and therefore have it be easily debuggable.
Re:Science needs more research software engineers on Tuesday May 31, 2022 @11:50PM (#31577848)
Would love to work at a University as a Research Engineer. Would not love to do it for less than I made as an undergrad out of college. Universities can avoid not paying market, but they pay more like 40-50% of market.
This is doable on a single core in JavaScript.
It is not impressive. This workload is entirely bandwidth constrained and is more a test that your renderer isn’t doing anything stupid.

Older »