{"id":23076723,"url":"https://github.com/antzGames/libGDX_GWT_TeaVM_Performance","last_synced_at":"2025-08-15T18:32:53.133Z","repository":{"id":238938797,"uuid":"798036858","full_name":"antzGames/ModelCacheTest","owner":"antzGames","description":"A test repo to test the performance of ModelCache on various backends.","archived":false,"fork":false,"pushed_at":"2024-08-25T21:25:03.000Z","size":427,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-26T20:36:31.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antzGames.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T01:02:43.000Z","updated_at":"2024-08-25T21:25:06.000Z","dependencies_parsed_at":"2024-05-09T02:26:49.022Z","dependency_job_id":"df652623-3c35-4c67-a247-e3111448e573","html_url":"https://github.com/antzGames/ModelCacheTest","commit_stats":null,"previous_names":["antzgames/modelcachetest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antzGames%2FModelCacheTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antzGames%2FModelCacheTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antzGames%2FModelCacheTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antzGames%2FModelCacheTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antzGames","download_url":"https://codeload.github.com/antzGames/ModelCacheTest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229941525,"owners_count":18148294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T09:56:45.665Z","updated_at":"2025-08-15T18:32:47.766Z","avatar_url":"https://github.com/antzGames.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModelCacheTest\n\nPress P to cycle between Model Cache Test and Prime Number Test.\n\n## Model Cache Test results:\n\nSee video: https://youtu.be/6qUZIZu6-AI\n\nDesktop: 1.0x (used as a baseline)\n\nGWT: 23.7x slower than desktop\n\ngdx-teaVM: 8.8x slower than desktop\n\n## Prime Number Test results:\n\nSee video: https://youtu.be/vMdqeVIcF6I\n\nDesktop: 1.0x (used as a baseline)\n\nGWT: 6.78x slower than desktop\n\ngdx-teaVM: 1.24x slower than desktop\n\n# Conclusions\n\nGWT (the official libGDX web backend) generates JS code that performs extremely poorly.\n\ngdx-teavm performs very well with java only code (no libGDX classes), but using libGDX classes it performs poorly.\n\nWhat is it in the libGDX classes that is causing a 4-6x slowdown in GWT/gdx-teavm? \n\nNote: Godot uses Emscripten to make web builds, and produces WASM (WebAssembly) code that performs on par with compiled C++ code.\n\nIf you are going to target the web, please do not use libGDX to make games.\n\nSee: https://www.youtube.com/playlist?list=PLQxIUTu_M7Z_5rwPRWBOjEzACH-f2_yX6\n\n## Platforms\n\n- `core`: Main module with the application logic shared by all platforms.\n- `lwjgl3`: Primary desktop platform using LWJGL3.\n- `html`: Web platform using GWT and WebGL. Supports only Java projects.\n- `teavm`: Experimental web platform using TeaVM and WebGL.\n\n## Gradle\n\nThis project uses [Gradle](https://gradle.org/) to manage dependencies.\nThe Gradle wrapper was included, so you can run Gradle tasks using `gradlew.bat` or `./gradlew` commands.\nUseful Gradle tasks and flags:\n\n- `html:dist`: compiles GWT sources. The compiled application can be found at `html/build/dist`: you can use any HTTP server to deploy it.\n- `lwjgl3:run`: starts the application on desktop.\n- `teavm:run`: serves the JavaScript application at http://localhost:8080 via a local Jetty server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FantzGames%2FlibGDX_GWT_TeaVM_Performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FantzGames%2FlibGDX_GWT_TeaVM_Performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FantzGames%2FlibGDX_GWT_TeaVM_Performance/lists"}