Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Issue #1002

Closed
Masterblop opened this issue Jan 28, 2019 · 19 comments
Closed

Performance Issue #1002

Masterblop opened this issue Jan 28, 2019 · 19 comments

Comments

@Masterblop
Copy link

Hello guys,
I'm making a scene to share in the future.
I've tried both the UPBGE version 0.2.4 and the master branch. I always get low fps. With official Blender (2.79b and master), I reach 60 fps. I enclose screenshots and links to the file.

https://mega.nz/#!vUxkVCzR!OU9BG5lc2zlJ43WdIk_qHvMhK_QRqRmWZhdQOy-503s

UPBGE v0.2.4:
schermata da 2019-01-28 17-22-09

Official 2.79b:
schermata da 2019-01-28 17-23-05

@RomStef
Copy link

RomStef commented Jan 29, 2019

Hi ,
In upBGE 0.2.4 the scene reach 15 fps
In Blender official 2.79b the scene crashes

i think it's my laptop but there is my opinion :
The scene is too expansive, try to link objects because 234.000 at same place are too many.
There are HD texture even on objects far from the camera.
Enable camera culling to avoid the process of all geometries outside the frustum cone.

My hardware :
Intel I7-7500U 2.7Ghz
12 GB DDR
Intel HD Graphics 620 + GeForce GTX 950m in shared memory

The real time rendering need more optimization.

@Masterblop
Copy link
Author

The previous test I did on Ubuntu18.04 with driver "AMDGPUPRO 18.Q4.1".
Today I tried on Windows 10 with drivers "Radeon ™ Pro Software for Enterprise 18.Q4.1"

In both cases, Blender 2.79b is faster.

I enclose Windows10 screenshots

UPBGEv0.2.4:
upbge024windows

Blender2.79b:
blender279bwindows

@BluePrintRandom
Copy link
Member

BluePrintRandom commented Jan 29, 2019 via email

@Masterblop
Copy link
Author

Is there gripes in the console?
No

Do you have unapplied modifiers?
Yes, some object have a bevel modifiers (light)

Is there anything special you notice brings down the fps?
Environment lighting + Blend Sky + Real Sky <-- eat 10 fps in this scene

Maybe it's some of the work on transparency?
I do not think so, I've turned off the layer where there are glasses. Maybe UPBGE also renders the layers inactive?

Screenshot from computer house (the others are from office):
UPBGE with environment lighting:
schermata da 2019-01-29 21-42-47

UPBGE without environment lighting:
schermata da 2019-01-29 21-43-41

Blender2.79b with environment lighting:
schermata da 2019-01-29 21-42-02

@Jesusemora
Copy link

Jesusemora commented Jan 30, 2019

Do you have unapplied modifiers?
Yes, some object have a bevel modifiers (light)

don't use modifiers in bge.
is backface culling disabled in upbge?

@Akira1San
Copy link

You have the render queries on?

@lordloki
Copy link
Member

From screenshots, it seems.
Debug render queries are very process consuming. Please, unset them and try again.

@UglinessInTheUI
Copy link

Here is the fps on a RX580 8GB GPU with an FX 8350 CPU. Something is definitely wrong with your scene. I get very good fps in Unreal Engine and Cry Engine with scenes much more complicated than yours. UPBGE gives 5 fps and 2.79b gives 33 fps. Very bad bad scene. Some kind of corruption in the scene i guess. It's not supposed to be 400+ MB in size. Check to see what makes the file so big. Did you bake some high resolution textures ?

upbge 5x lower fps
house 2 79b

@UglinessInTheUI
Copy link

I disabled the shaders and the shadows and left only the lights and performance went back to 60 fps in 2.79b. Check the shaders and the shadows.

2019 02 16-17 33

@Masterblop
Copy link
Author

I need a few days of work on this scene.
The intention is to replace windows (I used archimesh to create them), with windows with less polygons. For the shaders at the moment, I do not know how to improve them. In the past I tried to scale the textures to 1024 and reduce the export quality, but it was horrible to see (too many artifacts).

@lordloki
Copy link
Member

The main difference is that in upbge scene you are setting on the "Show render queries". This option is only to check the render queries and have a lot impact on fps. To compare bge and upbge, please, disable that option.

@Masterblop
Copy link
Author

The main difference is that in upbge scene you are setting on the "Show render queries". This option is only to check the render queries and have a lot impact on fps. To compare bge and upbge, please, disable that option.

@lordloki Is this message for me?

@UglinessInTheUI
Copy link

With render queries turned off i get 9 fps in UPBGE and 33 fps in 2.79b. If i turn off all render options and leave only the lights on i get 60 fps in 2.79b. It's still 3 times slower in UPBGE compared to 2.79b.

@UglinessInTheUI
Copy link

The issue is not the polygons. There is something else wrong in that scene. I think scenes that were saved with both UPBGE and 2.79b get corrupted and become useless. You have to append each element from the old scene into a new scene and check the impact on performance after each append. There are 2 million displaced triangles in this scene and i get 128 fps. That's why i don't think it's the polygons. Your scene has only 500,000 triangles. It's the shading and the baked textures or something else.

2019 02 18-01 15

@UglinessInTheUI
Copy link

Here is a quick fix for that house scene. If i delete all the lamps/lights from layer 15 my fps goes back to 100+. Disabling layer 15 doesn't seem to fix it or to be enough. You have to actually delete all the lamps from layer 15.

2019 02 18-02 25

@Masterblop
Copy link
Author

Masterblop commented Feb 18, 2019

Doing so only the flat textures remain (only Diffuse).
ps. Nothing is solved with "append"! I've already tried 4 times and it does not change anything.

@UglinessInTheUI
Copy link

The problem is that UPBGE is still 7 times slower compared to 2.79b even if i delete everything in layer 15. So it's not really a good fix as far as UPBGE is concerned.

2019 02 18-02 36

@UglinessInTheUI
Copy link

There is definitely a bug in the layers system because if i disable layer 15 doesn't seem to fix it or to be enough. I have to actually delete all the lamps from layer 15 in order to disable it completely. Theoretically it should be enough to just disable layer 15. Anyway , it doesn't seem to fix it for UPBGE.

@youle31
Copy link
Collaborator

youle31 commented Aug 12, 2019

Performances issues can't be tracked comparing old bge and upbge, as many things have changed, and as the scenes need to be adapted and optimized to run correctly in upbge. If bge runs better for you, you can still use it, else you can try different upbge version if you like one more than another. I just added last upbge builds based on last 2.7 master here: #1041 if you want to give a try. I close this as we can't do anything with the informations provided

@youle31 youle31 closed this as completed Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants