Graham
21a6886586
Activate mac-legacy profile automatically
5 years ago
Graham
c0e51084d2
Add default nar.javaHome value
5 years ago
Graham
e7b518e649
Fix cross-compiling for i386 on macOS
5 years ago
Graham
69feff1dac
Add mac-legacy profile for building against Java 6 on macOS
5 years ago
Graham
9960aec5ef
Use nar.javaHome instead of java.home
...
This allows the native libraries to be built against a JDK separate to the JDK
Maven runs under.
5 years ago
Graham
0d4edcd186
Use CGSize/CGRect where appropriate for 32-bit support
5 years ago
Graham
ea8dcbf9ec
Check that jaggl_context_appkit is non-NULL before update call
...
It is created after the observer is added, so there is a race condition.
5 years ago
Graham
fb429421ed
Update NSView-backed OpenGL context on resize
5 years ago
Graham
49a4cb3084
Remove macOS-specific resize logic from the client
...
Our custom jaggl natives update the OpenGL context upon resizing, unlike the
original natives.
5 years ago
Graham
e1d24ec065
Add legacy NSView support
...
NSView is used in preference to CALayer if available, as we avoid all the
framebuffer blitting overhead.
5 years ago
Graham
ae0baeb271
Include more specific headers on macOS
...
This reduces the compile time fairly significantly.
5 years ago
Graham
fd2fdd342e
Replace <source> and <target> with <release>
5 years ago
Graham
1333cc31e6
Format StringUtilsTest
5 years ago
Graham
64460da25a
Update IDEA's import style to match the impsort plugin settings
5 years ago
Graham
b53ab6f04a
Reduce screen corruption when resizing
...
This commit clears framebuffers when they are created, copies the contents of
the previous framebuffer to the new framebuffer when resizing and moves all the
resizing code into the blit method. All of these help to reduce screen
corruption, although a small amount still remains if you resize quickly.
5 years ago
Graham
0f7b2ea9ca
Blit before swapping framebuffers
...
This fixes latency (and also screen corruption when resizing), as we blitted a
framebuffer that had already been displayed on the off-screen window rather
than the one that had just been rendered.
5 years ago
Graham
5e18198ae4
Make releaseCGLContext a no-op
...
It is sometimes called after the context is destroyed. Attempting to call any
gl* functions in this case causes a segfault.
5 years ago
Graham
9b7086f3a5
Resize off-screen window after resizing the framebuffer
5 years ago
Graham
293a37c593
Lock framebuffer variables accessed from multiple threads
5 years ago
Graham
ebcd7a6911
Add comment to the flushBuffer/glFlush call on macOS
5 years ago
Graham
57e61da679
Set swap interval of the onscreen context on macOS
5 years ago
Graham
82e2c1f01a
Disable CAOpenGLLayer asynchronous mode
...
canDrawInCGLContext is called far more often than blit, so it seems like a
waste of effort.
5 years ago
Graham
a2edbb8781
Create NSOpenGLContext synchronously
...
This is consistent with all other code that runs on the main UI thread, and
slightly easier to reason about.
5 years ago
Graham
d7be5f667e
Add list of known macOS bugs to the gl-natives README
5 years ago
Graham
913057b61d
Fix JagGLLayer frame in resizable mode
5 years ago
Graham
7711f24bd2
Define WIN32_LEAN_AND_MEAN on Windows
5 years ago
Graham
e096d031df
Ignore jlong to pointer cast warnings on 32-bit Windows
5 years ago
Graham
d68fa93c66
Rename parameter to lpParameter for consistency
5 years ago
Graham
2806bd301d
Use EXIT_{SUCCESS,FAILURE} constants
5 years ago
Graham
57012072a3
Remove unnecessary jaggl locks
...
We only need to lock GLX calls, not standard OpenGL calls. This should
improve the performance of the jaggl bindings on UNIX systems.
5 years ago
Graham
bd005106a2
Add initial jagmisc replacement
5 years ago
Graham
3be031e6b1
Strip trailing whitespace from README.md
5 years ago
Graham
d34b1e7e72
Combine analyze and getFrames
5 years ago
Graham
28369f1d75
Add UnusedArgTransformer
5 years ago
Graham
d20e3997b4
Split transformMethod into {pre,post}TransformMethod
5 years ago
Graham
145ed6b1ee
Add classPath and library arguments to all Transformer methods
5 years ago
Graham
46ab5111e6
Add isMethodImmutable method to TypedRemapper
...
I'm going to use this in a new Transformer.
5 years ago
Graham
b7347b2632
Move ArgRef to the top level
...
I'm going to use it in another Transformer.
5 years ago
Graham
bb2f72c4f0
Add ConstSourceInterpreter
...
It is akin to SourceInterpreter, but more efficient as it only tracks
the sources of integer constants and it doesn't track sources through
copy instructions.
5 years ago
Graham
71d1b8d435
Update Guava
5 years ago
Graham
7c63254440
Document why our ChoosePixelFormat usage is correct
5 years ago
Graham
f426f16d72
Simplify DummyLocalTransformer
...
The obfuscated client only contains dummy locals of type int.
5 years ago
Graham
5e46c058cd
Improve structuring of if/else chains ending in a throw or return
5 years ago
Graham
261cc87125
Add CachePathTransformer
5 years ago
Graham
4788f8314e
Clear ClassPath cache after remapping
5 years ago
Graham
6e750b008f
Replace hard-coded 2 with GZIP_HEADER.length
5 years ago
Graham
23a85fd820
Add method for deleting MethodNode arguments
5 years ago
Graham
44ddde296f
Update JUnit test templates to fit OpenRS2's conventions
5 years ago
Graham
557f2fb504
Move remapping into a RemapTransformer
...
This allows us to run the remapping immediately between
OriginalNameTransformer and DummyArgTransformer.
5 years ago
Graham
46f908bdb0
Replace ClassForNameTransformer
...
This commit stops ClassForNameTransformer from extending Transformer and
renames it. I think this makes sense, as we don't use it like a normal
Transformer.
5 years ago