I doubt that it does, but it fires every frame as it needs to. Because the fog is rendered every frame. If it is lagging it's because the value you set the density to.
The event gives you access to an Entity the Entity knows what World it is in. The World knows what Dimension it represents. Think you can solve it from there.