I have to ask you again and I hope I don't annoy you. First concerning the speed calculation:
Quote: "That's hard to say, you just need to adjust the timing in the code section. The timer being used is the default (precise to only 1ms) timer. So there's rounding errors and such going on there when it reports time. Not a big deal. Just turn 33 to 32 or some other lower number. Also our discussion at the time revealed that DBP Bugs/Quirks were causing some of the examples to interfere with each other. So try and run the examples on their own completely separately for best results."
When I change the number from 32 to 3 I get 33 fps. See below:
Function SyncScreen()
scFrameTime = 3 - Abs(Timer() - g_LastSyncTime)
While scFrameTime > 0
Sync Sleep 1
scFrameTime = 3 - Abs(Timer() - g_LastSyncTime)
EndWhile
Sync SLeep 0
sync
g_LastSyncTime = Timer()
EndFunction
My question now is if this speed will be valid for all CPUs/GPUs if they can handle it? If they are too slow they get less fps that is OK.
I mean sync rate 30 means a max. of 30 fps and that worked.
I just want to make sure if I use this code and get 33 fps now that nobody else later gets 76 fps and would play the game too fast. I hope you understand what I mean.
Now for the topic with the reloaded media again. I tried your example but it didn't work for me.
http://forum.thegamecreators.com/?m=forum_view&t=202959&b=1
The example itsself worked even on Fullscreen. I included it into my programm and so far it works as long as I don't use a matrix. I have matrix 1 and matrix 2. If I try to use them it will not work.
Have you ever tried this solution with a matrix or two?
Here take this as an example:
if matrix exist(1)=0
make matrix 1,matrix_width,matrix_height,matrix_xtiles,matrix_ytiles
prepare matrix texture 1,1,1,1
fill matrix 1,0,1
endif
if matrix exist(2)=0
make matrix 2,matrix_width,matrix_height,matrix_xtiles,matrix_ytiles
prepare matrix texture 2,10,1,1
fill matrix 2,0,1
randomize matrix 2,1.0
ghost matrix on 2
endif
I create these two inside your function Game_LoadScene.
Then I press windows key or alt+tab and it crashes. It crashes every time until I completely remove it. Then it works with normal objects.
Am I doing something wrong?
Best wishes
Rylex