eecd134
handle SIGINT in server to properly shutdown everything - Robyt3
a69852b
force quit on second Ctrl+C - Robyt3
259a449
use compliant sig_atomic_t for signal handler, use _Exit - Robyt3
f16e1f0
Also handle SIGTERM (fixes #4610) - def-
8a6cb2b
Simplify signal handling by unregistering - def-
054e752
Merge #4612 - bors[bot]c++
for (int i = 0; i < (int)m_vVector.size(); i++)
{
if (condition)
{
m_vVector.erase(m_vVector.begin() + i);
i--;
}
}
Is this considered safe? (edited)c++
for (int i = 0; i < (int)m_vVector.size(); i++)
{
if (condition)
{
m_vVector.erase(m_vVector.begin() + i);
i--;
}
}
Is this considered safe? (edited)sb = len(glob('*.log'))
fig, axes = plt.subplots(2, sb)
for i, f in enumerate(glob('*.log')):
with open(f) as file:
text = file.readlines()
times = list()
for line in text:
m = re.match(r'Frametime (?P<frametime>\d+) us', line)
frametime = int(m['frametime'])
times.append(frametime)
axes[0,i].plot(np.arange(len(times)), times)
axes[0,i].set_title(f)
axes[0,i].set_ylim(0, 15000)
axes[1,i].hist(times[2:], bins=100)
[18:26:28][gfx]: GPU vendor: Apple
[18:26:28][gfx]: GPU renderer: Apple M1 Pro
[18:26:28][gfx]: GPU version: 4.1 Metal - 76.3
[18:26:28][client]: version 15.8.1 on macos arm64
[18:26:28][server]: git revision hash: 054e7528dd7ebda1
[18:26:35][console]: Value: 3
[18:26:37][console]: Value: 3
[18:26:41][console]: Value: 0
m_OpenGLTileBufferingEnabled = m_IsNewOpenGL || m_pBackend->HasTileBuffering();
bool CGraphicsBackend_SDL_OpenGL::IsModernAPI(EBackendType BackendType)
{
if(BackendType == BACKEND_TYPE_OPENGL)
return (g_Config.m_GfxOpenGLMajor == 3 && g_Config.m_GfxOpenGLMinor == 3) || g_Config.m_GfxOpenGLMajor >= 4;
[2022-01-18 18:29:44][sdl]: SDL version 2.0.20 (compiled = 2.0.20)
[2022-01-18 18:29:44][gfx]: Created OpenGL 3.0 context.
[2022-01-18 18:29:44][gfx]: unable to create OpenGL context: Failed creating OpenGL context at version requested
[2022-01-18 18:29:44][sdl]: SDL version 2.0.20 (compiled = 2.0.20)
[2022-01-18 18:29:44][gfx]: Created OpenGL 2.1 context.
[2022-01-18 18:29:44][opengl]: Vendor string: Apple
[2022-01-18 18:29:44][opengl]: Version string: 2.1 Metal - 76.3
[2022-01-18 18:29:44][sdl]: SDL version 2.0.20 (compiled = 2.0.20)
[2022-01-18 18:29:44][gfx]: Created OpenGL 1.5 context.
[2022-01-18 18:29:44][opengl]: Vendor string: Apple
[2022-01-18 18:29:44][opengl]: Version string: 2.1 Metal - 76.3
[2022-01-18 18:29:44][gfx]: GPU vendor: Apple
[2022-01-18 18:29:44][gfx]: GPU renderer: Apple M1 Pro
[2022-01-18 18:29:44][gfx]: GPU version: 2.1 Metal - 76.3
[2022-01-18 18:31:02][gfx]: Created OpenGL 3.3 context.
[2022-01-18 18:31:02][opengl]: Vendor string: Apple
[2022-01-18 18:31:02][opengl]: Version string: 4.1 Metal - 76.3
[2022-01-18 18:31:02][gfx]: GPU vendor: Apple
[2022-01-18 18:31:02][gfx]: GPU renderer: Apple M1 Pro
[2022-01-18 18:31:02][gfx]: GPU version: 4.1 Metal - 76.3
Create ~/.phoronix-test-suite/test-profiles/def/ddnet-1.2.0
$ ./phoronix-test-suite install def/ddnet-1.2.0
$ ./phoronix-test-suite benchmark def/ddnet-1.2.0
$ cd ~/.phoronix-test-suite/test-profiles/def/ddnet-1.2.0
$ zip -9r /Users/deen/.phoronix-test-suite/openbenchmarking.org/ddnet-1.2.0.zip *
$ ./phoronix-test-suite upload-test-profile def/ddnet-1.2.0
scripts/android/cmake_android.sh all DDNet Release
I got the error:
> Task :compileReleaseJavaWithJavac FAILED
/home/-/-/ddnet-master/build_android/src/main/java/tw/DDNet/NativeMain.java:3: error: package org.libsdl.app does not exist
import org.libsdl.app.SDLActivity;
I followed the instructions at [https://github.com/ddnet/ddnet/tree/7e697963cf9f7657a22d74fdd0f85032f73baa2e/scripts/android](https://github.com/ddnet/ddn...