Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
J
jianmu-supplemental
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18,295
    • Issues 18,295
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
    • Merge Requests 38
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • compiler_staff
  • jianmu-supplemental
  • Issues
  • #10531

Closed
Open
Opened Sep 08, 2025 by Jonathan@Jonathan11
  • Report abuse
  • New issue
Report abuse New issue

Game optimization techniques for reducing lag

When a game begins to slow down due to too many active objects or heavy rendering tasks, the solution usually comes down to how efficiently the update loop and rendering pipeline are structured. A few strategies that developers often apply:

Object pooling – Instead of creating and destroying entities (like soldiers, projectiles, or effects) during gameplay, reusing inactive objects from a pool avoids costly memory allocations and garbage collection.

Spatial partitioning – Handling collisions or interactions between hundreds of objects can be expensive. Data structures like quad-trees, BSP trees, or simple grid partitioning reduce the number of checks dramatically and improve overall performance.

Animation simplification – For units that are small or far from the camera, simplified animations or even sprite substitutions can reduce GPU load without the player noticing.

Batching and draw call reduction – Combining textures into atlases and grouping draw calls is one of the most impactful optimizations for mobile devices.

Adaptive detail scaling – Many modern games dynamically adjust effects, shadows, or particle density depending on the device’s performance in real time.

I’ve seen some 2D strategy games that apply these methods effectively. For instance, in stick war legacy mod apk , the way large groups of units interact smoothly on mid-range hardware can be a good case study. It’s not just about visuals but also how they manage background logic efficiently to keep gameplay responsive.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: compiler_staff/jianmu-supplemental#10531