Skip to content

Commit

Permalink
add aot mode for best performance
Browse files Browse the repository at this point in the history
  • Loading branch information
cc004 committed Dec 16, 2023
1 parent b351043 commit 71827e9
Show file tree
Hide file tree
Showing 174 changed files with 4,958 additions and 821 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Wireshark

Wireshark is a wire accelarator for terraria, which can run in both jit and aot mode.

### Usage

#### JIT mode

Just load WireShark mod into the game and enjoy

#### AOT mode

Now that only Windows platform is supported, but migrating to other platforms is easy.

1. Codegen

Load WireShark mod into game, and enter the map once. The mod will write `impl.cpp` into your mod folder.

2. Compile

move the file `impl.cpp` to WireSharkLib folder and run cmake, release mode is suggested.

3. Run

move the `libWireSharkLib.dll` to your mod folder, **disable the WireShark mod** and load WireSharkRuntime mod into the game and enter the same map as which you run codegen on.
Loading

0 comments on commit 71827e9

Please sign in to comment.