This paper addresses some questions related to the evolution of cooperative behaviors, in the context of energetic metabolism. Glycolysis can perform either under a dissipative working regime suitable for rapid proliferation or under an efficient regime that entails a good modus operandi under conditions of glucose shortage. A cellular mechanism allowing switching between these two regimes may represent an evolutionary achievement. Thus, we have explored the conditions that might have favored the emergence of such an accommodative mechanism. Because of an inevitable conflict for resources between individual interests and the common good, rapid and inefficient use of glucose is always favored by natural selection in spatially homogeneous environment, regardless of the external conditions. In contrast, when the space is structured, the behavior of the system is determined by its free energy content. If the fuel is abundant, the dissipative strategy dominates the space. However, under famine conditions the efficient regime represents an evolutionary stable strategy in a Harmony game. Between these two extreme situations, both metabolic regimes are engaged in a Prisoner's Dilemma game, where the output depends on the extracellular free energy. The energy transition values that lead from one domain to another have been calculated. We conclude that an accommodative mechanism permitting alternation between dissipative and efficient regimes might have evolved in heterogeneous and highly fluctuating environments. Overall, the current work shows how evolutionary optimization and game-theoretical approaches can be complementary in providing useful insights into biochemical systems.