I noticed when I push myself a bit deeper into the night (I normally go sleeping at ~10pm), then at around midnight when I am already tired I have the best ideas for composing electronic music. If I stay awake, I often continue until 2-3am with an outline of a song and while very very tired, I often finish something surprisingly good and balanced so that I just need to refine/add "candy" around to finish the song. Basically I trade enhanced creativity for discomfort and feeling awful the next day, and it works surprisingly well.