program gets stuck when returning from sleep mode

Started by Hardcoal, September 16, 2017, 01:23:51

Previous topic - Next topic

Hardcoal

Hi.. can anyone give me a solution why my blitzmax program get stuck when i enter from sleep mode..
while it was left on before entering the sleep mode?

Thanks
Code

Naughty Alien


col

@NA
;D Same here.

@Hardcoal
Full screen or windowed? Both? On Windows? Which gpu driver(s)?
The ole grey cells in my head are triggering something about this happening in the past, although it was incredibly rare. I think it was something low level, along the lines of images being released and recreated properly but 'Max was using the image handles that were assigned before entering sleep, even though they had changed when woken. I could be wrong with the diagnosis there, but I definitely remember this issue being raised in the past.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Derron

I remember a similar thing to what col described.


In the past there were issues if you adjusted resolution during playing - because were was no guarantee to still have valid textures.


If you use "Blitzmax NG" you might check out if it works when using "SDL". SDL also offers better multi-screen-support (another issue with BlitzMax vanilla). Just do a fullscreen game and run it with 2 screens attached - both will display it.




bye
Ron

TomToad

------------------------------------------------
8 rabbits equals 1 rabbyte.

col

@Derron
Ahh yes, that was a different issue too. Good memory :)

Good find TomToad!
You're like a super detective when it comes to mining older posts  8)
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Hardcoal

Code

col

Hmm, Do you have the source for it at all?
To isolate if the area to look in is either in xors3d or BlitzMax could you maybe create a small test program to reproduce the issue, then remove parts sections of code to see where the issues arises?
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Hardcoal

#8
ok ill try.. Tnx

I think it has something to do with alba lynx GUI . after doing some tests..
Code

Scaremonger

I remember seeing an issue that occurred after sleeping in one of my apps. It had a timer which added values to a list every 1000ms and the game loop graphed them.

After sleeping, my app hung. It was quite frustrating and I spent some time on it, eventually it turned out that all the events I missed while sleeping were sent at once. The application was overwhelmed with thousands of events and hung until they were processed.

I fixed this by checking the duration since the last event and discarding any that we're under 600ms. Wasn't an ideal solution, but it worked.