About Store Forum Documentation Contact



Post Reply 
window issue with D.mode();
Author Message
RedcrowProd Offline
Member

Post: #1
window issue with D.mode();
Hi,

It seems that i am encountering some issue when the app is being launched and a D.mode(x, y, full); is set (loaded from file settings)

happens on laptop, and both my desktops ( running latest win10 )

the window is still responsive to input, and everything works fine, but there is a left over faded version of the active rendered window.

any window input fixes it ( pressing window key, or hover the top right X for example set the window back to normal )

see screenshot of my new game where this happens, but i have seen this happening on my other projects as well

https://gyazo.com/72301c8e29d7a8869e5cb386153022b2
(This post was last modified: 04-25-2023 08:55 AM by RedcrowProd.)
04-25-2023 05:21 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: window issue with D.mode();
It could be a bug in the OS
04-25-2023 06:52 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #3
RE: window issue with D.mode();
no doubt, but i need to find a work around this, as it is quite annoying and look quite poor. it happens quite frequently, i see it around 1 out of 10 start up
04-25-2023 05:01 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: window issue with D.mode();
Are you calling D.mode inside InitPre?
04-25-2023 05:44 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #5
RE: window issue with D.mode();
no it is called later on.
goes like that initpre, init, stateintro start -> load settings.

should this be done in initpre ?
(This post was last modified: 04-25-2023 07:40 PM by RedcrowProd.)
04-25-2023 06:13 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: window issue with D.mode();
in InitPre - That's the best way
04-26-2023 04:29 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #7
RE: window issue with D.mode();
I think that's done the trick, tried about 50 start and did not see this issue appearing

I wonder if it was caused by state changing too fast, and having d.mode in between state close and start. anyway thanks !
04-26-2023 04:41 AM
Find all posts by this user Quote this message in a reply
Post Reply