Differences From Artifact [6d1422bea1]:
- File
src/rendergl.mm
— part of check-in
[489124a92f]
at
2025-03-16 10:11:39
on branch trunk
— Use one autorelease pool per frame
This way, nowhere else autorelease pools need to be managed. (user: js, size: 10954) [annotate] [blame] [check-ins using]
To Artifact [81f69c07bf]:
- File src/rendergl.mm — part of check-in [89fbd7a152] at 2025-03-20 13:21:56 on branch trunk — Make more use of convenience methods (user: js, size: 10970) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
355 356 357 358 359 360 361 | OFString *hudgunnames[] = { @"hudguns/fist", @"hudguns/shotg", @"hudguns/chaing", @"hudguns/rocket", @"hudguns/rifle" }; void drawhudmodel(int start, int end, float speed, int base) { rendermodel(hudgunnames[player1.gunselect], start, end, 0, 1.0f, | | | | 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | OFString *hudgunnames[] = { @"hudguns/fist", @"hudguns/shotg", @"hudguns/chaing", @"hudguns/rocket", @"hudguns/rifle" }; void drawhudmodel(int start, int end, float speed, int base) { rendermodel(hudgunnames[player1.gunselect], start, end, 0, 1.0f, OFMakeVector3D(player1.o.x, player1.o.z, player1.o.y), player1.yaw + 90, player1.pitch, false, 1.0f, speed, 0, base); } void drawhudgun(float fovy, float aspect, int farplane) { if (!hudgun /*|| !player1.gunselect*/) return; |
︙ | ︙ |