You have vision defined as a subsystem (extending SubsystemBase), but you’re instantiating it in your Drive subsystem. This is a recipe for issues later on, e.g. if you try to use vision in another subsystem.
I would remove SubsystemBase and let it just be a POJO class, then perhaps make it a singleton instead of a public constructor so you don’t end up with multiple instances.
Then you’ll likely want to fix what Peter mentioned. Only update sim stuff in sim mode as that can be a lengthy operation and will have zero benefit on the actual robot. To test if this the cause of your loop overrun issue, you can simply comment out the call to Vision.simulationPeriodic(…)
outed the call, did all your suggestions (thanks alot btw,)that was the issue, however now im getting this error:
Warning at org.photonvision.PhotonCamera.verifyVersion(PhotonCamera.java:368): PhotonVision coprocessor at path /photonvision/limelight is not sending new data.
and im unable to see the estimated position on advantage scope