Skip to content

Commit

Permalink
Updated README and Usage (Emscripten 3.1.69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Oct 13, 2024
1 parent aa9afa1 commit d0d9e6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@ Introduction
This project is an Emscripten port of GLFW written in C++ for the web/wasm platform. The currently supported
GLFW API is 3.4.

[![emscripten - TBD](https://img.shields.io/badge/emscripten-TBD-blue)](https://emscripten.org)
[![emscripten - 3.1.69](https://img.shields.io/badge/emscripten-3.1.69-blue)](https://emscripten.org)
[![Latest - 3.4.0.20241004](https://img.shields.io/badge/Latest-3.4.0.20241004-blue)](https://github.com/pongasoft/emscripten-glfw/releases/latest)
[![GLFW - 3.4.0](https://img.shields.io/badge/GLFW-3.4.0-blue)](https://www.glfw.org/)
[![License](https://img.shields.io/badge/License-Apache%20License%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
![Compiles](https://github.com/pongasoft/emscripten-glfw/actions/workflows/main.yml/badge.svg)

[![emscripten - 3.1.66](https://img.shields.io/badge/emscripten-3.1.66-blue)](https://emscripten.org)
[![Previous - 3.4.0.20240907](https://img.shields.io/badge/Previous-3.4.0.20240907-blue)](https://github.com/pongasoft/emscripten-glfw/releases/latest)
[![GLFW - 3.4.0](https://img.shields.io/badge/GLFW-3.4.0-blue)](https://www.glfw.org/)


Goal
----

Expand Down Expand Up @@ -197,7 +192,7 @@ emcc --use-port=contrib.glfw3:disableWarning=true:disableMultiWindow=true main.c
> #### Note about availability in Emscripten
> | Emscripten | this port |
> |------------|----------------|
> | TBD | 3.4.0.20241004 |
> | 3.1.69 | 3.4.0.20241004 |
> | 3.1.66 | 3.4.0.20240907 |
> | 3.1.65 | 3.4.0.20240817 |
> | 3.1.63 | 3.4.0.20240627 |
Expand Down Expand Up @@ -229,7 +224,7 @@ Note that care has been taken to be backward compatible with the pure JavaScript
Release Notes
-------------
#### 3.4.0.20241004 - 2024-10-04 | Emscripten TBD
#### 3.4.0.20241004 - 2024-10-04 | Emscripten 3.1.69
- Implemented custom cursors (`glfwCreateCursor`)
- uses a canvas to draw the cursor image into it and convert it into a URL (`canvas.toDataURL()`)
Expand Down
8 changes: 4 additions & 4 deletions docs/Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ As of initial release, I ran the following experiment on both implementations us
## Implementation size (update)
![emscripten - 3.1.65](https://img.shields.io/badge/emscripten-3.1.65-blue)
![emscripten-glfw-3.4.0.20240817](https://img.shields.io/badge/emscripten--glfw-3.4.0.20240817-blue)
![emscripten - 3.1.69](https://img.shields.io/badge/emscripten-3.1.69-blue)
![emscripten-glfw-3.4.0.20241004](https://img.shields.io/badge/emscripten--glfw-3.4.0.20241004-blue)
```text
> cd examples/example_minimal
Expand All @@ -530,8 +530,8 @@ As of initial release, I ran the following experiment on both implementations us
| Mode | `library_glfw.js` | This implementation | Delta |
|-------------------|----------------------------------------|------------------------------------------|-------|
| Release | js: 104114, wasm: 13867, total: 117981 | js: 59101, wasm: 71358, total: 130459 | 1.10x |
| Release (minimal) | - | js: 56813, wasm: 63965, total: 120778 | 1.02x |
| Release | js: 103908, wasm: 13903, total: 117811 | js: 59019, wasm: 73839, total: 132858 | 1.13x |
| Release (minimal) | - | js: 56795, wasm: 66456, total: 123251 | 1.04x |
> [!NOTE]
> The good news is that Emscripten is improving and this implementation is benefitting from it.
Expand Down

0 comments on commit d0d9e6e

Please sign in to comment.