JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Call for examples: large projects that become slow to reload

    Scheduled Pinned Locked Moved General Discussions
    1 Posts 1 Posters 482 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hrgdavorH Offline
      hrgdavor
      last edited by

      I am looking for big project examples that become slow to reload.

      If anyone here is willing to share such project, I am interested to make a more advanced livereload integration that could benefit larger projects.

      I have already made an improvement to jscad reloading code to enable using livereload that makes jscad notice your changes faster. The speed of generating the model is not improved here, just the delay between saving your file, and the start of the refresh.

      lievereload https://www.npmjs.com/package/livereload is very simple tool to install (globally or locally for your project).

      To get the benefit:

      • first run livereload in the folder with your project files,
      • then drop your files to jscad web (local instance or https://jscad.xyz/)

      The way your changes are applied will be different.

      Without livereload, project files are read from your drive periodically (1 to 5 seconds delay that depends how fast last reading was) and your changes are then shown on the screen.

      With livereload, files are not being read periodically, but livereload server notifies jscad of changes and changes are applied quickly (~100ms).
      For relatively small single file pojects it can be under one second from saving file and seing your changes rendered)

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Powered by NodeBB | Contributors