mehmet Posted January 19, 2019 Share Posted January 19, 2019 (edited) Hello, want to make a inventory system. What is better CEF or dxDraw? Say CEF slow performance, but faster development. Edited January 19, 2019 by mehmet Link to comment
Mr.Loki Posted January 20, 2019 Share Posted January 20, 2019 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. Link to comment
mehmet Posted January 20, 2019 Author Share Posted January 20, 2019 (edited) 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 January 20, 2019 by mehmet Link to comment
Moderators IIYAMA Posted January 20, 2019 Moderators Share Posted January 20, 2019 (edited) 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: Do not create too many browsers windows. Stop the browser from rendering, when not used:https://wiki.multitheftauto.com/wiki/SetBrowserRenderingPaused A browser renders content like this: Edited January 20, 2019 by IIYAMA 2 Link to comment
mehmet Posted January 20, 2019 Author Share Posted January 20, 2019 @IIYAMA and for the invetor system? when a lot of data transfer Link to comment
Discord Moderators Pirulax Posted January 20, 2019 Discord Moderators Share Posted January 20, 2019 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. 1 Link to comment
mehmet Posted January 20, 2019 Author Share Posted January 20, 2019 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 IIYAMA Posted January 20, 2019 Moderators Share Posted January 20, 2019 (edited) 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. () And YES!! animated crazy stuff Edited January 20, 2019 by IIYAMA Link to comment
mehmet Posted January 20, 2019 Author Share Posted January 20, 2019 2 minutes ago, IIYAMA said: 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 sharper. () And YES!! animated crazy stuff thanks dude 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now