Broken widget frames, and poor FPS after set commits #4722
Comments
Prot commented |
Per changed blocking which not transferred by tractive |
Per changed blockedby which not transferred by tractive |
Per commented What NVidia card do you have, what driver version, what platform (linux/windows), and what FPS results do you get? |
Prot commented Replying to Warzone2100/old-trac-import#4722 (comment:2):
|
Forgon uploaded file screenshot after last working commit 1ce7e09bab668d06022fdae33c4132043658bbc |
Forgon uploaded file screenshot after first faulty commit a6017da6a838ba17630a629d6c3c8c4483c09ccc with widget frames broken |
Forgon uploaded file screenshot after second faulty commit ae2e4c0e23d824dee6dde7464237fb854aa24ec7 with fps reduced from 60 to 50 |
Forgon uploaded file screenshot of most recent commit c89320c2d5ef7bb2262ce3e2659cdd58e2fb2000 with fps slightly lowered from 50 to 47 |
Forgon commented I reproduced the problem with ArchLinux using the integrated graphics card of the Intel i5-2540M processor powered by Mesa 17.3.3.2. Results: commit 1ce7e09bab668d06022fdae33c4132043658bbc: commit a6017da6a838ba17630a629d6c3c8c4483c09ccc: commit ae2e4c0e23d824dee6dde7464237fb854aa24ec7: commit c89320c2d5ef7bb2262ce3e2659cdd58e2fb2000: |
Per commented Is this fixed with the high-dpi build? |
Berserk Cyborg commented Nope. These two commits are the ones causing the performance loss: a6017da6a838ba17630a629d6c3c8c4483c09ccc and ae2e4c0e23d824dee6dde7464237fb854aa24ec7. |
Per commented To those who still have performance issues - are you CPU bound or GPU bound? To tell which it is - try looking at 'top' (on linux) or performance monitor (windows), to see if you are at 100% CPU on the process running Warzone. If you are at 100% CPU on that process, then you are likely CPU bound. Otherwise you are GPU bound. Also, make sure you turn vsync off if you cannot reach 60 fps. |
Berserk Cyborg changed _comment0 which not transferred by tractive |
Berserk Cyborg commented Apparently I am GPU bound and I never have vsync on. It only really is slightly noticeable when the reticule research menu is open. Edit: |
Prot commented Also flying black pixels at the top left, it is corners of minimap, if you try to resize minimap then you see how those pixels moves too. |
Forgon changed priority from |
Forgon uploaded file patch file created with |
Forgon commented The missing window borders are caused by erroneous calls to the functions 'iV_DrawImageRepeatX()' and 'iV_DrawImageRepeatY()', both of which are declared in './lib/ivis_opengl/pieblitfunc.h'. The errors had been introduced in commit a6017da6a838ba17630a629d6c3c8c4483c09ccc. Please try my attached patch and improve on it if you can. |
pastdue commented @forgon: Fantastic catch! Here's a (smaller) patch that fixes the root cause of the issue: In the definition of |
Berserk Cyborg commented Replying to Warzone2100/old-trac-import#4722 (comment:12):
Replying to Warzone2100/old-trac-import#4722 (comment:9):
I thought it was only one little triangle when it is in fact an outline matching the dimensions of the mini-map. |
Berserk Cyborg uploaded file |
Berg commented I think the black border is the no go part of the warzone map its a area on the edges of the map that you cant build on or drive on |
Forgon changed _comment0 which not transferred by tractive |
Forgon commented Replying to Warzone2100/old-trac-import#4722 (comment:13):
This is the mini map border, which is drawn in the wrong place since commit a6017da6a838ba17630a629d6c3c8c4483c09ccc. It is visible with my patch (see attached image [raw-attachment:minimap_border_error.png]), but not with your patch. |
Forgon uploaded file |
pastdue changed _comment0 which not transferred by tractive |
pastdue commented @forgon: Then there's a remaining call to |
pastdue commented To all: Please see the updated patch at: https://github.com/Warzone2100/warzone2100/pull/148.patch This also fixes the drawing of the radar frame corners, which weren't respecting the input |
past-due <30942300+past-due@...> changed status from |
past-due <30942300+past-due@...> changed owner from `` to |
past-due <30942300+past-due@...> changed resolution from `` to |
past-due <30942300+past-due@...> committed [1] In Warzone2100/warzone2100@1a1b075:
|
past-due <30942300+past-due@...> commented In Warzone2100/warzone2100@fedcb22:
|
resolution_fixed
type_bug
| by ProtIn our circle have noticed bad FPS somewhere between versions 3.2.1 and 3.2.3, I decided to investigate it.
I found this series of commits that break frame widgets and degrade performance.
Starting from commit:a6017da6a838ba17630a629d6c3c8c4483c09ccc - is broke widgets, and have some loss FPS at NVIDIA Cards.
Ending with commit:ae2e4c0e23d824dee6dde7464237fb854aa24ec7 - even worse performance.
After this, still problem not fixed. Now we have a bad performance and broken frames of widgets.
Screenshots and details will make in the forum.
Issue migrated from trac:4722 at 2022-04-16 13:01:20 -0700
The text was updated successfully, but these errors were encountered: