Skip to content

RbxNative v0.3.3

Choose a tag to compare

@github-actions github-actions released this 04 Dec 21:47
· 103 commits to dev since this release
cc12e8b
  • Big maps got lighter, round two. The hit-test fix left a few things on the table and I went through all of them. Meshes are frustum culled now, see-through ones and water too, and every shadow map culls what it draws against its own light instead of the camera, so turning away from a big detailed map of mine drops it from a million triangles a frame to nothing, and standing in the middle of it draws a half to a tenth of what it did. Same pixels as before, I diffed every view. Orbiting the camera doesn't rebuild the docks and bars around the viewport every frame anymore either, only the viewport redraws, so a UI frame went from 2.9 to 2 ms on my test display. Hovering doesn't read every part from the place on each mouse move anymore (1.3 ms to 0.01 ms on that map), and the first hover after a mesh loads doesn't build hit-test trees on the spot, they grow on a background thread (7.5 ms to 4.8 ms). cargo run --example views counts what a frame draws from five views, and scripts/bench.sh reports first hover. (@chteau)
  • Hovering and dragging over a big detailed map doesn't choke the editor anymore. I profiled it on a big detailed map of mine and the renderer wasn't the problem at all, it draws that map at 200 to 350 fps headless on my 4070. The UI thread was. Every cursor move over the viewport runs a hit test for the hover outline, and that tested the ray against every single triangle of every MeshPart in the place, then ran up to 100 more raycasts over the hovered mesh to find its nearest edge. On that map it was 15 ms per mouse move, plus 4 ms or more for the edge, and drags paid it on every step too. Now a ray first checks each mesh's box, and a big mesh gets a bounding volume hierarchy the first time a ray reaches it, so only the triangles near the ray get tested. Same hits as before, the tests check it triangle for triangle. On that map the hover hit test went from 15 ms to 1.3 ms and the edge probes from up to 17 ms to under 0.1 ms. On a synthetic stress place (2,000 dense rocks on a dense ground, cargo run --example stress_place) the hit test went from 69 ms to 0.7 ms and hovering went from 9 fps to 20 to 35 fps, which is as fast as my test display goes. scripts/bench.sh reports it as hover pick now. (@chteau)
  • Local has a label, and the Description box lost its gap. The Local orientation toggle was the only icon in the tools row with no name under it, so it's a normal tile now, labelled Local. In the New experience form the Description box left room for an icon it didn't have, which looked like a big empty gap before "Optional". It has its icon now, like Name and Creator, so the three fields line up. (@chteau)
  • RbxNative also speaks German, Spanish, Brazilian Portuguese, Breton and Pirate. Every string got translated into Deutsch, Español, Português (Brasil) and Brezhoneg, using the words Roblox's own localized Creator Hub uses (Ort, lugar, Caixa de Ferramentas...), and there's a glossary in i18n/README.md so it stays consistent. Breton has no Roblox localization and nobody on our side speaks it natively, so it shows as "Brezhoneg (beta)" until a Breton speaker reads it. Pirate English is just for fun ("Stow yer booty"), you only get it by picking it, never from your OS. Plurals follow each language's real rules now, Breton's one/two/few/many too. I ran the editor in every language and shortened what clipped. For anyone who wants to start a new language, scripts/i18n-draft.py drafts one through a LibreTranslate server you run yourself and marks it "(machine translated)" in the picker. (@chteau)
  • Getting kicked out of Team Create by your own account gets a real box, like Studio. When you open the place in Studio (or another RbxNative) on the same account, Roblox closes the older session. Studio says so with a "Multiple Sessions Detected" box (RCC-276), and RbxNative only had a line in the Collaborators dock you could easily miss. Now it shows the same box, in our own dialog style, with Studio's exact text copied off real Studio, a line saying it was your account in another session, and Rejoin and Close buttons. Rejoin does what the dock's Rejoin does, and the dock keeps its status line. I checked both ways with real Studio on the test place. The box and the "your account was already in the session" note are in French too now, they slipped past the translation files. (@chteau)
  • RbxNative speaks French now. All of the editor's own text moved into translation files: menus, the ribbon and its tooltips, every dock, Settings, Home, the wizards, dialogs, toasts and Output messages. English and French ship first. It picks your OS language on its own, and Settings › Appearance › Language lets you pick another one, the switch happens right away without a restart. Roblox class and property names, Luau and your place stay as they are. A missing French string just shows the English one. Want your language in there? crates/rbx_studio/i18n/README.md walks you through it. (@chteau)
  • Joining Team Create tells you when it just kicked your own Studio out. I tried it with real Studio already in a Team Create place on the same account. RbxNative joined fine, and Studio got a "Multiple Sessions Detected" box (RCC-276) without a word on our side, so you could easily miss that your Studio session was gone. Now, if your account was already in the session somewhere else, RbxNative says so once it's connected and tells you what Studio shows. The other way round was already fine: Studio taking the session back gives RbxNative the "your account joined from somewhere else" message with a Rejoin button. (@chteau)
  • The Studio themes' ribbon is 59px like real Studio, not 71. The theme asked for 59 but the tiles' padding pushed it back to 71. I measured Studio's ribbon pixel by pixel: the icon starts 9px under the ribbon's top, the label line 6px under the icon, and there's 6px left under the label. The strip padding, tile padding and icon to label gap are theme sizes now (ribbon_pad_top, ribbon_pad_bottom, ribbon_tile_pad, ribbon_tile_gap), and the two Studio themes use Studio's numbers, so icons and labels land on the same rows as in Studio. Icon and label still sit together in the middle of the tile and never touch the edge, and Default didn't move a pixel. (@chteau)
  • .rbxlx saves write every Content property, like Studio does. I saved a place from real Studio as .rbxlx to see what it writes for an image or mesh nobody set: every Content property shows up, null when it's empty and the default (the sparkles texture on a ParticleEmitter) when the class has one. Our writer skipped the ones a part didn't hold, so it now writes the same thing Studio does. It leaves the Content out when the old Id property next to it (TextureID, SoundId and friends) is already there, because Studio flat out refuses to open a file where the two disagree. Reading an empty uri now gives no content instead of an empty link, which is how Studio reads it too. (@chteau)
  • tostring on sequences prints what Studio prints. In Local Run, tostring(NumberSequence.new(0, 1)) gave a table address instead of 0 0 0 1 1 0 . NumberSequence, ColorSequence and their keypoints now print their numbers like Studio does, each one followed by a space, and NumberRange got the same number style (0.333333 2 and not 0.33333334 2 ). Checked every case against real Studio 0.749's Command Bar, small, huge and negative numbers too. (@chteau)