This guide assumes you have some familiarity with MLX and want to make your MLX model or algorithm as efficient as possible.
The guide covers the following:
This guide assumes you have some familiarity with MLX and want to make your MLX model or algorithm as efficient as possible.
The guide covers the following:
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getNativeFramebufferScaleFactor | |
| window size reports as 800 x 452, flatmode, mid width on both devices. | |
| GO - Qualcomm 530 chip | |
| framebuffer size: | |
| - default: 2048 x 1024 | |
| - max: 2867 x 1433 | |
| - native multiplier: 1.399999976158142 |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| private class TextureDownloader | |
| { | |
| public WWW www; | |
| public string url; | |
| public Texture2D tex; | |
| public string atlasName; | |
| } | |
| IEnumerator _UpdateAtlas(List<TextureDownloader> texIndex) | |
| { |
| IEnumerator _WaitForAllDownloadsToFinish(List<WWW> wwws, float checkInterval = 1f, string helperName = "") | |
| { | |
| yield return new WaitForEndOfFrame(); //start checking next frame, to let the downloads start | |
| while (true) | |
| { | |
| var done = true; | |
| foreach (var r in wwws) | |
| { | |
| done = done & r.isDone; | |
| if (r.error != null) |
| [MenuItem("GameObject/Create Empty %#n", priority = -1)] | |
| static void menu_GameObject_CreateEmpty() | |
| { | |
| //Debug.Log("menu_GameObject_CreateEmpty"); | |
| Undo.RegisterSceneUndo("Create Empty"); | |
| GameObject go = new GameObject("GameObject"); | |
| go.transform.parent = Selection.activeTransform; | |
| go.transform.localPosition = Vector3.zero; | |
| go.transform.localRotation = Quaternion.identity; | |
| go.transform.localScale = Vector3.one; |
| UILabel exampleLabel; | |
| Vector3 textSize; | |
| textSize = exampleLabel.font.CalculatePrintedSize(exampleLabel.text, false, UIFont.SymbolStyle.None)*exampleLabel.font.size; |
| using UnityEngine; | |
| using System.Collections; | |
| //a series of helper functions to help work with the hydra closer to how we work with the Input.Mouse* rig. | |
| public class Hydra : MonoBehaviour{ | |
| #region Singleton Code | |
| //---------------------------------------------------------------- | |
| // Singleton code |