Closed 19PHOBOSS98 closed 11 months ago
Ok i think i know why this happens, but i will need to test it. How big was the radius?
I'm not sure i can do anything about the speed though :skull:
Range was 500. It might help keep the scan table small if the scan function had a way to filter out projectiles and dropped items. Maybe even a way to filter out players and ships as well?
Tbh, I usually just need player and ship data for my stuff... AdvancedPeripheral had a separate block for scanning non player entities and that had a cooldown timer per scan...
Maybe having a separate scanning function for players, ships and entities might help minimize lag?
Hmmm... Alr I've looked at how AP looks for players, and I can implement something like that
Added timeout for entity scanning to prevent "lag", added 3 peripheral methods for separately scanning for ships, entities and players. Will be added in the next release.
Hello! Does the Radar Block detect item entities and projectile entities as well?
This suddenly showed up when my guns were firing (all 16 of them):
I think the radar had a hard time scanning all of the projectiles and dropped empty shell casings. The computercraft thread lagged a bit too when it happened. By "lag" I mean right-clicking on the terminal didn't take effect after a few minutes later...
maybe adding a filter mode for the radar.scan() function might help?
Found this in the logs too: