Optimize 3D asset loading and rendering performance#1
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Eyang0612 <106649795+Eyang0612@users.noreply.github.com>
Co-authored-by: Eyang0612 <106649795+Eyang0612@users.noreply.github.com>
Co-authored-by: Eyang0612 <106649795+Eyang0612@users.noreply.github.com>
Co-authored-by: Eyang0612 <106649795+Eyang0612@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Optimize resource loader for performance improvements
Optimize 3D asset loading and rendering performance
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reduces initial load time and improves rendering performance, particularly on mobile devices and high-DPI displays.
Resource Loading
/draco/tohttps://www.gstatic.com/draco/versioned/decoders/1.5.6/for cross-site cachingconsole.time/timeEndfor diagnosticsRenderer Optimizations
VSMShadowMaptoPCFSoftShadowMapgetOptimalPixelRatio(), capped at 2 to prevent excessive resolution on high-DPI displaysMemory Management
Room.dispose()to clean up geometries and materialsTHREE.Meshinstances before accessinggeometry/materialpropertiesOriginal prompt
Problem Statement
The PersonalWebsite currently loads 3D models but could benefit from performance optimizations to reduce loading time and improve user experience.
Required Changes
1. Optimize Resource Loader (
person-website/Experience/Utils/Resource.ts)Add progress tracking and error handling:
Use CDN for Draco decoder:
/draco/to Google's CDN:https://www.gstatic.com/draco/versioned/decoders/1.5.6/Example structure:
2. Optimize Renderer Settings (
person-website/Experience/Renderer.ts)Improve renderer performance:
powerPreference: "high-performance"to WebGLRenderer optionsTHREE.VSMShadowMaptoTHREE.PCFSoftShadowMapfor better performanceExample:
3. Add Geometry Optimization Utilities (
person-website/Experience/World/Room.ts)Optimize model loading:
Add a dispose method:
4. Improve Video Texture Loading (
person-website/Experience/Utils/Resource.ts)Optimize video texture settings:
5. Add Performance Monitoring
Track and log performance metrics:
Success Criteria
Additional Recommendations for Manual Implementation
The following optimizations should be done manually in Blender/design tools:
Testing
After implementation:
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.