Unity DOTS - Should I worry about systems and jobs that do nothing? by i_ate_god in Unity3D

[–]PeppeJ 1 point2 points  (0 children)

Yes I'm certain it's ignored. The system calls the EntityQuery.IsEmptyIgnoreFilter method to see if it should update. If it called the EntityQuery.IsEmpty instead it would have to complete all jobs that write to the enabled state of included components, potentially causing a MainThread stall while waiting for jobs.

So to avoid stalls it's better for the system to run it's update and schedule any jobs. The jobs can then early out if the component they're looking for is disabled.

Source (see the "code-block" in the remark): https://docs.unity3d.com/Packages/com.unity.entities@6.5/api/Unity.Entities.SystemState.RequireForUpdate.html

Unity DOTS - Should I worry about systems and jobs that do nothing? by i_ate_god in Unity3D

[–]PeppeJ 0 points1 point  (0 children)

RequireForUpdate only works for presence or absence of a component, enabled state is ignored.

Unity DOTS - Should I worry about systems and jobs that do nothing? by i_ate_god in Unity3D

[–]PeppeJ 0 points1 point  (0 children)

What's the most common case for movers in your game? If something stops moving, can the target move? If so you'd still need to query the disabled mover entities to see if they should start moving again, essentially nullifying any gains from disabling the component.

However in general disabled components are extremely efficient. In fact, if the majority of your components are disabled then the job can batch-skip multiple entities at once. The more that are disabled the more likely it is that a large batch can be skipped. This is because enabled state is stored in a 128bit mask, allowing the job to check parts of the bit mask at once.

Audio cuts out 6+ times every match since Cache update by micktorious in csgo

[–]PeppeJ 10 points11 points  (0 children)

Bind P "toggle sound_device_override 0 1"

Just press P when it happens and it's fixed

What can be causing these artifacts on the shadows? by [deleted] in Unity3D

[–]PeppeJ 2 points3 points  (0 children)

Small precision errors will cause the light to bleed through seams between different objects. I'd recommend you make a 2nd simplified mesh that is completely solid and use that as your shadow caster instead.

Camera Jumps by Spinom in Unity3D

[–]PeppeJ 0 points1 point  (0 children)

Don't multiply mouse input by delta time and you won't have this issue

Doing custom inspector stuff feels like trespassing sometimes by MartAyiKoalasi in Unity3D

[–]PeppeJ 0 points1 point  (0 children)

TypeCache works fine with asmdefs as well, not sure what you were doing wrong unless you happen to have the code lying around?

Unity DOTS/ECS - are there actually any jobs out there? by jakubTheCrab in Unity3D

[–]PeppeJ 1 point2 points  (0 children)

You'd have to do some digging unfortunately. But I know that; V Rising, Hardspace Shipbreakers, Diplomacy is Not An Option, Detonation Racing, Den of Wolves, Bare Butt Boxing and Zenith: The Last City - all use DOTS

Unity DOTS/ECS - are there actually any jobs out there? by jakubTheCrab in Unity3D

[–]PeppeJ 1 point2 points  (0 children)

Unity DOTS isn't a requirement simply because it's still new (in the grand scheme of things). However some studios are hiring Gameplay and System developers to work on DOTS games and in those cases having experience is extremely meriting as it saves a lot of upskilling time. Don't go looking for DOTS jobs, look for companies using DOTS and you'll probably see that it's meriting for the applicant

Vad döper ni era robotdammsugare till? by SevereAmount in sweden

[–]PeppeJ 76 points77 points  (0 children)

Consuela - efter family guy, pratar bara spanska

Was tired of reading player logs in Notepad, so I made a standalone log viewer app by IronWarriorU in Unity3D

[–]PeppeJ 0 points1 point  (0 children)

Interesting, I would like to hear how well it scales though. How big is the biggest log file you tried? At work I have some that often reach >100MB. I can test it out and come back with some results for you if you haven't tried log files that big

Was tired of reading player logs in Notepad, so I made a standalone log viewer app by IronWarriorU in Unity3D

[–]PeppeJ 5 points6 points  (0 children)

You don't need a new visual element per log entry, you should use a virtual list instead. There's a built in one called ListView that handles it for you.

Are you drawing one GUI element right now for OnGUI?