For low spec laptop You can try Camstudio (link: https://camstudio.org) not best quality, but doesn't require strong pc.
Newer graphic cards have hardware encoding for h264, AMD has ReLive (included with drivers), NVIDIA has ShadowPlay and beside that - OBS (Open Broadcaster Software) also can record your gameplay, no need to buy dedicated software :-)
Newer graphic cards have hardware encoding for h264, AMD has ReLive (included with drivers), NVIDIA has ShadowPlay and beside that - OBS (Open Broadcaster Software) also can record your gameplay, no need to buy dedicated software :-)