Delay-Aware and Energy-Efficient Resource Allocation for Reconfigurable Intelligent Surfaces | Synapse