Commit Graph

2619 Commits

Author SHA1 Message Date
Syoyo Fujita
f7ec005ef1 Merge branch 'release' into dev 2026-01-07 06:58:28 +09:00
Syoyo Fujita
50834c9c14 Merge branch 'dev' of github.com:lighttransport/tinyusdz into dev 2026-01-07 06:55:55 +09:00
Syoyo Fujita
f017d061bd add license term 2026-01-07 06:55:43 +09:00
Syoyo Fujita
0011b4ea8f Clarify next release features in README
Updated the README to clarify planned features for the next release.
2025-12-25 00:09:21 +09:00
Syoyo Fujita
64bfb27c02 Add Lab project section to README 2025-12-23 00:18:05 +09:00
Syoyo Fujita
f7f4077fbd add DeepWiki Badge. 2025-12-13 04:35:48 +09:00
Syoyo Fujita
aa790cffe9 Update issue templates 2025-11-23 05:43:29 +09:00
Syoyo Fujita
e9a9dcca1e Update issue templates 2025-11-21 08:08:45 +09:00
Syoyo Fujita
5389a1d561 Update issue templates 2025-11-20 23:09:25 +09:00
Syoyo Fujita
889c0f6c37 Update issue templates 2025-11-20 23:07:15 +09:00
Syoyo Fujita
5a0c271bea Fix typo in PCP composition description 2025-11-13 08:32:17 +09:00
Syoyo Fujita
4005bf91aa Update README.md 2025-11-13 08:31:47 +09:00
Syoyo Fujita
6b80def462 Update README.md 2025-11-11 07:08:14 +09:00
Syoyo Fujita
27beb41d7b Update README.md 2025-11-11 07:07:02 +09:00
Syoyo Fujita
a04ee0bcbd Fix temporary object access(ss.str().c_str()), which may return wrong value in jsteemann::aoi.
Also add max digits length check.
v0.9.1
2025-11-04 03:16:12 +09:00
Syoyo Fujita
0089248743 Update README.md 2025-11-03 22:54:06 +09:00
Syoyo Fujita
03002078af Update README with MCP support information
Added MCP support details to the next release section.
2025-11-02 09:21:29 +09:00
Syoyo Fujita
2e35b344bb Update README.md 2025-11-02 09:14:00 +09:00
Syoyo Fujita
8dc86fe97e Fix dangling reference warnings in scene-access.cc
Changed reference binding to value copy for token variables in GetGeomSubsets and GetGeomSubsetChildren functions. This fixes compilation errors with GCC 14 which treats dangling reference warnings (-Wdangling-reference) as errors when using -Werror.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-18 02:09:43 +09:00
Syoyo Fujita
f85cdb6ad6 fix boolean check. 2025-10-06 09:21:15 +09:00
Syoyo Fujita
428a40f513 Add static_any implementation with small buffer optimization
- Type-erased container supporting up to 256 types via custom TypeTraits
- 24-byte small buffer optimization for stack allocation
- Automatic heap allocation for large types
- No C++ exceptions or RTTI required
- C++14 compatible implementation
- 32 bytes total overhead per instance

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 02:49:55 +09:00
Syoyo Fujita
b7f47bd303 Update README.md 2025-09-23 06:29:55 +09:00
Syoyo Fujita
c49ad62924 Merge pull request #258 from lighttransport/dependabot/npm_and_yarn/web/demo/vite-6.3.6
Bump vite from 6.3.5 to 6.3.6 in /web/demo
2025-09-23 06:27:10 +09:00
dependabot[bot]
ee48d5ca76 Bump vite from 6.3.5 to 6.3.6 in /web/demo
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.5 to 6.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 02:00:41 +00:00
Syoyo Fujita
a1c10da17c Merge pull request #255 from lighttransport/memcap
feat: Add memory limit enforcement for USDA/USDC parsers
2025-08-04 10:28:58 +09:00
Syoyo Fujita
bcca702522 Fix REDUCE_MEMORY_USAGE bug.
Use 128GB default for all USDA/USDC parser.
2025-08-04 10:19:28 +09:00
Syoyo Fujita
769d44bdc0 fix 32bit build. 2025-08-04 10:05:18 +09:00
Syoyo
2f0c391ffd possible compile fix. 2025-08-04 10:00:46 +09:00
Syoyo
61725d4278 Merge branch 'memcap' of github.com:syoyo/tinyusdz into memcap 2025-08-04 09:54:23 +09:00
Syoyo
8771c8cf3a Merge branch 'dev' into memcap 2025-08-04 09:53:06 +09:00
Syoyo
b48c7b4720 fix compile. 2025-08-04 09:34:14 +09:00
Syoyo Fujita
37b039dc32 Improve error message. 2025-08-04 09:29:55 +09:00
Syoyo Fujita
667bae4601 fix compile on MSVC. 2025-08-04 09:27:13 +09:00
Syoyo
a630c88d62 fix compile. 2025-08-04 09:18:06 +09:00
Syoyo
39f38260f0 Merge branch 'memcap' of github.com:syoyo/tinyusdz into memcap 2025-08-04 09:16:09 +09:00
Syoyo Fujita
000755e66b feat: Add memory limit enforcement for USDA/USDC parsers
Implement configurable memory limits to prevent out-of-memory conditions when
  parsing large USD files. Memory usage is tracked during parsing and loading
  fails gracefully when limits are exceeded.

  USDC Parser:
  - Add memory tracking via CHECK_MEMORY_USAGE/REDUCE_MEMORY_USAGE macros
  - Track allocations in crate-reader.cc for tokens, arrays, and data structures
  - Pass memory limit from USDLoadOptions through USDCReaderConfig
  - Initialize _memoryUsage in CrateReader constructor

  USDA Parser:
  - Add max_memory_limit_in_mb to USDAReaderConfig (default 16GB)
  - Add memory tracking members to AsciiParser class (default 128GB)
  - Implement SetMaxMemoryLimit() method in AsciiParser
  - Track allocations for arrays, references, and string data
  - Add CHECK_MEMORY_USAGE calls in push_back operations

  Both parsers now:
  - Respect USDLoadOptions::max_memory_limit_in_mb setting
  - Provide clear error messages showing limit and current usage
  - Fail gracefully before system runs out of memory

  Testing:
  - Verified with suzanne-subd-lv5.usdc/usda at various limits (10MB, 50MB, 500MB)
  - Small files load successfully with 1MB limit
  - Memory limits properly enforced at different parsing stages

  This feature is especially useful for:
  - Mobile/embedded devices with limited memory
  - Server environments with resource quotas
  - Preventing DoS from malicious/corrupted USD files
  - Debugging memory usage patterns in USD files
