ValveSoftware / ValveSoftware/source-sdk-2013

<cstdint> usage in source engine.

Open
#1,464 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10k
Forks
3k
Avg merge
8d 11h
Merged PRs (30d)
2

Description

I was browsing through the code of the Source SDK, and I noticed that it doesn't use cstdint once. Wouldn't this have the potential to drastically reduce memory usage, without gatekeeping systems, as cstdint is a C++ standard? I noticed that a lot of integers really didn't need the entire 32 bits, and while you can use shorts, uint_8 in particular could be used to save a few bytes here and there, which would eventually add up over time.

Just wondering, thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by auditing the Source SDK C++ code for integer declarations and measuring whether narrower types would reduce memory usage without compatibility problems. Done would require an agreed scope and evidence that the changes provide a worthwhile benefit.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.