flat assembler
Message board for the users of flat assembler.
Index
> Windows > Win 10 PeekMessage strange behavior. |
Author |
|
Roman 07 Dec 2020, 15:27
64 bits.
I use PeekMessage and render Directx 12. Code: Backzz1: invoke PeekMessage,msg, 0, 0, 0, PM_REMOVE test eax,eax jz .2 invoke TranslateMessage, msg invoke DispatchMessage, msg PressKey "1",.2 ;if not press '1' then jmp .2 invoke MessageBox,0,'reload',0,0 .2: invoke Sleep,0 cmp byte [FocusWinLost],0 jz .render invoke Sleep,50 jmp .norender .render: invoke DX12CameraFP inc word [IgnorRndr] cmp word [IgnorRndr],105 jbe .norender mov word [IgnorRndr],0 invoke DX12TestRender .norender: cmp [CloseWin],1 jnz Backzz1 I get work render and MessageBox ! But how i expected MessageBox must stop my loop and not do invoke DX12TestRender All work in one thread ! But MessageBox stop render after 11 seconds ! When i move mouse on WindowsTaskMenedger my program halt all at few seconds ! I show this bug: https://www.youtube.com/watch?v=cGb2WeL0poI&feature=youtu.be&ab_channel=Roman8139 Last edited by Roman on 07 Dec 2020, 15:39; edited 3 times in total |
|||
07 Dec 2020, 15:27 |
|
Roman 07 Dec 2020, 15:29
I use this code in Windows 7 on CPU Intel I5 2320 and not get this bugs.
Now i use CPU Ryzen 3500 6 cores and Windows 10 |
|||
07 Dec 2020, 15:29 |
|
Roman 07 Dec 2020, 19:07
I try comment PressKey macro but its not help.
My CPU load at 35% if i move mouse on another window. And Win 10 few seconds not responded. |
|||
07 Dec 2020, 19:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.