Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Optimizing Roll20 Performance"

From Roll20 Wiki

Jump to: navigation, search
m
m (Common Issues)
Line 81: Line 81:
 
* '''Jerky video chat, skipping, dropped frames, "laggy".''' Could be caused by either network or graphical performance issues. Try using voice-only chat, using a dedicated video chat service, or disabling Roll20 video/voice chat entirely.
 
* '''Jerky video chat, skipping, dropped frames, "laggy".''' Could be caused by either network or graphical performance issues. Try using voice-only chat, using a dedicated video chat service, or disabling Roll20 video/voice chat entirely.
 
* '''There is a delay between when I see a text chat message appear and when someone says something about it in the video chat.''' There is a standard delay of a second or two in the video chat -- a lot of data has to make a trip to a server and then to your other group members, and the connection speeds and latency of the hops in between slow things down. If you're seeing a larger delay than that, it's most likely a latency issue.
 
* '''There is a delay between when I see a text chat message appear and when someone says something about it in the video chat.''' There is a standard delay of a second or two in the video chat -- a lot of data has to make a trip to a server and then to your other group members, and the connection speeds and latency of the hops in between slow things down. If you're seeing a larger delay than that, it's most likely a latency issue.
 +
 +
= Additional Suggestions from the Forums =
 +
Optimization Tips/Suggestions copied from the forum post: [https://app.roll20.net/forum/permalink/10257507/ Lag]
 +
 +
# Uninstall the very questionable third party tools and use the scripts made here in their place.
 +
# If you have doorknocker API installed, make sure any other non door maps are not accidentally drawn in the colors for doorknockers color codes.  If they are, that’s a TON of doorknocker api auras drawn on the page and will lag you to all hell. ('''Additional Comment:''' If you are careful with your DL line colors, Doorknocker shouldn't be an issue. I use it all the time.)
 +
# Health auras looks so cool, but the more auras on tokens, the “laggier” the game gets.  Keep an eye on various API's cause some use invisible auras like doorknocker.
 +
# Turn off UDL, turn on LDL.  The people running roll20 seem to want to reduce their customer base by raising the hardware requirements for their product.  They are constantly pushing folks into UDL and its a hot mess that dumps a ton of users out the back door. ('''Additional Comment:''' Personally speaking, I have not had any lag that I can attribute to the New Dynamic Lighting. Quirks yes, lag no. I know this is not true of all folks. Try both and see which works better for you. If you do use LDL, be aware that universal light with advanced fog of war will absolutely kill performance.)
 +
# If you are using dynamic lighting and have twilight clerics, try to get away with only doing 120 DV on their tokens till they ask for the full distance.
 +
# Host on dev on weekends.
 +
# Don't share sessions to non paying users.  You are contributing to the congestion when you give folks pro sessions to host with. ('''Additional Comment:''' I do host games for my friends to run, but only games for which I am a player. If that's the use case, it won't impact the number of games being run.)
 +
# Try to offload assets to other sessions and run a very narrow live session for the players.  You have a feature called Transmogrifier that lets you move virtually everything off your live session and onto your live session in seconds.  Its at the very bottom of the settings tab on the right side.  Its hidden if you have the third party tools installed. ('''Additional Comment:''' Heavy agreement with the use of Transmogrifier to maintain a [https://app.roll20.net/forum/permalink/6354288/ Library Campaign]. This and the API are the biggest draws to a Pro account.)
 +
# If you use Torch API, try to limit the use of flicker to just player tokens and use stationary lights for environmentals.
 +
# Keep players sheet access to less then 5 total sheets, keep yours as low as possible, drag out from monster manual or create a bestiary and transmog creatures as you need them.
 +
# If playing a game that features a resource like spells, limit the number of spells on a sheet at any given time to as few as playable. Spells have a lot of data fields and bloat a sheet very quickly.
 +
# Use short lines for DL. Keep them simple. They are easier to edit in case of error or change, and are less mathematically demanding. And use the Poly line tool. Avoid curves and circles unless necessary. They work now, but can still lead to unexpected results in high numbers.
 +
# It's better to divide very large maps into different pages, when possible.
 +
# Look into automation. As a Pro user, you have access to API scripts, which can automate many mundane tasks and mitigate the experience of lag.
 +
# Turn off vision for all the NPCs and monsters on your maps.  The more tokens with 'vision' the greater the demand on the system to make all those calculations/lighting adjustments.  As DM, I can turn on any token 'vision' to check line of sight or any other vision parameter before turning it back off.  My games all picked up smoothness of operation and reduction of lags (despite being on weekend nights) when I made this change.
  
 
=See Also=
 
=See Also=

Revision as of 04:48, 23 July 2021

Attention: Roll20 is no longer maintaining this document on the community wiki. For the most up-to-date information please visit this page on our Help Center for assistance: Here. For more information you can contact Roll20 by making a Help Center Ticket

As far as most gaming-related applications go, Roll20 has very low network and graphical performance requirements. The vast majority of our users never need to worry about any of the following. However, if you (or one of your players) has a very slow Internet connection or a very old computer, these tips may help you have a smoother time playing.

Roll20 is a web-based application, and as such there are two primary performance considerations: the speed of the network connection, and the speed of the graphics rendering on the client's computer.

Note: Your own individual results may (and probably will) vary from other people playing in your game. If you're the GM designing the Roll20 Game, you'll want to keep the worst performing client (which may not be you) in mind. Just because a 500 unit by 500 unit map scrolls smoothly on your computer doesn't mean it will work well for your player with a 4-year-old machine.

TL;DR: Slow network connection? Your biggest hit is going to come in the video chat department. Try switching your game to broadcast audio-only. Have a player with a really old computer? Try limiting the number of objects on-screen.


Contents

Graphics Rendering

The graphics rendering performance of your computer is determined by several things, including having an up-to-date browser, your CPU speed, amount of available system memory, and your graphics card. While you certainly don't need a high-end gaming PC to use Roll20, playing on an underpowered netbook computer may cause you to experience jerky or unresponsive performance. For best results, consider using a mid-range computer (one built in the last 3 or 4 years should be more than sufficient, and old computers may be fine as well) with a dedicated graphics card and a screen resolution of at least 1280x1024.

The graphics rendering of your computer directly affects how quickly things can be drawn on your screen as the scene changes. So when a token is moved or added, or you zoom, or scroll/pan around the map, the screen is being constantly redrawn. The better your graphics rendering performance, the smoother those operations will "feel".

Pro users: Creating a Library Campaign for storing unused maps & characters for large campaigns is a good idea, so you can bring back deleted content to the active game camapign.

A few tips for getting the most out of Roll20 with a low-performance PC (sorted by "most likely to help" to "least likely"):

  • Limit the number of PC and NPC N Journal Entries in each game. A vast majority of users that report issues have games that contain entries for several hundreds or thousands of Characters and Creatures.
  • Limit the number of images that you use. For example, try to use only a single image on the Map layer, instead of a large number of map tiles, furniture, etc. Instead, create the map in an external program and then import it as one JPG or PNG file. The fewer objects that Roll20 has to render individually, the better your performance will be.
  • Keep map sizes small. (The default size of 20x20 is a good bet.) Divide your encounters across several pages if need be.
  • Turn off Dynamic Lighting. Larger maps takes a larger performance hit than smaller ones. Applies both for LDL and UDL
    • reduce number of light sources/ tokens that have vision or creates light
    • reduce amount of DL lines
  • Turn off the grid and/or FoW mechanics -- both of these require extra graphics processing on each new frame draw to use, slowing down your computer.
  • Limit your use of the Drawing Tools


Note: Archiving characters/handouts/maps does not improve performance, only hides them form your direct access, and don't improve game performance

Browser

Main Page: Browser

Roll20 officially only supports the Firefox & Google Chrome browsers, so if you encounter a problem using other browsers, it's recommended to switch to either of these. And no, using any Chromium-based browser like Microsoft Edge is not the same thing as using Chrome. Roll20 often works well on other browsers, but your mileage may vary.

There is no consensus on which browser works best for Roll20, as it seems to vary based on things like what operating system you use(Windows/Mac/Linux), your hardware(physical computer), your ISP, what browser plugins you use, and even what version of the browser you have.

Some have claimed Chrome is faster, others swear by Firefox. It can be a good idea to try out the other (Firefox/Chrome) in case things are more smooth with it.

Chrome

Chrome has adjustable flags that may improve performance on some systems. However please note that these are advanced settings and in certain cases can cause degradation or unexpected behaviors. To view the Flags section browse to chrome://flags/ in the address field.

Flags that may help with performance:

  • Override software rendering list: This allows GPU acceleration on unsupported configurations. Useful if you tend to run experimental GPU drivers or if you think your GPU is not being recognized for some reason.
  • GPU Accelerated SVG Filters: This lets the GPU do work for some type of SVG filters.
  • Threaded compositing: This will allow secondary threads to be dedicated to page compositing.
  • Disable GPU VSync: Removes Vsync with your monitor's refresh rate.
  • GPU compositing on all pages: Force GPU compositing on all pages, not just those with GPU features.

Firefox

  • turning off "form autofill" Sometimes Firefox mistakes Roll20 character sheets for web form to be filled out, and then processes all the suggestions it can figure out for each field, for each character sheet.

Network Connection

Network connection refers to two things: the amount of information your connection can carry at once ("bandwidth") and the speed at which it can make a round-trip to the Roll20 servers ("latency").

The virtual tabletop itself is very lightweight from a bandwidth perspective. Common actions such as sending a chat message or moving a token require very little data. In fact, you and your players will spend much more time downloading image files for tokens and maps included in the game than you will due to performing actions in the interface. For example, you would need to move 1,000 tokens at the same time to generate as much data as it takes to download one small 7 KB token image. This means that even if you have a "slow" connection (e.g. 768 Kb/s, a common low-end DSL speed), your use of the Roll20 tabletop should not be very affected. A slow bandwidth will mostly cause you to have a long initial load time, and you may see images loading in slowly if your GM adds more throughout the game.

Latency, on the other hand, determines how quickly you'll receive changes during gameplay. If you have a very unreliable connection (such as via a 3G cellular signal or satellite Internet service), you may experience high latency. Roll20 is designed to be fairly fault-tolerant, so you'll still be able to participate, but you may experience delays of several seconds between someone moving a token piece and it appearing to move on your screen.

Video Chat

By far, the part of Roll20 most-affected by your network connection is the integrated voice and video chat. It is recommended that you have at least 250 Kb/s of downstream bandwidth for each member of your group, as well as at least 250 Kb/s of upload bandwidth for broadcasting a video stream from your computer to the group. High latency will also affect your video chat performance, causing there to be delays or even dropped/skipped frames (resulting in "jerky" video).

If you are using the built-in Roll20 video chat and it's not working well for you, and especially if you are located outside of the United States, you could consider using another voice/video service. Many use Discord for voice/video, instead of Roll20's built-in options.

Using a separate service for voice, while using Roll20 for the tabletop and video only, might make for a more stable Roll20 experience. That way, if your video/voice service or Roll20 have issues, you have the other one to rely on. If Discord is acting up, you can then switch to use Roll20 again for voice.

Common Issues

Below are a few common performance issues seen by Roll20 users, and their cause:

  • The map and sidebar are compressed into the top of my browser. This is usually caused by an extension or plugin. Try deactivating your extensions and plugins until you find the one causing the problem.
  • Jerky/slow scrolling/panning/zooming. This is caused by low graphical rendering performance. See the section above for tips on improving graphic performance.
  • Fog of War and/or grid completely disappears on the map. This is caused by your graphics card running out of video memory. You'll need to use smaller maps.
  • When scrolling/panning, the grid or fog of war "lags behind", revealing parts of the map. This is caused by low graphical rendering performance. Your best bet is to use a smaller map, or not use the fog of war feature.
  • Jerky video chat, skipping, dropped frames, "laggy". Could be caused by either network or graphical performance issues. Try using voice-only chat, using a dedicated video chat service, or disabling Roll20 video/voice chat entirely.
  • There is a delay between when I see a text chat message appear and when someone says something about it in the video chat. There is a standard delay of a second or two in the video chat -- a lot of data has to make a trip to a server and then to your other group members, and the connection speeds and latency of the hops in between slow things down. If you're seeing a larger delay than that, it's most likely a latency issue.

Additional Suggestions from the Forums

Optimization Tips/Suggestions copied from the forum post: Lag

  1. Uninstall the very questionable third party tools and use the scripts made here in their place.
  2. If you have doorknocker API installed, make sure any other non door maps are not accidentally drawn in the colors for doorknockers color codes. If they are, that’s a TON of doorknocker api auras drawn on the page and will lag you to all hell. (Additional Comment: If you are careful with your DL line colors, Doorknocker shouldn't be an issue. I use it all the time.)
  3. Health auras looks so cool, but the more auras on tokens, the “laggier” the game gets. Keep an eye on various API's cause some use invisible auras like doorknocker.
  4. Turn off UDL, turn on LDL. The people running roll20 seem to want to reduce their customer base by raising the hardware requirements for their product. They are constantly pushing folks into UDL and its a hot mess that dumps a ton of users out the back door. (Additional Comment: Personally speaking, I have not had any lag that I can attribute to the New Dynamic Lighting. Quirks yes, lag no. I know this is not true of all folks. Try both and see which works better for you. If you do use LDL, be aware that universal light with advanced fog of war will absolutely kill performance.)
  5. If you are using dynamic lighting and have twilight clerics, try to get away with only doing 120 DV on their tokens till they ask for the full distance.
  6. Host on dev on weekends.
  7. Don't share sessions to non paying users. You are contributing to the congestion when you give folks pro sessions to host with. (Additional Comment: I do host games for my friends to run, but only games for which I am a player. If that's the use case, it won't impact the number of games being run.)
  8. Try to offload assets to other sessions and run a very narrow live session for the players. You have a feature called Transmogrifier that lets you move virtually everything off your live session and onto your live session in seconds. Its at the very bottom of the settings tab on the right side. Its hidden if you have the third party tools installed. (Additional Comment: Heavy agreement with the use of Transmogrifier to maintain a Library Campaign. This and the API are the biggest draws to a Pro account.)
  9. If you use Torch API, try to limit the use of flicker to just player tokens and use stationary lights for environmentals.
  10. Keep players sheet access to less then 5 total sheets, keep yours as low as possible, drag out from monster manual or create a bestiary and transmog creatures as you need them.
  11. If playing a game that features a resource like spells, limit the number of spells on a sheet at any given time to as few as playable. Spells have a lot of data fields and bloat a sheet very quickly.
  12. Use short lines for DL. Keep them simple. They are easier to edit in case of error or change, and are less mathematically demanding. And use the Poly line tool. Avoid curves and circles unless necessary. They work now, but can still lead to unexpected results in high numbers.
  13. It's better to divide very large maps into different pages, when possible.
  14. Look into automation. As a Pro user, you have access to API scripts, which can automate many mundane tasks and mitigate the experience of lag.
  15. Turn off vision for all the NPCs and monsters on your maps. The more tokens with 'vision' the greater the demand on the system to make all those calculations/lighting adjustments. As DM, I can turn on any token 'vision' to check line of sight or any other vision parameter before turning it back off. My games all picked up smoothness of operation and reduction of lags (despite being on weekend nights) when I made this change.

See Also