hey I hate to be a bother but this code here is similiar to what I need in my game engine and it's causing openGl errors.
It's always seems to be related to array.load.
I don't know what's going on, can you please look into this?
I have a really big game engine that I'm building with AppGameKit studio which depends on being able to load and store chunks,
fairly often. Thank you.
// Project: GLCRASH
// Created: 20-02-18
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "GLCRASH" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 60, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
type data
x as integer
y as integer
endtype
#constant false = 0
#constant true = 1
for x = 0 to 500
for y = 0 to 300
otherthing(x, y)
next y
next x
do
Print( ScreenFPS() )
Sync()
loop
function otherthing(xx, yy)
file = false
d as data[32, 32]
if GetFileExists(str(xx)+","+str(yy)+".txt")
file = true
for x = 1 to 32
for y = 1 to 32
//needless call
d.load(str(xx)+","+str(yy)+".txt")
next y
next x
endif
if file = false
d.save(str(xx)+","+str(yy)+".txt")
endif
print("Syncing x/y-> " + str(xx) + "," + str(yy))
endfunction
function something()
t as data[32, 32]
endfunction t