Можете подсказать фишки по умному использованию DOTween? Так сказать поделиться

опытом, а то я вообще не уверен в том, как я его использую

9 ответов

10 просмотров

Главная фишка перейти на PrimeTween 😅

Console.WriteLine("Черепашка");
А почему так?

Zero-allocation animations, shakes, delays, and sequences. Installs as a Unity Package Manager (UPM) package. Simple and consistent API. Animate anything with one line of code. Full source code is available. Reliable, covered by tests, and ready for production.

А куда оно тратит 66КБ?

Артём- Автор вопроса

С праймтвин меньше фпс 👀

Alex Silaev
А куда оно тратит 66КБ?

DOTween made a long way in its development and brought a lot of value to the game industry. But for almost 10 years it accumulated a lot of technical debt and inconsistencies. DOTween gives a huge heads-up for game jams and early prototypes, but when a project becomes bigger, its quirks become to pile up. And while with years it was getting better with memory allocations, it still allocates memory on every animation start and puts a lot of pressure on the garbage collector. PrimeTween is simple, consistent, covered by tests, and behaves exactly like you would expect. High performance and zero allocations out of the box. PrimeTween and DOTween don't conflict with each other and can be used in one project. So you can try PrimeTween in your existing project without breaking anything. Performance comparison In real-world scenarios, PrimeTween is up to 30% faster than DOTween in terms of average runtime performance. But this is not the most important performance indicator most of the time. Where PrimeTween really shines is in the absence of memory allocations. PrimeTween never allocates heap memory and never produces garbage collection spikes. Create millions of animations, delays, and sequences with 0KB of GC and without hiccups! Another important performance factor is frame pacing. To create a smooth experience for a user, frames in your game should be evenly spaced in time. A one-frame hiccup is still noticeable to the eye even when the profiler tells that the game runs at an average of 60 FPS. In this image, you can see that PrimeTween evenly distributes the load maintaining smooth frame times, while DOTween produces a lot of fluctuations. The testing scenario is identical in both cases.

https://youtu.be/Y8cv-rF5j6c?si=VAm4soWJNKWfjlxi Вот норм видео, если не переубедили на другое перейти)

Похожие вопросы

Обсуждают сегодня

Всем привет. Подскажите, почему не меняется значение поля при переключении сайта?
Alexander Peterikov
11
Можно ли загрузить скрипт py в бота чтобы он работал по нему? как это сделать?
huskadam #RCC Фанат? @hitlerpvp
13
'frakturBold' => ['𝖆', '𝖇', '𝖈', '𝖉', '𝖊', '𝖋', '𝖌', '𝖍', '𝖎', '𝖏', '𝖐', '𝖑', '𝖒', '𝖓', '𝖔', '𝖕', '𝖖', '𝖗', '𝖘', '𝖙', '𝖚', '𝖛', '𝖜', '𝖝', '𝖞', '𝖟', '𝕬', '𝕭', '𝕮', '𝕯'...
Roma
4
Добрый день, не подскажите, если в OC-V3 поменять страндартную директорию /storage/ на /storage2/ - не будет сильно много проблем ?
Max Dubovsky
32
Ребят, а за скок можно впарить анон чат с апишкой и веб админкой ?
Eugene Неелов
15
Цвет аватарки с буквой же зависит от айди? Как может быть такое, что этот цвет поменялся?
Lencore
2
Приветствую друзья, подскажите сколько в среднем стоит на данный момент создать тг бота который будет как магазин? Показывать ассортименты доставлять заказы и тд? Все по станд...
Eugene
3
Каким то образом можно определить ширину экрана пользователя перед загрузкой partial-а? Надо рассчитать ширину кадров слайдера для ресайза картинок для container-fluid.
Point 111
22
Ты просто гитлеровскую эстетику плохо понимаешь. Он же всё под Цезаря делал. А это как бы запрещённый приём в политике. Пиджаки они зачем все носят? Чтобы показать что они тип...
Ivan Kropotkin
4
@dblackCat Привет. Это же твой плагин? https://octobercms.com/plugin/catdesign-productbundle
Alexey Yakimov
5
Карта сайта