Jump to content

FileSystem performance question


photo

Recommended Posts

Hello,

Just wondering about the potential performance issues with FileSystem API.

Is it ok/unadvised to call FileSystem::isFileExist() and FileSystem::getMTime() in the update() callback?

Currently, we're calling these to check for external modification of a file and reparsing it. Taking  a perf hit when reparsing is not an issue, as the file should rarely change, but I wonder if checking every frame for a file system modification is OK? Or should it be definitively put in a separated thread? or is it not worth the hassle?

Thanks!

PS: these kind of perf consideration could be part of the doc ;-)

Link to comment
×
×
  • Create New...