效能面板
The Performance panel provides statistics related to the model, graphics, and document, in addition to system details. These statistics can alert you to areas where the document, Part Studio, and Assembly structure can be improved to obtain a more efficient performance.
在所有 Onshape 文件與分頁類型中都提供有「效能」面板,其位置是在視窗左上方文件面板 (在 Onshape 標誌下方垂直對齊) 內。
按一下「效能」圖示來開啟「效能」面板。
根據預設,效能面板表格會從上到下由最高數量排列到最低數量。例如,如果在「原始物件」表格 (在「分頁圖形」之下) 中「面」多於「直線」,則「面」會顯示在「直線」之上。按一下表頭「計數」標籤右側的向下箭號來反轉整個表格的排序順序,則會從上到下由最低數量排列到最高數量。
Part Studio
這個部分提供關於 Part Studio 的效能統計資料。
-
Total regeneration time - The time it takes the features in the Part Studio to execute, from beginning to end, displayed in milliseconds or seconds. You can view the full Part Studio regeneration time by clicking the Show regeneration times icon. This opens the Regeneration times for each feature in a separate panel.
-
Slowest x features - The slowest three features, that take more than ten seconds to regenerate.
-
Feature - Displays a dynamic list of all Features (for example, Extrude, Sketch, Derived, among others) that are used in the Part Studio. For each feature, the count is listed in the table's right column. This count does not include origin and default planes.
組合件
這個部分提供關於組合件的效能統計資料。
-
Mate solve time - The time it takes to solve the whole system of mates in the assembly, displayed in milliseconds or seconds.
-
Total instances - A dropdown section that opens the Category table for all instances. The Total instances count is equal to the total parts, total surfaces, total sketches, and total subassemblies. In all cases below, the count for each instance is listed in the table's right column.
-
Top level instances - All suppressed and unsuppressed instances that are brought into the assembly.
-
Total parts - All part and surface instances in the assembly. A part is a single, simply closed solid body created by Onshape features or by uploading and translating (importing) another CAD file. A surface is an entity that may have one or many faces, but no volume. In Onshape, surfaces are independent of parts, but are grouped here with parts, as a single category.
-
Total subassemblies - All Instances of parts, sketches, and surfaces that define both position and movement.
-
Unique parts - All one-of-a-kind part instances in the assembly.
-
Unique subassemblies - All one-of-a-kind subassembly instances in the assembly.
-
Unique sketches - All one-of-a-kind sketch instances in an assembly. A Sketch is a set of curves drawn on a plane, with a system of dimensions and constraints.
-
Unique surfaces - All one-of-a-kind surface instances in an assembly.
-
Tangent mates - All Tangent mates that contain at least one curved face, edge, or entity. The count does not include Tangent mates along straight edges or entities.
-
Mate limits - All Mate limits in the system. A Mate limit constrains the mate's range of movement.
-
-
Multiple configurations inserted - A dropdown section that appears when multiple configured Part Studios from a workspace are inserted into an Assembly and exceed a 15-second regeneration threshold. To reduce this regeneration time and improve performance, it is best practice to insert versions of all configured parts from the same Part Studio.
這個部分提供關於分頁圖形的效能統計資料。
Very fine tessellation - Dropdown section that opens the Very fine tessellation table listing all parts with tessellation quality set to Very fine in the part's Appearance dialog. The count for the number of parts is listed in parenthesis next to the Very fine tessellation label. Clicking on a part in the table selects the part in the graphics area.
Primitives - Dropdown section that opens the Primitive table. In all cases below, the count for each primitive is listed in the table's right column. Primitives are model objects (faces, edges, vertices) that feed into the graphics objects (triangles and lines).
當您建立零件、曲面與曲線時,這些項目是由面、邊線與頂點所組成。Onshape 會將草圖與零件圖元渲染為原始物件 (直線與三角形) 以在介面中渲染草圖與零件。如果直線與三角形越多,則從伺服器取得這些資訊 (延遲) 與繪製每個框架 (互動效能) 的時間越長。當您的設計中有許多面與邊線,和/或者面與邊線包含了不需要的複雜幾何,則效能可能會受到影響。
-
Faces - All faces in the tab. A face is a model object; a portion of a part, surface, or closed sketch region having area and bounded by edges. For example, a rectangular part has six faces. Note that faces do not necessarily need to be bounded by edges, such as a sphere.
-
Edges - All edges in the tab. An edge is a model object; a curve, bounded by vertices, which may exist on its own, or bound a set of faces on a part or surface. Edges can have any number of shapes.
-
Vertices - All vertices in the tab. A vertex is a model object; a zero dimensional point at the end of an edge.
-
Triangles - All triangles in the tab. A triangle is a graphics primitive used to render faces and parts for visualization. The rendering of the triangles is handled by your graphics card.
-
Lines - All lines in the tab. A line is a graphics primitive used to render edges, curves, other single dimensional entities for visualization. The rendering of the lines is handled by your graphics card.
Shift+r
如下所示,您可以為特定的 Part Studio 或 Assembly 從視角立方體功能表中叫用高品質模式,以在模型建構空間中以高鑲嵌品質顯示可見的零件/組合件:
當啟用時,下列的訊息會出現在效能面板中「分頁圖形」區域的下方:
這個高品質模式會在瀏覽模型時以高鑲嵌品質呈現幾何。當瀏覽模型時,不可見的零件會以高品質渲染影像,這些零件會變為可見的。這個操作需要呼叫伺服器,可能需要花一些時間。因此您可能會在視窗底部看到這個訊息:
無法直接查看到或完全未顯示的零件會以較差的品質顯示。
在為 Part Studio 或 Assembly 開啟這個模式之後,即使在編輯的操作過程中,模式在該分頁仍會保持為開啟。某些操作模型的結果可能會在鑲嵌完成之後才能獲得。
若要關閉高品質模式,您可以按一下分頁最上方藍色橫幅中的 [停用],或開啟視角立方體功能表,然後選擇 [停用高品質模式]:
這個部分提供關於文件的效能統計資料。
Tabs - Dropdown section that opens the Tab table. In all cases below, the count for each tab is listed in the table's right column.
-
Other tabs - All Other tabs in the document, such as applications, blob tabs, and images.
-
Part Studios - All Part Studios in the document. A Part Studio is a parametric, feature-based geometric model that creates parts.
-
Assemblies - All Assemblies in the document. Assemblies are a collection of instances of parts, sketches, surfaces, or subassemblies that defines both position and movement.
-
Drawings - All Drawings in the document. A drawing is a 2D rendering of parts or assemblies used to communicate manufacturing information.
瀏覽器與平台
-
Browser - The application used to view websites, specifically to view and work inside Onshape; Check your browser's compatibility
-
Version - Browser version number
-
Platform - The client operating system
-
GL vendor - The WebGL vendor (for example, NVIDIA)
-
GL renderer - The WebGL renderer (for example, GeForce RTX 3080)
WebGL 與擴充功能
-
Float textures - A WebGL extension used for rendering section planes and blending of transparent objects. Without this extension, this functionality is disabled.
-
Float buffer blending - A WebGL extension used for rendering section planes end caps. Without this extension, this functionality is disabled.
-
Anisotropic texture filtering - A WebGL extension used to provide high-quality texture rendering in the 3D scene.
-
32-bit indices - A WebGL extension used to optimize rendering performance. Lack of 32-bit index support may result in decreased rendering performance.
-
High precision fragment shaders - WebGL extensions that are required for ambient occlusion visualization feature. If they are not available, this functionality is disabled.
網路與區域
-
Latency - The time it takes for data to be transferred between the Onshape server and the client machine
-
Region - The Onshape server region to which you are connected
-
Expected region - The Onshape server region closest to your location
效能面板圖示
下方的表格概述這些圖示與其意涵:
圖示 | 意涵 |
資訊訊息 - 會於未來導致效能問題的實體。即使不需要採取立即的行動,您應該記下問題並避免重複會導致問題的工作流程。按一下圖示來在面板的底部開啟相關的訊息。 | |
警告訊息 - 實體並未以最佳化方式執行,導致分頁或文件變得較慢。於近期內排解較慢的實體來加快文件效能的速度。按一下圖示來在面板的底部開啟相關的訊息。 | |
錯誤訊息 - 實體使您無法以最佳化方式使用 Onshape。請立即根據指示操作來解決這個問題。按一下圖示來在面板的底部開啟相關的訊息。 | |
最上層資訊 - 表示在最上層部分的子區段中有資訊訊息 | |
最上層警告 - 表示在最上層部分的子區段中有警告訊息 | |
最上層錯誤 - 表示在最上層部分的子區段中有錯誤訊息 |
關於資訊訊息、警告訊息與錯誤訊息,相對應的圖示會重疊出現在效能面板的最上方。
效能面板錯誤指示
This Performance panel icon indicates that there are one or more of the following errors:
-
不支援的瀏覽器
-
流覽器不支援的 WebGL
-
WebGL 內容遺失
按一下圖示來開啟「效能」面板以調查錯誤。
效能面板訊息
當系統辨識出效能問題時,會有一個圖示出現在「效能面板」中導致問題的實體旁。按一下圖示來在面板底部開啟相關的訊息。若要關閉警告訊息,請按一下訊息方塊右上角的 x。下方的圖片是一個警告訊息的範例:
下方的表格摘要列出「效能面板」的訊息與其類型 (訊息的嚴重程度),這些訊息的觸發條件、訊息的環境 (訊息會在使用者於軟體中何處時顯示),以及可從何處獲得解決效能問題的詳細訊息。
訊息 | 訊息類型 | 訊息觸發條件 | 訊息環境 | 解析度 | |
[Feature Name] contains features that took a long time to regenerate. Improve performance by troubleshooting features with long regeneration times. | 警告 | 個別特徵的重生成時間大於 10 秒 | Part Studio | See Check regeneration times in the Part Studio | |
[Document Name] took a long time to load. Improve performance by troubleshooting features with long regeneration times. | 資訊 | 總重生成時間大於 30 秒 | Part Studio | See Check regeneration times in the Part Studio | |
[Document Name] took a long time to load. Improve performance by troubleshooting features with long regeneration times. | 警告 | 總重生成時間大於 60 秒 | Part Studio | See Check regeneration times in the Part Studio | |
[Part Studio Name] contains many features. Lots of features will cause long regeneration times. Consider using in-context references. | 警告 | 特徵總數大於 500 | Part Studio | See Modeling In Context | |
Main Assembly 中有最高可用鑲嵌品質的零件。增加鑲嵌品質可能會導致圖形效能的問題,請降低鑲嵌品質來改善效能。 | 資訊 | 極精細鑲嵌 | Part Studio / 組合件 | See Specifying tessellation quality of parts | |
[Assembly Name] took [x time] to solve mates. Onshape mates are more efficient and only require one mate between any two instances. | 警告 | 組合件解出時間大於 5 秒 | 組合件 | See Tips for working with Mates | |
[Assembly Name] has multiple configurations from a workspace. Multiple configuration from a workspace can impact Assembly performance. Improve performance by using versions. | 資訊 | Configuration regeneration exceeds 15 seconds | 組合件 | See Versions | |
[Assembly Name] has multiple configurations from a workspace. Multiple configuration from a workspace can impact Assembly performance. Improve performance by using versions. | 警告 | Configuration regeneration exceeds 30 seconds | 組合件 |
See Versions |
|
[x document] contains many document tabs. Improve performance by moving tabs into different documents. Right-click on the tab and select Move to document. | 資訊 | 分頁的總數量是介於 250 到 500 之間 | 文件 | See Keep tabs per document at a reasonable number | |
[x document] contains many document tabs. Improve performance by moving tabs into different documents. Right-click on the tab and select Move to document. | 警告 | 分頁總數大於 500 | 文件 | See Keep tabs per document at a reasonable number | |
[x document] contains many document tabs. Improve performance by moving tabs into different documents. Right-click on the tab and select Move to document | 資訊 | Part Studios 或 Assemblies 的總數介於 150 到 200 之間 | 文件 | See Keep tabs per document at a reasonable number | |
[x document] contains many document tabs. Improve performance by moving tabs into different documents. Right-click on the tab and select Move to document. | 警告 | Part Studios 或 Assemblies 的總數大於 200 | 文件 | See Keep tabs per document at a reasonable number | |
您與我們伺服器間的網路連線稍弱,可能會導致效能的問題,請使用「硬體與圖形建議事項」中的建議來改善連線速度。 | 警告 | Latency is greater than 250 ms | 系統 | See Network and Region Issues. | |
You are connected to a data center outside your current region. You are not connecting to a data center in our region, which can cause performance issues. Improve connection by using our Hardware and Graphics Recommendations. |
警告 | Expected region differs from Region | 系統 | See Network and Region Issues. | |
不支援的系統。請使用在硬體與圖形建議事項中建議的 Onshape 支援瀏覽器與平台。 | 錯誤 | 不支援的瀏覽器 | 系統 | See Hardware and Graphics Performance Recommendations | |
不支援 WebGL。請確定您的瀏覽器已將 WebGL 啟動。關於 WebGL 支援的詳細資訊請參考硬體與圖形建議事項。 | 錯誤 | 不支援 WebGL | WebGL | See Hardware and Graphics Performance Recommendations |
The Performance panel is a general list of factors and statistics that have performance implications. Factors in the performance panel may not be the main reason behind performance issues. If you have implemented resolutions outlined in this topic and associated help topics, and performance does not improve, contact Customer Support.
For more information see Performance.