I want to log GPU temperatures to a file, probably once a second. What's the best way to handle it?
- open the file, keep it open while logging, close after logging is finished
- open, write that second's temp, close - every second
- fill a memory buffer then open/create, write, close - every buffer
There is the possibility of overheating and windows freezing (that's what this is for, to see if the GPU or CPU is too hot).
For that reason, I am looking at the second option but is that too much overhead? A game will be thrashing everything.
Opinions sought.