BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Questions about the rendering engine

4 posters

Go down

Questions about the rendering engine Empty Questions about the rendering engine

Post by zbx1425 Sat Sep 28, 2019 6:25 am

Sir Chris,
I have been talking with a few local developers, who became amazed after the introduction of obj parser into openBVE.
However, as we began trying some objects with richer details, we found the game laggy. Although it is reasonable, we are a bit worried about the performance. I know you developers have been working on the optimization(we really appreciate your hardwork:) thank you so much), but it seems commercial game engines such as source can render complex scenes smoothly even on low-end machines, on which openBVE can be laggy and unplayable. What is the reason, and is migrating it to a commercial engine(or do it as a fork object by community developer) an option?
Also, we found drawing shadows on textures tiring. Although we know it is unlikely and will probably cost a complete rewrite of rendering engine, is it possible for openbve to have light, shade and shadow rendering in the future? I find the ProjectAlpha2 by Jeminie working on this, and Minecraft(which doesn't have such a system) has shader mods that can achieve this goal.
Futhermore, I found Hmmsim miserable, and I considered porting openBVE to android using Xamarin. Is it possible, and will performance become a problem?
Many thanks!! Smile
zbx1425
zbx1425

Posts : 143
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by S520 Sat Sep 28, 2019 5:25 pm

We worked on improving FPS.
https://github.com/leezer3/OpenBVE/pull/397

Although some results have been achieved, I think there is still room for improvement.
But I am not a graphic expert.
Your cooperation is necessary.
S520
S520

Posts : 113
Join date : 2018-08-24
Location : Japan

https://github.com/s520

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by leezer3 Sat Sep 28, 2019 5:32 pm

The short answer is that it's not really possible. Moving an existing game to a 'new' engine generally involves a complete re-write of the backend code, and just recycling the existing assets.

However, please try the latest daily build. This has a new option: Use New Renderer which uses work by S520 and LabRatAndy to shift the openGL renderer used to newer technologies.
This will produce FPS improvements on *some* machines (We believe primarily those on which graphics power is currently a bottleneck), but doesn't really do much else.

With the new renderer, we're actually somewhat closer to supporting Android, but please don't expect anything soon.

Additionally, the aim is to move to using x64 compatible builds with proxied plugins for the next major version. This will provide some improvements, but again nothing drastic.

leezer3

Posts : 1978
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by Dexter Sat Oct 05, 2019 9:01 am

leezer3 wrote:However, please try the latest daily build.

Where can I get that? I am a github noob.
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by Dexter Sat Oct 05, 2019 9:07 am

(Don't mind me, found it)
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by Dexter Sat Oct 05, 2019 9:38 am

So--- mine went from 56 fps to 32 fpswith the new openBVE. That is with or without having the new render activated (GTX970).
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by leezer3 Sat Oct 05, 2019 11:31 am

Work is ongoing on this regard; This is still rather experimental.
From what I can see from a marginal bit of testing, the new methods appear to work a little better on integrated graphics cards.
My FPS (GTX1060) is roughly equivilant.

We're also aware of a few cases of missing objects (Specifically an animated file containing a mix of static and animated stuff), which will be fixed when I next get time to do some proper digging.

leezer3

Posts : 1978
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by Dexter Sun Oct 06, 2019 8:11 am

Yep, I have noticed missing objects, too. Alright, anything that will help the performance is a way to go, so hopefully you guys will be able to help it in the future. :-)
A quick side note: I have upgraded from v 1.5 of openBVe to 1.7 recently. Don't know what has happened there, but while in 1.5 I had roughly 58fps, in 1.7 I have 115. Same spot, same route, same configuration.
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by leezer3 Sun Oct 06, 2019 7:18 pm

Difference between 1.5 and 1.7 should be close to nil, so I suspect a setting has got changed somewhere.
I'm also a little surprised that the 'old' renderer in current builds shows such a change- I wonder if this setting is the reason why?

Most recent build fixes the missing object cases (As far as I know!), but if not, please give me an example or two and I'll take a look.

leezer3

Posts : 1978
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Questions about the rendering engine Empty Re: Questions about the rendering engine

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum