mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	Update placefile polygon data outside of render loop
This commit is contained in:
		
							parent
							
								
									a4027ba120
								
							
						
					
					
						commit
						8f2b87790a
					
				
					 3 changed files with 76 additions and 74 deletions
				
			
		|  | @ -91,9 +91,6 @@ public: | |||
|    bool dirty_ {false}; | ||||
|    bool thresholded_ {false}; | ||||
| 
 | ||||
|    std::vector<std::shared_ptr<const gr::Placefile::PolygonDrawItem>> | ||||
|       polygonList_ {}; | ||||
| 
 | ||||
|    boost::container::stable_vector<TessVertexArray> tessCombineBuffer_ {}; | ||||
| 
 | ||||
|    std::mutex           bufferMutex_ {}; | ||||
|  | @ -243,9 +240,6 @@ void PlacefilePolygons::StartPolygons() | |||
|    // Clear the new buffer
 | ||||
|    p->newBuffer_.clear(); | ||||
|    p->newThresholdBuffer_.clear(); | ||||
| 
 | ||||
|    // Clear the polygon list
 | ||||
|    p->polygonList_.clear(); | ||||
| } | ||||
| 
 | ||||
| void PlacefilePolygons::AddPolygon( | ||||
|  | @ -253,7 +247,6 @@ void PlacefilePolygons::AddPolygon( | |||
| { | ||||
|    if (di != nullptr) | ||||
|    { | ||||
|       p->polygonList_.emplace_back(di); | ||||
|       p->Tessellate(di); | ||||
|    } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat