Skip to content

Commit

Permalink
Remove box2d-optimized (#1913)
Browse files Browse the repository at this point in the history
Removed Box2D-optimized

it's is now obsolete; Erin Catto has developed Box2D v3 with many performance improvements, so please use that instead
  • Loading branch information
aismann authored May 22, 2024
1 parent 5b8a074 commit e1b3023
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

project(3rdparty)

option(OPT_BOX2D_OPTIMIZED "" OFF)
option(AX_WITH_JPEG "Build with internal jpeg support" ON)
option(AX_WITH_WEBP "Build with internal webp support" ON)
option(AX_WITH_CLIPPER2 "Build with internal Clipper2 support" ON)
Expand Down Expand Up @@ -253,12 +252,7 @@ ax_add_3rd(png)

if(AX_ENABLE_PHYSICS)
set(box2d_opts "BOX2D_BUILD_UNIT_TESTS OFF" "BOX2D_BUILD_TESTBED OFF")
if(OPT_BOX2D_OPTIMIZED)
_1kfetch(box2d-optimized)
ax_add_3rd(${box2d-optimized_SOURCE_DIR} TARGETS box2d-optimized OPTIONS ${box2d_opts})
else()
ax_add_3rd(box2d OPTIONS ${box2d_opts})
endif()
ax_add_3rd(box2d OPTIONS ${box2d_opts})
endif()

if(AX_ENABLE_PHYSICS)
Expand Down
5 changes: 0 additions & 5 deletions 3rdparty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
- Version: 2.4.1
- License: MIT

## Box2D-optimized
- Upstream: https://github.com/mtsamis/box2d-optimized
- Version: 7ef46c1
- License: MIT

## Bullet
- [![Upstream](https://img.shields.io/github/v/release/bulletphysics/bullet3?label=Upstream)](https://github.com/bulletphysics/bullet3)
- Version: 3.25
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ Axmol Engine has iterated and improved over the Cocos2d-x v4.0 base. Now is fast
* UWP (x64, arm64)
* Wasm32

**Supported 2D physics engines** ([more info here](https://github.com/axmolengine/axmol/wiki/2D-Physics-Engines-informations)):
**Supported 2D physics engines** ([more info here](https://github.com/axmolengine/axmol/wiki/2D-Physics-Engines-Information)):
* Box2D
* Box2D-optimized
* Chipmunk2D

**Supported 3D physics engines**:
Expand Down
1 change: 0 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Axmol 引擎在 Cocos2d-x v4.0 的基础上进行迭代和改进。现在速度
**支持2D物理引擎** ([更多相关信息](https://github.com/axmolengine/axmol/wiki/2D-Physics-Engines-informations)):

* Box2D
* Box2D-optimized
* Chipmunk2D

**支持3D物理引擎**:
Expand Down

0 comments on commit e1b3023

Please sign in to comment.