11-07-2023, 03:39 PM
@dano Here's something to try:
1) GO into source/ide/ide_methods.bas and navigate down to SUB idesave.
2) Replace that sub with this one:
3) Save that and then navigate up to the /source folder and recompile QB64pe.BAS. (Make certain the "Export EXE to Source Folder" option is **DISABLED***.)
4) This should now make you a QB64pe(2).exe file, which you can run and see if it corrects the issue for you.
If the fix works, I'll push it into the repo later, and we'll start doing binary file writes with the next release. If it doesn't help, then you know the issue lies somewhere else and you'll just have to keep digging to see what might be affecting the performance for you.
1) GO into source/ide/ide_methods.bas and navigate down to SUB idesave.
2) Replace that sub with this one:
Code: (Select All)
SUB idesave (f$)
ideerror = 6
OPEN f$ FOR OUTPUT AS #151: close #151
OPEN f$ FOR BINARY AS #151
ideerror = 1
FOR i = 1 TO iden
a$ = idegetline(i)
if INSTR(_OS$, "WIN") then
outfile$ = outfile$ + a$ + chr$(13) + CHR$(10)
else
oufile$ = outfile$ + a$ +chr$(10)
end if
NEXT
PUT #151, 1, outfile$
CLOSE #151
IdeSaveBookmarks f$
ideunsaved = 0
END SUB
3) Save that and then navigate up to the /source folder and recompile QB64pe.BAS. (Make certain the "Export EXE to Source Folder" option is **DISABLED***.)
4) This should now make you a QB64pe(2).exe file, which you can run and see if it corrects the issue for you.
If the fix works, I'll push it into the repo later, and we'll start doing binary file writes with the next release. If it doesn't help, then you know the issue lies somewhere else and you'll just have to keep digging to see what might be affecting the performance for you.