Jump to content

What is better CEF or dxDraw?


mehmet

Recommended Posts

1 hour ago, Mr.Loki said:

It really depends on  the system it's running on and imo I'd say go full CEF.
Also CEF won't affect your Game's FPS but DX functions will.

I didn't fully understand. CEF does not affect the performance?
(I just don't understand English.) Sorry man

Edited by mehmet
Link to comment
  • Moderators
1 hour ago, mehmet said:

I didn't fully understand. Which is better?

That really depends on your user-case. When requesting the browser, you will be starting a web browser application inside of your game. This cost more performance than just rendering a rectangle with dx. But rendering 1000 elements, yes the browser will be more optimised to render multiple elements better/faster.

The browser can actually do have influence on the FPS, if the website is not optimised or when there are too many browser windows created.

 

The question you actually want to ask is: "Which is better for me?"
And you are the only one able to answer that question.

 

So a few of my recommendations:

Use dx:

  • When displaying just a few elements at a location
  • When you do not want to spend a lot of time on a project. Setting up and maintaining a browser requires more code.
  • For optimised textures.

 

Use the browser:

  • When rendering tons of elements.
  • When using a lot of (CSS) animating.
  • When you understand CSS and HTML (required).
  • When handling UI/UX browser events based (Javascript required).

 

Other things:

 

 

 

 

A browser renders content like this:

 

 

 

 

 

 

 

Edited by IIYAMA
  • Like 2
Link to comment
6 minutes ago, Pirulax said:

Well, for example, on my machine CEF inside MTA lags the :~ out, so it depends.

dxDraw is faster for me most of the time, but CEF is waay better for doing UI stuff.

I think the inventory system to make dx.
And the rest on the CEF.
right?

Link to comment
  • Moderators
1 hour ago, mehmet said:

I think the inventory system to make dx.
And the rest on the CEF.
right?

That depends how good you are with Javascript.

I would probably pick CEF for the job, just because you are working item based. But if you are better in lua than JavaScript, dx might be your solution.

 

Also CEF supports SVG, which makes your icons look much more sharper. (:love4:)

And YES!! animated crazy stuff

 

 

Edited by IIYAMA
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...