2025-08-04 08:59:49 +09:00
Syoyo Fujita
17f515690b Merge branch 'point-instancer' of github.com:lighttransport/tinyusdz into point-instancer 2025-08-04 07:59:08 +09:00
Syoyo Fujita
9ee28c6a19 docker(podman) devcon initial. 2025-08-04 07:35:47 +09:00
Syoyo Fujita
864266461b Add dockerfile(experimental) 2025-08-04 06:07:19 +09:00
Syoyo Fujita
d5216bd73e Merge remote-tracking branch 'origin/release' into dev 2025-08-04 06:07:11 +09:00
Syoyo Fujita
1894c42026 Improve support for PointInstancer Prim 2025-08-02 13:04:29 +09:00
Syoyo Fujita
e2ee2618e7 support matrix type. 2025-07-28 11:42:04 +09:00
Syoyo Fujita
ef44ffd921 support more float/double types. 2025-07-28 11:41:28 +09:00
Syoyo Fujita
49eae68903 Merge pull request #253 from lighttransport/add-claude-github-actions-1753578212225
Add claude GitHub actions 1753578212225
2025-07-27 10:28:28 +09:00
Syoyo Fujita
02e06d8222 Claude Code Review workflow 2025-07-27 10:03:34 +09:00
Syoyo Fujita
a97fe0012a Claude PR Assistant workflow 2025-07-27 10:03:33 +09:00
Syoyo
5cf79781d1 use tinyusdz::str::parse_int 2025-07-26 07:08:56 +09:00
Syoyo Fujita
c07d4dae6a add parse_int expriment. 2025-07-26 05:50:03 +09:00
Syoyo Fujita
dd9e1649f7 optimzie floating point array parser. 2025-07-25 11:31:17 +09:00
Syoyo Fujita
0cc9febe59 Merge branch 'release' into fast-string 2025-07-25 06:50:52 +09:00