|  | @@ -227,20 +227,11 @@ public unsafe class BRGRenderBasic
 | 
	
		
			
				|  |  |          // 计算最后一个窗口中的实例数量
 | 
	
		
			
				|  |  |          int itemInLastBatch = m_instanceCount - m_maxInstancePerWindow * completeWindows;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        // 如果最后一个窗口中有数据需要上传
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  |          // if (itemInLastBatch > 0)
 | 
	
		
			
				|  |  |          // {
 | 
	
		
			
				|  |  | -        //     // 计算窗口在float4单位中的偏移量
 | 
	
		
			
				|  |  | -        //     int windowOffsetInFloat4 = (lastBatchId * m_alignedGPUWindowSize) / 16 * 3;
 | 
	
		
			
				|  |  | -        //     // 计算obj2world矩阵在缓冲区中的偏移量
 | 
	
		
			
				|  |  | -        //     int offsetMat1 = windowOffsetInFloat4 + m_maxInstancePerWindow * 0;
 | 
	
		
			
				|  |  | -        //     // 计算world2obj矩阵在缓冲区中的偏移量
 | 
	
		
			
				|  |  | -        //     int offsetMat2 = windowOffsetInFloat4 + m_maxInstancePerWindow * 3;
 | 
	
		
			
				|  |  | -        //     // 计算颜色数据在缓冲区中的偏移量
 | 
	
		
			
				|  |  | -        //     int offsetColor = windowOffsetInFloat4 + m_maxInstancePerWindow * 3 * 2;
 | 
	
		
			
				|  |  | -        //     // 上传obj2world矩阵数据(每个实例3个float4)
 | 
	
		
			
				|  |  |          //
 | 
	
		
			
				|  |  | -        //     m_GPUPersistentInstanceData.SetData(m_sysmemBuffer, offsetMat1, offsetMat1, itemInLastBatch * 3);
 | 
	
		
			
				|  |  | +        //     m_GPUPersistentInstanceData.SetData(m_transfromBuffer, 0, 0, itemInLastBatch * 3);
 | 
	
		
			
				|  |  |          //     // 上传world2obj矩阵数据(每个实例3个float4)
 | 
	
		
			
				|  |  |          //     m_GPUPersistentInstanceData.SetData(m_sysmemBuffer, offsetMat2, offsetMat2, itemInLastBatch * 3);
 | 
	
		
			
				|  |  |          //     // // 上传颜色数据(每个实例1个float4)
 |