Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Weirdest code trick you have seen

Discussion in 'Scripting Dev Blitz Day 2023 - Q&A' started by DevDunk, Feb 22, 2023.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,455
    (not such a serious question)

    What is the most absurd code trick or optimization you have seen that just blew you out of the water?

    Something that is just mind-boggling that it works or something fun which you never expected
     
  2. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    A few years ago I did a project where I was calculating the absolute positions of stars (using Right Ascension, Declination, GPS coordinates & Time).

    In MonoBehaviours, android devices were struggling to do roughly 300 objects (spread out over 1 second).
    With ECS, Jobs & Burst, I could do over 9000 stars in < 2ms.

    So yeah.. That kind of blew me away..