Danilo wrote:
Maybe using
Code:
GetEnvironmentVariable("APPDATA")+"\PureBasic\TEMP\"
would be a better place instead general TEMP directory.
No, it's not. Just tested it, it is as slow as TEMP. It takes round about 4-5 seconds now
when started from within the IDE, same as TEMP!
I have my source code folder on d:\ and everything is fine and very fast
with compiler option "Create temporary executable in the source directory".
The same compiler option used for files in TEMP or GetEnvironmentVariable("APPDATA")+"\PureBasic\TEMP\"
is very slow.
Using the system drive for compilation seems to be the issue!?This code starts immediately:
Code:
Debug GetEnvironmentVariable("APPDATA")+"\PureBasic\TEMP\"
This code starts very slowly (4 to 5 seconds here):
Code:
If OpenWindow(0, 0, 0, 800, 600, "PicHide", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
The last code saved to d:\ and enabled compiler option "Create temporary executable in the source directory"
starts immediately (0 seconds).
