Amerio.Stephane Posted June 9, 2020 Share Posted June 9, 2020 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
morbid Posted June 11, 2020 Share Posted June 11, 2020 Hello Stephane, Potentially these calls can be slow, especially when you're checking multiple files. We'll see how documentation can mention this. Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Amerio.Stephane Posted June 11, 2020 Author Share Posted June 11, 2020 Thanks, we'll put these in a thread then. Link to comment
Recommended Posts