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

The frame rate of large models is lower than before #7

Open
wwjje opened this issue Nov 7, 2024 · 18 comments
Open

The frame rate of large models is lower than before #7

wwjje opened this issue Nov 7, 2024 · 18 comments
Assignees

Comments

@wwjje
Copy link

wwjje commented Nov 7, 2024

The frame rate of large models is lower than before. The previous version had 60 frames per second, but now it only has a frame rate of 20-30 frames per second

@mavimaec
Copy link

mavimaec commented Dec 2, 2024

Thanks for reporting this - looking into it!

@mavimaec mavimaec transferred this issue from vimaec/vim-webgl-viewer Dec 16, 2024
@wwjje
Copy link
Author

wwjje commented Jan 6, 2025

May I ask when this issue can be resolved? The performance and frame rate are not as smooth as before when using large models

@mavimaec
Copy link

mavimaec commented Jan 7, 2025

Hi wwjje, @vim-sroberge is currently working on a fix. Hoping to have it merged in the next few days.

@vim-sroberge
Copy link
Collaborator

Hi wwjje, The new release 0.39.0 includes performance improvements.
If you need maximum performance you can also consider using a material override like this

vim.scene.material = viewer.materials.simple

@wwjje
Copy link
Author

wwjje commented Jan 16, 2025

Hi,I tried it out,The frame rate has increased to around 40FPS, but still hasn't reached 60FPS. During use, there may be a slight lag and lack of smoothness when zooming in, out, or rotating. I tried another version (https://github.com/vimaec/vim-webgl-viewer/tree/v1.5.2) again, and no matter how I operate it, zoom in, zoom out, or rotate, it always has a full frame rate of 60FPS. Why is that?

@wwjje
Copy link
Author

wwjje commented Jan 16, 2025

I used the same computer and the same large model for testing. You can also test it. vim-webgl-viewer v1.5.2 performs very smoothly, always running at a full frame rate of 60FPS

@vim-sroberge
Copy link
Collaborator

I will look into it and try an older version. Thanks for the details.

@vim-sroberge vim-sroberge reopened this Jan 16, 2025
@wwjje
Copy link
Author

wwjje commented Feb 7, 2025

May I ask what the reason is? Is it easy to fix?

@vim-sroberge
Copy link
Collaborator

You can greatly improve performance by using FrontSide rendering only instead of Two-Sided.
Especially the standard transparent material.

It can cause visual artifacts for some geometry.
It causes missing surfaces when using the section box as well.
But it is much faster.

You can change it at run time with
viewer.materials.transparent.material.side = 0

There are now plans to add this option to the settings UI.

@wwjje
Copy link
Author

wwjje commented Feb 19, 2025

Yes, I did make the modifications much faster. Will the impact be significant after the modifications? What is VIM Ultra? I can't run it to check, it seems to be missing the address of the server's websocket

@mavimaec
Copy link

@wwjje VIM Utra is part of the VIM Desktop application. It allows you to stream our Vulkan-based renderer from your local machine into your web browser. Here is our documentation for VIM Ultra. We use it with our Power BI custom visual to render the largest BIM models.

@wwjje
Copy link
Author

wwjje commented Feb 21, 2025

Do I need to use Vim.Enterprise? It requires a license, is there a trial version available?

@mavimaec
Copy link

You don't need to use VIM Enterprise to run VIM Ultra. All you need is the VIM Desktop app which is available in the standard "VIM Desktop Installer" (see our release notes for download links)

@wwjje
Copy link
Author

wwjje commented Feb 24, 2025

I am running it now, but it seems that I can only see the example model. If I change the local model or other models, WebGL can view it, but Ultra cannot

@vim-sroberge
Copy link
Collaborator

You should be able to change the ultra demo code to point to any file you want, the file can either be local or remote. The server will then download the file and display it.

@wwjje
Copy link
Author

wwjje commented Feb 26, 2025

I changed the addresses to‘ http://192.168.1.3:5174/vim-web/new.vim ','./new.vim 'and the download url and webgl that can be accessed by the Internet can be displayed normally, and Ultra prompts download error,But the Vim example can be opened normally.

I also need to add the following configurations in order to run properly, otherwise an error will occur. I'm not sure if it will have any impact

@wwjje
Copy link
Author

wwjje commented Feb 26, 2025

Image

Image

Image

Image

@mavimaec
Copy link

@wwjje for VIM Ultra to work, the VIM file needs to be hosted from a server which can respond to HTTP GET requests.

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

3 participants