Skip to content

HL2 JIT - #911

Closed
ncannasse wants to merge 117 commits into
masterfrom
hl2_ir
Closed

HL2 JIT#911
ncannasse wants to merge 117 commits into
masterfrom
hl2_ir

Conversation

@ncannasse

Copy link
Copy Markdown
Member

This is a WIP branch with a new JIT using an Intermediate Representation (IR) and optimized register allocation.
This will allow more easy maintain, ports to ARM or other CPUs, and better runtime performances

@skial skial mentioned this pull request Mar 24, 2026
1 task

@bmdhacks bmdhacks left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good stuff here. You're inspiring me to look at the ARM pr to make sure my register efficiency matches this. Anwyays, well done!

@ncannasse

Copy link
Copy Markdown
Member Author

@bmdhacks our games are running and already showing 10-20% speedup vs HL v1. I'll work on more opts then finalise debugger support, with the goal to switch fully to v2 soon.

@bmdhacks

bmdhacks commented Jul 30, 2026

Copy link
Copy Markdown

@bmdhacks our games are running and already showing 10-20% speedup vs HL v1. I'll work on more opts then finalise debugger support, with the goal to switch fully to v2 soon.

Lemme know and I'll dive in to the ARM PR and make sure it's up to speed. I've been working on other ARM dynarecs lately and have a lot more experience (from when I first submitted it) in optimizations that I can add. Also I'm happy to spend as much time as you like on derobotizing it and generally bringing the code smells up to your standards.

@bmdhacks

bmdhacks commented Jul 30, 2026 via email

Copy link
Copy Markdown

@datee

datee commented Jul 31, 2026

Copy link
Copy Markdown

Just wanted to leave a comment and say i really hope the Arm PR will be merged. Have been experimenting with v2 and @bmdhacks PR and found it to be already very good. Have already built fully working JIT apps for platforms like Android and Raspberry Pi. Had to fix some real world issues, so will create some pull requests.

@ncannasse

Copy link
Copy Markdown
Member Author

Closing this, now replaced by #968

@ncannasse ncannasse closed this Aug 1, 2026
@ncannasse

Copy link
Copy Markdown
Member Author

@bmdhacks I'm waiting to merge the HLv2 before taking any other build, as internals might still evolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants