News for hackers. Stuff that matters.
Re:Add 10 GbE to your system with an M.2 2280 module by spacedcowboy on Wednesday January 19, 2022 @11:57AM (#29996273)
I use a map-maker app for creating game levels, the data is stored on a central server when it's saved.

A 4kx4k map layer section, in RGBA is 64MB. Each layer on the map has multiple types of mask applied (brushed alpha, brushed noise-function,...) so there's another 64MB of XXXX data per layer. A map can have (say) 10 layers on it, so we're up to 1GB, and then there's the data for ephemeral layers ("stamped" images at co-ords and scale, alpha,rotation). The stamps themselves are usually stored in an 8kx8k layer so that's another 256MB

When your 'save' action is 1.5GB of data, a 10Gbe network is much preferred over a 1 Gbe network...

All of this is rendered down for production of course, but during development, each layer is kept separate along with its masks.

Re:Add 10 GbE to your system with an M.2 2280 module by chipsa on Wednesday January 19, 2022 @03:19PM (#29999424)
> Each layer on the map has multiple types of mask applied (brushed alpha, brushed noise-function,...) so there's another 64MB of XXXX data per layer.

Wait, why are the masks RGBA instead of grayscale?

Re:Add 10 GbE to your system with an M.2 2280 module by spacedcowboy on Wednesday January 19, 2022 @05:02PM (#30000913)
8 bits per mask, more than one mask, packed into a 32-bit value.

1st one is typically a brush-in one - basically just Alpha brushed in from various alpha-brushes over the map

2nd can be a noise function, where the 1st alpha mask is multiplied by the second to get a brushed noise, and the noise might be useful for randomly-shaped patches of different-colored grass in a scene

3rd might be a shadow mask, where any objects "stamped" on top apply a default shadow at a given angle, and that default shadow is written into this channel. Then the map-maker can alter those if (for example) a shadow hits a wall.

Then there's the shader mask - so you can select a given shader for a given area of the map. These'll all be batched up later, but if you want flowing water, brush in where you want the water shader to be applied. Same for smoke, lava, etc. etc.

Re:Add 10 GbE to your system with an M.2 2280 module by justsomehnguy on Wednesday January 19, 2022 @05:25PM (#30001245)
OpenVPN has support for compression. Makes me wonder if it would work in your case.