How frequent should checks for an anticheat be?

For anticheats, how frequent should checks be? I’ve seen some games use a 0.1 or so check interval, but I’d want to use a Heartbeat. Is that too expensive for performance, though? A full server in my game would have 40-45 players. For more context, I would be checking position every frame (speed and flying), and also raycasting every frame (no-clipping). Is that efficient enough to be ran every frame?

Think about the audience, the playerbase, that plays your games.

Depending on the performance cost, you may have to adjust the rate. If it’s too expensive, the playerbase may not enjoy the serverlag that’s occuring every time.

This is a server-side anti-cheat, which will take care of most common flying and speed hacks. My game isn’t an FPS game, but the guns are extremely detailed in it. Although I wasn’t really gonna do an anticheat for guns because most things like that which require client input to not get false positives make trying to make an anticheat for that impossible.