Table of Contents

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
object
NativeFileWatcher
Implements

Properties

EnableRaisingEvents
FallbackPollIntervalMs

Minimum interval between checks on fallback platforms (ms).

Filter
IncludeSubdirectories
Path

Methods

Dispose()

Events

Changed
Created
Deleted
Renamed