Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] what could be the negative consequences?

[DiscordArchive] what could be the negative consequences?

[DiscordArchive] what could be the negative consequences?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
01-30-2024, 07:48 AM
#1
Archived author: IslJack • Posted: 2024-01-30T07:48:29.660000+00:00
Original source

what could be the negative consequences?
rektbyfaith
01-30-2024, 07:48 AM #1

Archived author: IslJack • Posted: 2024-01-30T07:48:29.660000+00:00
Original source

what could be the negative consequences?

rektbyfaith
Administrator
0
01-30-2024, 07:50 AM
#2
Archived author: Northstrider • Posted: 2024-01-30T07:50:04.520000+00:00
Original source

the problem that you are running into is the so called grid. The world is cut into small chunks and when you are not inside of one of these chunks, it wont be updated. so only when you are nearby the npc, it will work. SetActive is a workaround that will mark the npc as 'I am important, so keep the grid cell loaded and update it until I'm not longer active or removed from world'
rektbyfaith
01-30-2024, 07:50 AM #2

Archived author: Northstrider • Posted: 2024-01-30T07:50:04.520000+00:00
Original source

the problem that you are running into is the so called grid. The world is cut into small chunks and when you are not inside of one of these chunks, it wont be updated. so only when you are nearby the npc, it will work. SetActive is a workaround that will mark the npc as 'I am important, so keep the grid cell loaded and update it until I'm not longer active or removed from world'

rektbyfaith
Administrator
0
01-30-2024, 07:50 AM
#3
Archived author: jackpoz • Posted: 2024-01-30T07:50:56.412000+00:00
Original source

that you see cpu usage even with 0 players online and wonder "why is it using so many resources with 0 players online ?"
rektbyfaith
01-30-2024, 07:50 AM #3

Archived author: jackpoz • Posted: 2024-01-30T07:50:56.412000+00:00
Original source

that you see cpu usage even with 0 players online and wonder "why is it using so many resources with 0 players online ?"

rektbyfaith
Administrator
0
01-30-2024, 07:51 AM
#4
Archived author: jackpoz • Posted: 2024-01-30T07:51:24.041000+00:00
Original source

and if every NPC would have setActive, it would lag too much as the whole continent will have to be updated
rektbyfaith
01-30-2024, 07:51 AM #4

Archived author: jackpoz • Posted: 2024-01-30T07:51:24.041000+00:00
Original source

and if every NPC would have setActive, it would lag too much as the whole continent will have to be updated

rektbyfaith
Administrator
0
01-30-2024, 07:51 AM
#5
Archived author: IslJack • Posted: 2024-01-30T07:51:40.371000+00:00
Original source

not all, just minions
rektbyfaith
01-30-2024, 07:51 AM #5

Archived author: IslJack • Posted: 2024-01-30T07:51:40.371000+00:00
Original source

not all, just minions

rektbyfaith
Administrator
0
01-30-2024, 07:51 AM
#6
Archived author: IslJack • Posted: 2024-01-30T07:51:46.488000+00:00
Original source

to get point
rektbyfaith
01-30-2024, 07:51 AM #6

Archived author: IslJack • Posted: 2024-01-30T07:51:46.488000+00:00
Original source

to get point

rektbyfaith
Administrator
0
01-30-2024, 07:51 AM
#7
Archived author: jackpoz • Posted: 2024-01-30T07:51:51.255000+00:00
Original source

when you use setActive you keep active the whole area around the npc, not just that single npc
rektbyfaith
01-30-2024, 07:51 AM #7

Archived author: jackpoz • Posted: 2024-01-30T07:51:51.255000+00:00
Original source

when you use setActive you keep active the whole area around the npc, not just that single npc

rektbyfaith
Administrator
0
01-30-2024, 07:52 AM
#8
Archived author: IslJack • Posted: 2024-01-30T07:52:04.491000+00:00
Original source

ok, i got it
rektbyfaith
01-30-2024, 07:52 AM #8

Archived author: IslJack • Posted: 2024-01-30T07:52:04.491000+00:00
Original source

ok, i got it

rektbyfaith
Administrator
0
01-30-2024, 07:52 AM
#9
Archived author: IslJack • Posted: 2024-01-30T07:52:08.473000+00:00
Original source

ty
rektbyfaith
01-30-2024, 07:52 AM #9

Archived author: IslJack • Posted: 2024-01-30T07:52:08.473000+00:00
Original source

ty

rektbyfaith
Administrator
0
01-30-2024, 07:52 AM
#10
Archived author: Northstrider • Posted: 2024-01-30T07:52:11.667000+00:00
Original source

if your npc is a temporary spawn that will despawn after a given amount of time, SetActive is fine and save to use
rektbyfaith
01-30-2024, 07:52 AM #10

Archived author: Northstrider • Posted: 2024-01-30T07:52:11.667000+00:00
Original source

if your npc is a temporary spawn that will despawn after a given amount of time, SetActive is fine and save to use

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)