I have long been playing games in which I can develop my bishop to g5 like in the following positions:
The truth is I have trouble deciding if such moves are useful. In the diagrams, what pushed me to playing such move is specially my pawns on e5. But maybe come to think of it, that is not much of a compelling factor. Is there anyway to reliably determine when this move would be worth it?