Update 26.09.15

A new drawing API, razor-sharp GPU text, improved host migration, game hover cards, and Block Party. Plus mesh editing tools, performance gains, Mac and Linux improvements and a price drop.

Painter is a small utility struct that replaces HudPainter and the panel rendering system. It's now used to render the whole panel system and you can use it to render things like UI, HUDs, panels and world panels manually using a common sense API.Shapes are generally SDF rendered so they are totally antialiased and beautiful.

We have the ability to draw Arcs, Arrows, Bezier Lines, Capsules, Circles, Credcents, Crosses, Hearts, Lines, Poly Lines, Polygons, Quads, Rects, Rings, Stars, Ticks and Triangles..

We support a bunch of different strokes. Inside, center and outside. Solid, dashed, dotted..
And fill can be a color, an image, a radial gradient, a linear gradient or a conic gradient..
Line rendering supports different miters, including bevel and round, with a miter limit..
This all uses a batching system under the hood, so performance is actually pretty insane. This demo is all rendered in one single draw call.
Here's what the code looks like, in a component..
void Update()
{
	using var painter = Camera.BeginHud();

	var color = Color.Green;
	painter.Fill = Fill.LinearGradient( Color.Red, Color.White, 45.0f );
	painter.Stroke = Stroke.Solid( color, 3 );
	painter.Circle( new Vector2( 100, 100 ), 50 );
}

This change also makes IPanelDraw now redundant, a you can now just override the OnDraw( Painter painter ) function.
Text Rendering has been the oldest component of our engine, it worked well, but it had it's caveats, specially for being generated from the CPU, was blurry on any transform.

Since we are going to focus on using our UI system for tools, we ought to make text rendering awesome.

Continuing from my work from a few hackweeks back, I have fully implemented GPU Text Rendering based on the Lengyel algorithm to the engine while retaining all the current API, curves are passed to GPU and all drawn on the shader.

You don't need to do anything, it just works, supports CJK, emojis, shadows, outlines, and everything that the previous system supported, and looks unbelievably sharp even from a millimeter away

This ends up being significantly faster than our previous system while always looking awesome.

All still rendered using our UI renderer in one draw call
When the host leaves, their snapshot state now gets restored on the new host, host-only objects included. If your state survives a late join, it should survive host migration.
Running code doesn't carry over though, so anything mid-flight needs resuming on the new host. There are analyzers to help you check that your state and behaviour are migration safe.

You can find more detailed information in the docs.
We added hover cards to the menu. Hover a game and you can quickly glance at the info you need to decide whether to play.

We've also reworked the game modals and toasts elsewhere in the menu. Making game interactions like Reviews, Favorite, Hide Game... more visible and consistent.
Changing graphics settings in the editor previously meant launching a scene and opening the in game settings menu.
There's now a dropdown in the viewport controls to switch quality presets directly. 
Here's a new game using the 2d sprite system for you to check out:
https://sbox.game/facepunch/blockparty/
It's got leaderboards with replays, a level editor with workshop support, gif exports, and some other fun features. 

GameObject cloning is now ~2.6x faster with about 38% fewer allocations in synthetic tests. Anything spawning prefabs at runtime benefits.
In our actual tests it's less significant because the main bottleneck here for cloning is spawning models collisions etc.. the actual serialization overhead of the cloning was already quite low.

Network snapshots are also cheaper on the host. Scene state is still captured on the main thread, but JSON, blob and packet encoding now runs on workers, so players joining or loading in cost the host a lot less.
A bunch of Mac and Linux improvements:
  • Mac fixes cover game-view input, editor DPI scaling, Finder folder opening and scene staging.
  • Geometry shader support for Mac, fixes Highlight component crashes; procedural render callbacks also have a lifetime fix.
  • Code editor detection and the publish/export controls work on Mac and Linux.
  • Linux native builds use Steam Linux Runtime 4.0
  • Colour emoji fallback uses Twemoji on Mac and Linux.

I've improved the open source workflow a bit more, adding a simpler Setup.bat and now Setup.sh for Linux & Mac.
The Setup.bat now has progress reporting, mainly for the download steps as you had no idea how much or how long you were downloading for before previously.

On top of that the setup now installs Git hooks - each time you pull or switch branch the download step is run automatically, meaning you don't have to run Setup.bat every time.

Redesigned the storage settings page.

I've implemented the CSS property overscroll-behavior which lets you both disable the edge bounce of scrolling and also prevent scrolling cascading to the parent panel.
I halved the price from $20 to $10 this week.

There has been speculation on twitter that this was a desperate attempt to get more players. Well fucking DUH. Of course it is. We need more players, we don't have enough players. We're being told in reviews constantly that the price is too high, so we're going to lower it to try to encourage more people to play.

Our primary goal on the platform right now is to get more active players. We're improving the platform, encouraging the right type of games, encouraging better discovery and improving performance. We're pushing in a bunch of different directions to achieve a higher active player count, and this is one of them.
matt
Facepunch
JoinedApr 2021 Posts276 Score2,690
Update 26.09.15 : news/update-26-09-15
The Relentless
Member
JoinedApr 2026 Posts17 Score455
 Great update! 
Trundler
Member
JoinedOct 2021 Posts129 Score1,011
Another great blog post!
zxcdulsed
Member
JoinedAug 2023 Posts33 Score1,445
Thanks for the update
Titanovsky
Member
JoinedSep 2021 Posts356 Score5,853
 The biggest news is of course the price drop. Not a discount, not a free weekend. Idk how to feel about it, this approach makes me a bit nervous. Idk who was pushing harder for the $20 price, Garry or Alistair, but it was already pretty clear that it's way too much for a platform with insanely little content. We saw that in April.

As for $10, it's the burger theory, but will it work? Probably. I hope Facepunch has everything under control, and that in December we won't see s&box go free, because that could only mean one thing, that things are going badly.

Lorenz, the light theme is mvp!
Patrick Jr.
Member
JoinedApr 2021 Posts49 Score4,775
Another fantastic post ❤️
Zontax
Member
JoinedMay 2023 Posts102 Score8,962
How wonderful!
RuubDev
Member
JoinedAug 2026 Posts2 Score2,815
Garry ❤️
edited 2 months ago#9
Skylor Beck
Member
JoinedJan 2023 Posts16 Score3,307
BaseCombatWeapon is missing it's Crosshair code with the new painter. Every weapon in S&Box has no crosshair now, unless the devs made their own before this update.
Missing
Member
JoinedJul 2022 Posts80 Score3,220
W update
herruardo200
Member
JoinedFeb 2023 Posts3 Score350
Actually, thank You for the price decrease! I was able to gift the Game to a friend just now, so I hope this Will be the case for other people.
wired
Member
JoinedJul 2024 Posts4 Score935
9 Ball Brawl spotted ❤️
G+
Member
JoinedFeb 2024 Posts83 Score7,545
awesome 
ツ
Member
JoinedDec 2024 Posts59 Score16,049
No more sale after the jam it seems like? 
every #BigBrain
Member
JoinedAug 2022 Posts1 Score295
goood

Mister Generic
Member
JoinedOct 2021 Posts12 Score1,135
LOL that last one tho
darkfated
Member
JoinedSep 2021 Posts19 Score375
good patch
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.