Class NativeFileWatcher
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Drop-in replacement for FileSystemWatcher that avoids Mono's
DefaultWatcher polling (which allocates ~300 KB/frame of GC).
On Windows: Uses ReadDirectoryChangesW (event-based, zero-GC steady state).
On other platforms: Falls back to periodic polling with controlled interval.
Events fire on a background thread, same as FileSystemWatcher.
public sealed class NativeFileWatcher : IDisposable
- Inheritance
-
objectNativeFileWatcher
- Implements
Properties
- FallbackPollIntervalMs
Minimum interval between checks on fallback platforms (ms).