The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

Hello!
I created a splitscreen-game for two players left and right.
My aim is to change the players view from left/right to up/down.
This is considered to happen with a smooth animation - here is what I achieved:
https://drive.google.com/open?id=1QtRp5Yflog3mWaifCC5z1_bdQs6vTZFe

The problem:
In the begining two viewports are used as textures for polygons left and right. Their resolution is the half of the screen as it is in the end of the animation.
During the "turn" I have to increase the viewport resolution to the the screen size to fill the polygons with the full horizontal and vertical length. BUT now the computer has to render two viewport of the resolution of the whole screen where as the polygons still display only the half of each. This "waste of render overage" costs resources which can be seen in the fps-decrease (You can follow it in the video very well).

So my question: Is there a way to tell a viewport to render only a certain segment? Or do you have another idea how I can solve this problem?

Thank you!

in Engine by (56 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.