Skip to content

Commit

Permalink
Remove outdated information and dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Jan 16, 2024
1 parent 69cd96f commit d3c73d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This repository is built as a demonstration of how you could use advanced techni

All the host-side code is in the engine folder, and is written as if it was running inside a tiny fictional game framework.

The script programs are using modern C++20 using a GNU RISC-V compiler with RTTI and exceptions being optional. Several CRT functions have been implemented as system calls, and will have native performance. There is also Nim support and some example code.
The script programs are using modern C++20 using a GNU RISC-V compiler with RTTI and exceptions being optional. Several CRT functions have been implemented as system calls, and will have native performance.

The example programs have some basic timers and threads, as well as some examples making calls between machines.

Expand Down
15 changes: 1 addition & 14 deletions engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,7 @@ int main()

strf::to(stdout)("...\n");

/* ** Call events of a shared game object **
1. Share memory with the guest
2. Set up the objects
3. Call with address as offset from shared area
*/
static constexpr Script::gaddr_t OBJECT_AREA = 0xC000000;
/*** Call events of shared game objects ***/

struct GameObject
{
Expand All @@ -103,11 +98,6 @@ int main()
// host pointers, which we don't want to share.
Script::gaddr_t onDeath = 0x0;
Script::gaddr_t onAction = 0x0;

static Script::gaddr_t address(size_t i)
{
return OBJECT_AREA + i * sizeof(GameObject);
}
};

/** Allocate 16 objects on the guest.
Expand Down Expand Up @@ -159,9 +149,6 @@ int main()

if (Script::get_global_setting("benchmarks").value_or(false))
{
// Create an dynamic function for benchmarking
gameplay.set_dynamic_call("void sys_empty ()", [](auto&) {});

// Benchmarks of various features
gameplay.call("benchmarks");
}
Expand Down

0 comments on commit d3c73d8

Please sign in to comment.